K Kenshin Member May 12, 2020 #1 I have problem with lookup using multiple criteria and multiple results and need resolved with formula thank you Attachments Question.xlsx 11.9 KB · Views: 5
I have problem with lookup using multiple criteria and multiple results and need resolved with formula thank you
R rahulshewale1 Active Member May 12, 2020 #2 hi @Kenshin See if is it ok ? Copy across: =IFERROR(@INDEX(C$5:C$31,AGGREGATE(15,6,(ROW($C$5:$C$31)-ROW($C5)+1)/((($C$5:$C$31>=$H$3)*($C$5:$C$31<=$I$3))*($B$5:$B$31=$G$3)),$F6)),"") Attachments Question (1).xlsx 15.9 KB · Views: 5
hi @Kenshin See if is it ok ? Copy across: =IFERROR(@INDEX(C$5:C$31,AGGREGATE(15,6,(ROW($C$5:$C$31)-ROW($C5)+1)/((($C$5:$C$31>=$H$3)*($C$5:$C$31<=$I$3))*($B$5:$B$31=$G$3)),$F6)),"")
K Kenshin Member May 12, 2020 #3 Thanks Rahul but when i changed the results to column B (Category), why I get incorrect results
GraH - Guido Well-Known Member May 12, 2020 #4 Maybe this works =IF($F6>COUNTIFS($B$5:$B$31,$G$3,$C$5:$C$31,">="&$H$3,$C$5:$C$31,"<="&$I$3),"",INDEX(C$5:C$31,AGGREGATE(15,6,($A$5:$A$31)/(($B$5:$B$31=$G$3)*($C$5:$C$31>=$H$3)*($C$5:$C$31<=$I$3)),$F6))) Attachments Copy of Question44268.xlsx 13 KB · Views: 7
Maybe this works =IF($F6>COUNTIFS($B$5:$B$31,$G$3,$C$5:$C$31,">="&$H$3,$C$5:$C$31,"<="&$I$3),"",INDEX(C$5:C$31,AGGREGATE(15,6,($A$5:$A$31)/(($B$5:$B$31=$G$3)*($C$5:$C$31>=$H$3)*($C$5:$C$31<=$I$3)),$F6)))