Using this formula for all dates.....

Perrister

Board Regular
Joined
Nov 30, 2004
Messages
93
Using this formula, how do I get all dates to work. The only ones that work now have to be in the {"1-feb","1-aug"} or does not return the value.

I added a calendar looking forward 8 years, as my MIN or MAX date could be any day and named the range "Dates" and tried to replace {"1-feb","1-aug"} with {Dates} and {"Dates"} but it will not work.

Any ideas?


=MIN(IF(ISNUMBER(MATCH(TEXT(A1:A100,"d-mmm"),{"1-feb","1-aug"},0)),A1:A100))

Thanks,
Perry
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
If you're using a precedent range this would take the place of the in line array, ie:

Code:
=MIN(IF(ISNUMBER(MATCH(TEXT(A1:A100,"d-mmm"),Dates,0)),A1:A100)) 
confirmed with CTRL + SHIFT + ENTER

the above will return the earliest of the dates listed in A1:A100 which can be found in Dates named range (d-mmm basis - year irrelevant in terms of qualification)
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,152
Members
452,891
Latest member
JUSTOUTOFMYREACH

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