Add date IF

N

na

I have a cell

A1 which has a date in it (i.e. 1/1/04)

I need excel to calculate the following in B1

If the date is between 1/1/04 and 1/15/04 then the date in B1 will be at the
end of the month 1/31/04 - which I can get with the EO month formula BUT if
the date is between 1/16/04 and 1/31/04 then I need to have the date read 6
weeks later.
This formula can not be month specific as I need to run it down a list of
varied dates which cover the entire year

Does this make sense? I know it will be a nested argument - just can't
figure out how to make it generic for the year.

Thanks in advance
 
D

Dave R.

Not sure how to add 6 weeks (42 days?) but here's one stab

=IF(DAY(A1)<=15,EOMONTH(A1,0),A1+42)
 

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