Smallest value (earliest date) but not in a list. How to adapt MIN(IF(...) function

Uganda

Board Regular
Joined
Jun 10, 2015
Messages
76
Office Version
  1. 365
Hello

I need to find the earliest date out of four fields but they are not next to each other.

I have seen the below formula:

=MIN(IF(A1:A4>=01/07/15, A1:A4))

However I can't seem to make it work when not selecting a list to choose from i.e. I want to choose from WT2, ABO2, ABR2 and ACP2.

Can anyone advise what formula I need to use?

Thanks so much!
 
You're welcome.

Though I'd still search for an easier method.

Is there anything common in another row that might indicate which columns should be included?
Something like a particular header string?

So we could do something like
=MIN(IF(WT2:ACP2>"01/07/15"+0,IF(WT1:ACP1="somestring",WT2:ACP2)))
 
Upvote 0

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
I have so many different date fields so the word date won't do it, one word in common is also repeated in other field names so I don't think this would work. I would have thought that Eric's answer meant the first cell mentioned was taken if after 01/07/15 i.e if the second field had an earlier date the first one would still be taken if after 01/07/15. If that is not the case, maybe that would be best?!
 
Upvote 0
I would have thought that Eric's answer meant the first cell mentioned was taken if after 01/07/15 i.e if the second field had an earlier date the first one would still be taken if after 01/07/15.
No, that is not the case.
Each IF is independant of each other, and returns their values as seperate arguments to the MIN function.
Then the MIN function decides which one is the lowest as it always does.


It's good advice to always at least try suggested solutions before rejecting them.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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