Nested if or if or formula

kwillo

New Member
Joined
Sep 10, 2015
Messages
17
Good morning all,

Happy Friday!

I need some assistance with a formula I'm not sure if I need a nested if or if I can use an if or statement. I have two columns with dates in. A third column will calculate how many days have past/not yet past. I need a formula to check the second column first if there is a date in that cell then it needs to calculate the days otherwise it needs to calculate based on the date from the first cell. There will always be a date in the first column but not necessarily a date in the second column.

Any advice would be greatly appreciated!

Thank you

Column 1 - DateColumn 2 - DateColumn 3 - Overdue/Not yet due
01/01/201803/02/2018X
31/01/2018X

<tbody>
</tbody>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Re: Nested if or if or forumula needed?

If column B will always either be blank or greater than column A, you can use =TODAY()-MAX(A2,B2)
 
Upvote 0
Re: Nested if or if or forumula needed?

Thanks Neil that has worked perfectly, what do I need to add if I want it to return a blank cell if there is nothing in the first two columns?
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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