Posted to microsoft.public.excel.worksheet.functions
|
|
MATCH Multiple Criteria & Return Previous / Penultimate Match
Hi Domenic,
That's done it. Absolutely Superb! Thank you very much for all your time and
patience.
Very much appreciated.
Cheers,
Sam
Domenic wrote:
First, select AZ7 and define the following...
Range:
=INDEX(Data,0,ROWS('Update Appraisal'!$AZ$7:$AZ7))
Txt:
=LEFT('Update Appraisal'!$AX7,LEN('Update Appraisal'!$AX7))
Array1:
=IF('Update Appraisal'!$BB70,TRANSPOSE(ROW(INDIRECT("1:"&'Upd ate
Appraisal'!$BB7))),1)
Array2:
=ISNUMBER(MATCH(IF(Range=Txt,ROW(Range)+IF('Updat e
Appraisal'!$BB70,Array1,1),""),IF(Range=IF('Upda te
Appraisal'!$BB70,"",Txt),ROW(Range)),0))+0
Array3:
=MMULT(Array2,IF('Update Appraisal'!$BB70,ROW(INDIRECT("1:"&'Update
Appraisal'!$BB7))^0,1))
Array4:
=ISNA(MATCH(IF(Range=Txt,ROW(Range)+'Update
Appraisal'!$BB7+1,""),IF(Range="",ROW(Range),""), 0))
Then try the following formula, which needs to be confirmed with
CONTROL+SHIFT+ENTER...
AZ7, copied down:
=INDEX(ID,LARGE(IF(Array3=IF($BB70,$BB7,1),IF(IF ($BB70,Array4,1),ROW(ID
)-MIN(ROW(ID))+1)),2)+IF($BB70,$BB7,1))
Hope this helps!
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200710/1
|