Excel If Else Stmnt with Dates (Adding Days)

xcelnovice

Board Regular
Joined
Dec 31, 2011
Messages
81
Hi So I have a table....

A B
1 4/5/13

2 4/5/13

I'd luke to put a formula in B2 that says IF cell B1=B2 then add 14 days to the date, ELSE add 7 days to the date that I can copy down a large spreadsheet. The date changes through out the spreadsheet so I would need it to be general so if the 2 dates match add 14 days otherwise add 7.


Is this doable? Thanks to all the forum contributers.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hello,

That would cause a circular reference. B2 cannot reference itself for a value. You could put the IF B1=B2 in B3. Would that work for you?
 
Upvote 0

Forum statistics

Threads
1,216,027
Messages
6,128,374
Members
449,445
Latest member
JJFabEngineering

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top