Dates and SMALL Formula

Fin Fang Foom

Well-known Member
Joined
Mar 20, 2005
Messages
598
Hi everyone,


I have dates like this in column A:

1060911
1060914
1060912
1060915
1060913
and so on...

I would like to get the smallest date and then the second and third smallest dates in column E.

It should look like this:

09/11/2006
09/12/2006
09/13/2006

I have this formula, it will get me the Min of the date.

=DATE(INT(MIN($A$2:$A$851/10000)),MID(MIN($A$2:$A$851),4,2),RIGHT(MIN($A$2:$A$851),2))

I tried to incorporate the small function into the formula to get the smallest dates but it does not work.

=DATE(INT(SMALL($A$2:$A$851,ROW(A1))/10000),MID(SMALL(Sheet2!$A$2:$A$851,ROW(A1)),4,2),RIGHT(SMALL($A$2:$A$851,ROW(A1)),2))


If possible I would like a all in one formula.
Book3
ABCDEF
1DATEMIN
210609129/11/2006#NUM!
31060912#NUM!
41060912#NUM!
51060914#NUM!
61060911#NUM!
71060912#NUM!
81060914
91060911
101060911
111060911
121060913
131060911
141060911
151060911
161060911
171060915
181060911
Sheet1
 
Hi guys,


I would like to add one more function into the formula but I can't get it to work. I would like to add the INDIRECT function. I got this so far:

=TEXT(MIN(IF(INDIRECT("A2:A4000")<>"",IF(ISNUMBER(MATCH(DATE(2000+(100*LEFT($A$2:$A$4000)-100)+MID($A$2:$A$4000,2,2),MID($A$2:$A$4000,4,2),MID($A$2:$A$4000,6,2)),J$1:J1+0,0)),"",DATE(2000+(100*LEFT($A$2:$A$4000)-100)+MID($A$2:$A$4000,2,2),MID($A$2:$A$4000,4,2),MID($A$2:$A$4000,6,2))))),"m-dd-yyyy")


But it wont allow me to add the indirect to the other ranges in the formula.


why is that?
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
It seems to be the Text() function causing the problem...probably exceeding the max 7 nested functions limit.


It works if you don't include that function:

=MIN(IF(INDIRECT("A2:A4000")<>"",IF(ISNUMBER(MATCH(DATE(2000+(100*LEFT(INDIRECT("$A$2:$A$4000"))-100)+MID(INDIRECT("$A$2:$A$4000"),2,2),MID(INDIRECT("$A$2:$A$4000"),4,2),MID(INDIRECT("$A$2:$A$4000"),6,2)),J$1:J1+0,0)),"",DATE(2000+(100*LEFT(INDIRECT("$A$2:$A$4000"))-100)+MID(INDIRECT("$A$2:$A$4000"),2,2),MID(INDIRECT("$A$2:$A$4000"),4,2),MID(INDIRECT("$A$2:$A$4000"),6,2)))))

so perhaps you may need to put this formula in a "helper column" and then use the Text() function to reference it and convert it separately.
 
Upvote 0

Forum statistics

Threads
1,216,187
Messages
6,129,396
Members
449,508
Latest member
futureskillsacademy

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