Trying to see if an array formula will work for this selective lookup . trying to lookup the item based on Code but the value in col f has to be "VC" and has the max amount from col G
Trying to see if an array formula will work for this selective lookup . trying to lookup the item based on Code but the value in col f has to be "VC" and has the max amount from col G
Last edited by Lisa4legin; 02-14-2019 at 07:01 PM. Reason: bump
Maybe, put this on K2 and ENTERED as array formulas, then copied down:
=INDEX($B$2:$B$170,MATCH(MAX(IF(($A$2:$A$170=J2)*($F$2:$F$170="VC"),$G$2:$G$170)),$G$2:$G$170,0))
In K2 then copy down
=IFERROR(INDEX(Table1[ITEM],AGGREGATE(15,6,ROW(Table1[CODE])/(((Table1[CODE]=$J2)*(Table1[STATUS]="VC")*Table1[[On hand ]])=(1/(1/(MAX((Table1[CODE]=$J2)*(Table1[STATUS]="VC")*Table1[[On hand ]]))))),1)-ROW($A$2)+1),"")
Pl note
Array formula should be confirmed with Ctrl+Shift+Enter keys together.
If answere is satisfactory press * to add reputation.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks