Posted to microsoft.public.excel.worksheet.functions
|
|
Match Last Occurrence of Numeric Value and Count BACK to Previous
Hi Domenic,
Thank you very much indeed; that worked Great.
If the numerical value will never appear more than once in any row,
try...
=SUM(LARGE(IF(Data=A1,ROW(Data)-MIN(ROW(Data))+1),{1,2})*{1,-1})-1
...where A1 contains the numerical value of interest. Note that both
formulas need to be confirmed with CONTROL+SHIFT+ENTER.
Cheers,
Sam
Domenic wrote:
If the numerical value will never appear more than once in any row,
try...
=SUM(LARGE(IF(Data=A1,ROW(Data)-MIN(ROW(Data))+1),{1,2})*{1,-1})-1
Otherwise, try...
=SUM(LARGE(IF(MMULT(--(Data=A1),TRANSPOSE(COLUMN(Data)^0)),ROW(Data)-MIN(
ROW(Data))+1),{1,2})*{1,-1})-1
...where A1 contains the numerical value of interest. Note that both
formulas need to be confirmed with CONTROL+SHIFT+ENTER.
Hope this helps!
Hi All,
[quoted text clipped - 11 lines]
Thanks
Sam
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200511/1
|