Manny Singh Member Feb 9, 2017 #1 Hi All, Could you please help me write up a Hlookup formula with multiple criteria, I have described the criteria in attached sheet. I will appreciate help. Regards, Manny Attachments Book1.xlsx 12.9 KB · Views: 13
Hi All, Could you please help me write up a Hlookup formula with multiple criteria, I have described the criteria in attached sheet. I will appreciate help. Regards, Manny
Hui Excel Ninja Staff member Feb 9, 2017 #2 Manny Does this work for you? =CHOOSE(COUNTA(B2:C2)+1,"N/A",B2&C2,B2&" "&C2)
R r2c2 Active Member Feb 9, 2017 #3 @Manny Singh Try this. =CHOOSE(COUNT(MATCH({"GMAW","FCAW"},$B$2:$C$2,0))+1,NA(), IFERROR(HLOOKUP("GMAW",$B$2:$C$3,2,FALSE),HLOOKUP("FCAW",$B$2:$C$3,2,FALSE)),HLOOKUP("GMAW",$B$2:$C$3,2,FALSE)&HLOOKUP("FCAW",$B$2:$C$3,2,FALSE)) I tried to come up with something short and sweet, but couldn't. Then @Hui gave the idea.
@Manny Singh Try this. =CHOOSE(COUNT(MATCH({"GMAW","FCAW"},$B$2:$C$2,0))+1,NA(), IFERROR(HLOOKUP("GMAW",$B$2:$C$3,2,FALSE),HLOOKUP("FCAW",$B$2:$C$3,2,FALSE)),HLOOKUP("GMAW",$B$2:$C$3,2,FALSE)&HLOOKUP("FCAW",$B$2:$C$3,2,FALSE)) I tried to come up with something short and sweet, but couldn't. Then @Hui gave the idea.