NULL result instead of date

Hobbes25

New Member
Joined
May 16, 2018
Messages
8
Hi all,

I'm trying to write a formula that takes the dates from 3 separate columns compares them and then returns to me the most recent date. However, some of these columns occasionally contain NULL values. As of now my formula looks like the following:

=IF(C:C>D:D,C:C, IF(D:D>E:E,D:D,E:E ))

It works well up until a null is presented in one of, or multiple of the rows. I've tried several different ways to handle the errors like setting NULL to 0, by using an IF statement that precedes the others, but it still returns NULL. Anybody have any tips on how to get past this?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi all,

I'm trying to write a formula that takes the dates from 3 separate columns compares them and then returns to me the most recent date. However, some of these columns occasionally contain NULL values. As of now my formula looks like the following:

=IF(C:C>D:D,C:C, IF(D:D>E:E,D:D,E:E ))

It works well up until a null is presented in one of, or multiple of the rows. I've tried several different ways to handle the errors like setting NULL to 0, by using an IF statement that precedes the others, but it still returns NULL. Anybody have any tips on how to get past this?

I was able to make a workaround. Just in case anybody else runs into this kind of problem just use:

MAX(C:C,D:D,E:E)
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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