Formula Woes

blimey88

New Member
Joined
Aug 20, 2019
Messages
38
Good morning all,

I have recently been helped with a formula that I had been struggling with. I have 4 cells that will either contain a date or not, I would like the earliest date displayed in cell L2. As it stands if D2 is empty then so is L2, however if i only have 1 date in 1 of the 4 cells i would like that date displayed in cell L2, please see formula below. So what I need is, if all 4 cells are populate diwth a date show the earliest date, if however there is only one date then populate L2 with that one date? My date cells are D2,F2,H2,J2!

=IF(D2="","",MIN(D2:K2))
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
@jasonb75: That formula's giving me a "found a problem with the formula" error

@blimey88: That formula works for me
But you may want to restrict the cells so it doesn't look at columns E G H or K like this

=IF(D2="","",MIN(IF(MOD(COLUMN(D2:J2),2)=0,MIN(D2:J2)))
 
Upvote 0
@jasonb75: That formula's giving me a "found a problem with the formula" error
One to many opening parentheses :oops:

=IFERROR(1/(1/MIN(D2,F2,H2,J2)),"" )

edit:-

You only need =MIN(D2,F2,H2,J2) if there will always be at least one date. The rest is just to blank the cell when all dates are empty.
 
Upvote 0

Forum statistics

Threads
1,215,047
Messages
6,122,858
Members
449,096
Latest member
Erald

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