Select last date from three cells and leave blank if no dates entered

SaraWitch

Active Member
Joined
Sep 29, 2015
Messages
377
Office Version
  1. 365
Platform
  1. Windows
Hi peeps.

I have three sets of dates - start date and end date - and I want to show only the last end date in a separate cell.

For example:
First dates - start date B1, end date C1
Second dates - start date E1, end date F1
Third dates - start date H1, end date I1
Last end date - A1

I don't want to show C1 end date if there is a date in F1, and I don't want to show C1 or F1 end dates if there is a date in I1. And I want a blank cell in A1 (formula) if no dates are in C1, F1 and I1.

I'm nearly there with a formula (see below), which is working for dates in I1 and F1 but not C1. I have tried several variations but nothing is working.

Excel Formula:
=IF(I1>0,I1,IF(I1="",F1,IF(F1="",C1,IF(C1>0,C1,""))))

Any help would be muchly appreciated... :)
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try

Excel Formula:
=IF(COUNTA(C1:C3)=0,"",MAX(C1:C3))
 
Upvote 0
Solution
I've just realised that there was an additional element to what I needed, i.e., not to show an end date if a further start date was added.

So, just in case it's useful for anyone else, I added a cell to have a start date (A1) and then had my overall end date in B1. My other start and end dates followed and this formula works for me:

Excel Formula:
=IF(A1="","",IF(G1>0,H1,IF(E1>0,F1,IF(C1>0,D1))))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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