excel formula - Generating 4 results from IF and AND -


i trying combine if statements give me 4 results, use a1, b1 etc ease

in a1 enter date in e1 have formula =if(isblank(a1),"",a1+21) generates expected completion date in cell

in f1, put actual completion date manually

what want generate following in g1 e.g. e1 has 04/05/15 , blank in f1, want give me overdue in h1

e1 has 04/05/15 , date 03/05/15 in f1, want give me closed in h1

e1 has 04/05/15 , date 05/05/15 in f1, want give me closed overdue in h1

e1 has 27/05/15 , blank in f1, want give me open in h1

i can first 2 using formula (for reason whole formula doesnt come on here) =if(and(isblank(f1),f1

w1 cell generates date using today function

i'm stuck on other 2 lines , how combine 1 formula, i've tried various ways, "too many arguments"

this may make clearer havent got high enough rep post image

data manually entered "date informed"

i2 04/04/15

i3 04//4/15

i4 04/04/15

i5 04/05/15

formula generates "expected completion date"

m2 =if(isblank(i2),"",i2+21)

m3 =if(isblank(i2),"",i2+21)

m4 =if(isblank(i2),"",i2+21)

m5 =if(isblank(i2),"",i2+21)

data manually entered "actual completion date"

n2 none

n3 28/04/15

n4 23/04/15

n5 blank

results required in "status"

p2 overdue

p3 overdue , closed

p4 closed

p5 open

based on have said think may help

col      col e       f           g 04/04/15   25/04/15                overdue 04/04/15   25/04/15    28/04/15    overdue , closed 04/04/15   25/04/15    23/04/15    closed 04/04/15   25/04/15                open 

in cell g1 have following formula need drag down:

=if(and(e1<today(),isblank(f1)),"overdue",if(and(e1>=today(),isblank(f1)),"open",if(and(isnumber(f1),f1>e1),"overdue , closed","closed"))) 

in words (as per if statements):

  1. if expected completion date in past , no completion date given overdue
  2. if expected completion date in future , no completion date given open
  3. if actual completion date later expected completion date overdue , closed
  4. if actual completion date earlier expected completion date closed

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -