Need formula to add days to a date in column unless blank then add days to another date.

somfin4u2c

New Member
Joined
Mar 17, 2015
Messages
11
I need a formula to add days to a column of dates unless blank then add days to the previous column.

I have 3 columns (A) Date Out, (B) Date Last Serviced, and (C) Service Due

I need to add 14 days to (B) Date Last Serviced to get (C) Service Due This formula works fine for this =IF(ISNUMBER(B4), DATE(YEAR(B4),MONTH(B4),DAY(B4)+14),""

but if (B) Date Last Serviced is blank I need it to add 14 days to (A) Date out.

Any help would be greatly appriciated
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Note that this:
Excel Formula:
DATE(YEAR(B4),MONTH(B4),DAY(B4)+14)
is all unnecessary, and can be simplified to just:
Excel Formula:
B4+14

I think this may be the formula you are looking for:
Excel Formula:
=IF(B4>0,B4+14,A4+14)
 
Upvote 0
Solution
You are welcome!

Just a little extra "FYI" for you.
The reason you are able to just add the number to the date is because Excel actually stores dates as numbers, specifically, the number of days since 1/0/1900.
So dates are really just numbers with date formats in Excel.
 
Upvote 0

Forum statistics

Threads
1,215,452
Messages
6,124,916
Members
449,195
Latest member
Stevenciu

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