Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hello
i am using following formula for max date from my cash book, but how can i get 2nd & 3rd max date ? my this formula is in sale list. =IF($C5="","",SUMPRODUCT(MAX((CashBook!$L$11:$L$10 000=$C5)*(CashBook!$I$11:$I$10000)))) 01/01/2009 02/01/2009 03/01/2009* 10/01/2009* 15/02/2009* <--- now getting with MAX |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this array formula** :
=IF($C5="","",LARGE(IF(CashBook!$L$11:$L$10000=$C5 ,CashBook!$I$11:$I$10000),n)) Where n = nth largest value you want. n = 1 is the equivalent of MAX. n = 2 for the 2nd largest, n = 3 for the 3rd largest, etc. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "Tufail" wrote in message ... hello i am using following formula for max date from my cash book, but how can i get 2nd & 3rd max date ? my this formula is in sale list. =IF($C5="","",SUMPRODUCT(MAX((CashBook!$L$11:$L$10 000=$C5)*(CashBook!$I$11:$I$10000)))) 01/01/2009 02/01/2009 03/01/2009* 10/01/2009* 15/02/2009* <--- now getting with MAX |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you very much !
"T. Valko" wrote: Try this array formula** : =IF($C5="","",LARGE(IF(CashBook!$L$11:$L$10000=$C5 ,CashBook!$I$11:$I$10000),n)) Where n = nth largest value you want. n = 1 is the equivalent of MAX. n = 2 for the 2nd largest, n = 3 for the 3rd largest, etc. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "Tufail" wrote in message ... hello i am using following formula for max date from my cash book, but how can i get 2nd & 3rd max date ? my this formula is in sale list. =IF($C5="","",SUMPRODUCT(MAX((CashBook!$L$11:$L$10 000=$C5)*(CashBook!$I$11:$I$10000)))) 01/01/2009 02/01/2009 03/01/2009* 10/01/2009* 15/02/2009* <--- now getting with MAX |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
dear biff,
error is coming out of $NUM! what should i do now ? =IF($C5="","",LARGE(IF(CashBook!$L$11:$L$10000=$C5 ,CashBook!$I$11:$I$10000),N1)) "T. Valko" wrote: Try this array formula** : =IF($C5="","",LARGE(IF(CashBook!$L$11:$L$10000=$C5 ,CashBook!$I$11:$I$10000),n)) Where n = nth largest value you want. n = 1 is the equivalent of MAX. n = 2 for the 2nd largest, n = 3 for the 3rd largest, etc. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "Tufail" wrote in message ... hello i am using following formula for max date from my cash book, but how can i get 2nd & 3rd max date ? my this formula is in sale list. =IF($C5="","",SUMPRODUCT(MAX((CashBook!$L$11:$L$10 000=$C5)*(CashBook!$I$11:$I$10000)))) 01/01/2009 02/01/2009 03/01/2009* 10/01/2009* 15/02/2009* <--- now getting with MAX |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is N1 a cell reference?
You'll get an error if there isn't a nth largest number. The nth argument has to be a number that is not greater than the number of times CashBook!$L$11:$L$10000=$C5. Try this (array entered): =IF($C5="","",IF(COUNTIF(CashBook!$L$11:$L$10000,$ C5)N1,"",LARGE(IF(CashBook!$L$11:$L$10000=$C5,Cas hBook!$I$11:$I$10000),N1))) -- Biff Microsoft Excel MVP "Tufail" wrote in message ... dear biff, error is coming out of $NUM! what should i do now ? =IF($C5="","",LARGE(IF(CashBook!$L$11:$L$10000=$C5 ,CashBook!$I$11:$I$10000),N1)) "T. Valko" wrote: Try this array formula** : =IF($C5="","",LARGE(IF(CashBook!$L$11:$L$10000=$C5 ,CashBook!$I$11:$I$10000),n)) Where n = nth largest value you want. n = 1 is the equivalent of MAX. n = 2 for the 2nd largest, n = 3 for the 3rd largest, etc. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "Tufail" wrote in message ... hello i am using following formula for max date from my cash book, but how can i get 2nd & 3rd max date ? my this formula is in sale list. =IF($C5="","",SUMPRODUCT(MAX((CashBook!$L$11:$L$10 000=$C5)*(CashBook!$I$11:$I$10000)))) 01/01/2009 02/01/2009 03/01/2009* 10/01/2009* 15/02/2009* <--- now getting with MAX |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
date in Cell to change colors if the date is beyond today's date | Excel Discussion (Misc queries) | |||
Given a date, how do I get the 1st date and the last date of theprevious month? | Excel Worksheet Functions | |||
Making a date go red, if date passes todays date. | Excel Worksheet Functions | |||
Report Date - Date Recv = Days Late, but how to rid completed date | Excel Worksheet Functions | |||
Date updates from worksheet to chart & changes date to a date series! Help!! | Charts and Charting in Excel |