IF statement with multiple VLOOKUPs
On Friday, October 9, 2015 at 11:46:51 AM UTC-5, Claus Busch wrote:
Hi Dakota,
Am Fri, 9 Oct 2015 18:35:46 +0200 schrieb Claus Busch:
=INDEX('Categories (2)'!A:E,1,MATCH(B2,INDEX('Categories (2)'!A:E,MIN(IF('Categories (2)'!A2:E100=B2,ROW(2:100))),0),0))
sorry, forgot to handle an error:
=IFERROR(INDEX('Categories (2)'!A:E,1,MATCH(B2,INDEX('Categories (2)'!A:E,MIN(IF('Categories (2)'!A2:E100=B2,ROW(2:100))),0),0)),"Not Found")
and enter the formula with CRTL+Shift+Enter
Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
Awesome, this works! Just a couple of $ signs (sorry not sure what the excel terminology is still and it is perfect!
While I was still playing around, I came up with this super-iferror statement that worked as well, but looks kinda funky:
=IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IF(MATCH( B2,Categories!A:A,0)<"#N/A","LOW"),(IF(MATCH(B2,Categories!B:B,0)<"#N/A","MIDDLE"))),(IF(MATCH(B2,Categories!C:C,0)< "#N/A","MODERATE"))),(IF(MATCH(B2,Categories!D:D,0)<" #N/A","UPPER"))),(IF(MATCH(B2,Categories!E:E,0)<" #N/A","UNKNOWN"))),"")
Thank you so much Claus!
|