Conditional formula for dates

B

BMoran

I'm looking for help with a conditional formula.

A B C D
1 11/1/09 z

I'd like a formula in column B to calculate days depending on columns A and
D. If column D is "z", i'd like to add 10 days to column A. If column D is
"y", I'd like to add 20 days to column A.

Thanks for any assistance!
 
J

Jacob Skaria

ColB with Y or N and Col A with numerics..Try the below to return sum for Y

=SUMIF(B:B,"Y",A:A)

If this post helps click Yes
 
J

Jacob Skaria

Try the below..If D do not contain z or y then return cell A1 date itself.

=A1+IF(D1="z",10,IF(D1="y",20,0))

If this post helps click Yes
 
J

Jacob Skaria

Please ignore this post on SUMIF()...

Jacob Skaria said:
ColB with Y or N and Col A with numerics..Try the below to return sum for Y

=SUMIF(B:B,"Y",A:A)

If this post helps click Yes
 
J

John

Hi
try this =IF(D1="z",A1+10,IF(D1="y",A1+20,"")) , you can copy down the column.
HTH
John
 
B

BMoran

Thank you!!!

Jacob Skaria said:
Try the below..If D do not contain z or y then return cell A1 date itself.

=A1+IF(D1="z",10,IF(D1="y",20,0))

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top