SOLVED

IFS Shows #VALUE! instead of actual value

%3CLINGO-SUB%20id%3D%22lingo-sub-2341948%22%20slang%3D%22en-US%22%3EIFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2341948%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tombabcd_1-1620668306813.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279510i0127CD987B9EE694%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tombabcd_1-1620668306813.png%22%20alt%3D%22tombabcd_1-1620668306813.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tombabcd_0-1620668286763.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279509i03CB00A6B9108154%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tombabcd_0-1620668286763.png%22%20alt%3D%22tombabcd_0-1620668286763.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECannot%20determine%20why%20%23VALUE!%20is%20shown%20instead%20of%20201.%26nbsp%3B%20Per%20help%20on%20IFS%2C%20the%20value%20should%20be%20returned%20for%20the%20first%20TRUE%20response%20which%20in%20this%20case%20is%20shown%20for%20Logical_test2%20-%20TRUE%20and%20the%20value%20of%20201%20is%20what%20I%20want%20returned.%26nbsp%3B%20However%20the%20%23VALUE!%20is%20shown%20in%20my%20spreadsheet%20instead.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20or%20suggestions%20will%20be%20greatly%20appreciated.%26nbsp%3B%20Thank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2341948%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342259%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342259%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1048702%22%20target%3D%22_blank%22%3E%40tombabcd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIFS()%20check%20till%20first%20TRUE%20condition%20and%20skips%20FALSE%20condition.%20If%20no%20one%20TRUE%20condition%20is%20met%20formula%20returns%20%23N%2FA%20error.%20However%2C%20if%20!VALUE%23%20is%20result%20of%20checked%20condition%2C%20entire%20formula%20returns%26nbsp%3B!VALUE%23%20as%20well.%3C%2FP%3E%0A%3CP%3EIn%20your%20case%20the%20workaround%20is%20to%20use%20ISNUMBER(FIND(...))%20instead%20of%20FIND().%20But%20better%20formula%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%20suggested.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342278%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342278%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F21903%22%20target%3D%22_blank%22%3E%40hans%3C%2FA%3E!%3CBR%20%2F%3EI%20should%20have%20included%20more%20data.%20The%20value%20I%20am%20searching%20on%20can%20be%20either%20a%20number%20or%20text%20in%20case%20this%20matters%20which%20I%20think%20in%20your%20first%20example%20probably%20would%20make%20a%20difference.%20Sorry%20for%20not%20being%20more%20comprehensive.%3C%2FP%3E%3CP%3EFor%20example%20cell%20E15%20contains%20the%20following%20choices%3A%3CBR%20%2F%3EA0%2C%20A1%2C%20A2%2C%20A3%2C%20A4%2C%2089%2C%20OE%3CBR%20%2F%3EIf%20a%20value%20is%20found%20in%20this%20cell%20then%20return%20the%20value%20in%20cell%20A15%20which%20is%3A%3CBR%20%2F%3E101%3C%2FP%3E%3CP%3EThen%20in%20a%20subsequent%20logical%20test%20the%20following%20choices%20are%20available%20in%20cell%20E20%3CBR%20%2F%3E11%2C%2013%2C%20M0%20%2CM1%2C%20M2%20%2CM3%2C%20M4%3CBR%20%2F%3EIf%20a%20value%20is%20found%20in%20this%20cell%20then%20return%20the%20value%20in%20cell%20A20%20which%20is%3A%3CBR%20%2F%3E106%3CBR%20%2F%3Eetc.%3CBR%20%2F%3EUnfortunately%20I%20can%20have%20a%20lookup%20value%20in%20more%20than%20one%20reference%20range%20i.e.%20cell%20E21%3CBR%20%2F%3E51%2C%2055%2C%2089%2C%20OE%3CBR%20%2F%3EValues%2089%20and%20OE%20are%20also%20shown%20in%20cell%20E15.%20I%20was%20going%20to%20try%20and%20use%20and%20AND%20in%20my%20IFS%20lookup%20to%20include%20the%20values%20in%20column%20D%20which%20will%20make%20the%20combination%20of%20values%20in%20E%20and%20D%20unique.%20I%20am%20probably%20explaining%20this%20in%20a%20needlessly%20cumbersome%20way.%3CBR%20%2F%3EThis%20might%20make%20it%20easier%20to%20follow%3A%3C%2FP%3E%3CP%3ELookup%20table%20i.e.%20Reference%20tab%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tombabcd_1-1620672980000.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279601i7FA779750223B12B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tombabcd_1-1620672980000.png%22%20alt%3D%22tombabcd_1-1620672980000.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%20if%20a%20value%20is%20found%20in%20E%20and%20D%20then%20bring%20back%20value%20in%20A%3C%2FP%3E%3CP%3ELookup%20values%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tombabcd_2-1620673273654.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279604i061355D98BC5398B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tombabcd_2-1620673273654.png%22%20alt%3D%22tombabcd_2-1620673273654.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThanks%20again%20for%20your%20help%20and%20suggestions.%3C%2FP%3E%3CP%3EI%20have%20not%20used%20index%20and%20match%20but%20need%20to%20begin%20doing%20so.%26nbsp%3B%20I%20might%20need%20to%20convert%20the%20Reference%20values%20into%20an%20array.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342328%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342328%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1048702%22%20target%3D%22_blank%22%3E%40tombabcd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20attach%20a%20small%20sample%20workbook%20(without%20sensitive%20information)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342356%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342356%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1048702%22%20target%3D%22_blank%22%3E%40tombabcd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20could%20be%20like%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DXLOOKUP(%22*%22%26amp%3BG1%26amp%3B%22*%22%26amp%3BH1%26amp%3B%22*%22%2CD%3AD%26amp%3BE%3AE%2CA%3AA%2C%22nothing%22%2C2)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342565%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342565%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Hans%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20gladly%20will%20upload%20a%20test%20file%20which%20is%20attached.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETom%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342581%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342581%22%20slang%3D%22en-US%22%3EThank%20you%20very%20much%20Sergei!%20I%20will%20try%20the%20ISNUMBER%20per%20your%20suggestion.%20Thanks%20again!!!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342582%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342582%22%20slang%3D%22en-US%22%3EHi%20Sergei%2C%20I%20have%20never%20used%20XLOOKUP%20but%20learning%20all%20kinds%20of%20new%2C%20useful%20functions.%20Thank%20you%20for%20taking%20the%20time%20to%20respond!!!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342584%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342584%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1048702%22%20target%3D%22_blank%22%3E%40tombabcd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESee%20the%20attached%20version.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342670%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342670%22%20slang%3D%22en-US%22%3EThank%20you%20Hans!%20I%20feel%20a%20bit%20guilty%20for%20not%20taking%20the%20tips%20and%20figuring%20this%20out%20myself%20which%20I%20had%20every%20intention%20of%20doing%20but%20barely%20finished%20getting%20ledger%20entries%20in%20by%20the%20deadline.%20I%20cannot%20thank%20you%20and%20%40Sergei%20enough.%20Thank%20you%20both%20for%20taking%20the%20time%20for%20responding%20and%20thank%20you%20again%20for%20taking%20the%20time%20and%20effort%20to%20get%20this%20working.%20I%20can't%20wait%20to%20explore%20each%20function%20and%20learn%20more%20about%20how%20they%20work%20and%20the%20best%20situations%20to%20use%20them%20in.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20taken%20several%20Excel%20training%20classes%20but%20they%20don't%20begin%20to%20touch%20on%20things%20like%20this.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20again!!!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343882%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343882%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1048702%22%20target%3D%22_blank%22%3E%40tombabcd%3C%2FA%3E%26nbsp%3B%2C%20glad%20it%20helped%2C%20good%20luck%20with%20Excel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2362002%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362002%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Hans%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20again%20for%20the%20help.%20It%20works%20great.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ECan%20I%20ask%20about%20a%20portion%20of%20the%20formula.%3CBR%20%2F%3E%3DINDEX(Reference!%24A%2415%3A%24A%2421%2CMATCH(%22*%22%26amp%3BM3%26amp%3B%22*%7C*%22%26amp%3BN3%26amp%3B%22*%22%2CReference!%24D%2415%3A%24D%2421%26amp%3B%22%7C%22%26amp%3BReference!%24E%2415%3A%24E%2421%2C0))%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIs%20the%20%22*%22%26amp%3B%20making%20this%20a%20wild%20card%20search%20or%20converting%20the%20number%20to%20text%20or%20both%3F%3CBR%20%2F%3EIs%20the%20*%7C*%20concatenating%20two%20columns%20of%20search%20data%20together%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20searched%20in%20vain%20for%20the%20meaning%20of%20the%20%22%7C%22%20in%20Excel%20but%20have%20not%20found%20anything.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAlso%20I%20have%20read%20the%20Excel%20help%20on%20Arrays%2C%20Index%20and%20Match%20but%20have%20not%20found%20the%20answers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhile%20I%20am%20at%20it%20can%20I%20ask%20the%20following%3A%3CBR%20%2F%3EIf%20I%20want%20to%20pick%20up%20the%20last%20amount%20in%20a%20row%20is%20there%20an%20easy%20way%20to%20do%20so%2C%20i.e.%20pick%20up%201%2C000%20for%202010%2C%3C%2FP%3E%3CP%3E550%20for%202011%2C%20580%20for%202012%2C%20490%20for%202013%2C%20etc.%3C%2FP%3E%3CTABLE%20width%3D%22704%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2264%22%3EYear%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%203%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%205%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%206%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%207%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%208%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E2010%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20100%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20300%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20400%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20500%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20600%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20700%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20800%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20900%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2C000%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E2011%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20150%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20250%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20300%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20350%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20400%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20450%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20500%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20550%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E2012%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20230%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20280%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20330%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20380%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20430%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20480%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20530%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20580%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E2013%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20310%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20340%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20370%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20400%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20430%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20460%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20490%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E2014%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20350%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20360%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20370%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20380%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20390%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20400%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E2015%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20370%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20380%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20390%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20400%3C%2FTD%3E%3CTD%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20410%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2342156%22%20slang%3D%22en-US%22%3ERe%3A%20IFS%20Shows%20%23VALUE!%20instead%20of%20actual%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2342156%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1048702%22%20target%3D%22_blank%22%3E%40tombabcd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20could%20use%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIFS(ISNUMBER(FIND(L151%2CReference!E20))%2CReference!A20%2CISNUMBER(FIND(L151%2CReference!E21))%2CReference!A21%2C...)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20this%20is%20probably%20much%20more%20efficient%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DINDEX(Reference!%24A%2420%3A%24A%2450%2C%20MATCH(%22*%22%26amp%3BL151%26amp%3B%22*%22%2C%20Reference!%24E%2420%3A%24E%2450%2C%200))%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdjust%20the%20ranges%20if%20needed.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

 

tombabcd_1-1620668306813.png

 

tombabcd_0-1620668286763.png

 

Cannot determine why #VALUE! is shown instead of 201.  Per help on IFS, the value should be returned for the first TRUE response which in this case is shown for Logical_test2 - TRUE and the value of 201 is what I want returned.  However the #VALUE! is shown in my spreadsheet instead.

 

Any help or suggestions will be greatly appreciated.  Thank you!

25 Replies

@tombabcd 

You could use

 

=IFS(ISNUMBER(FIND(L151,Reference!E20)),Reference!A20,ISNUMBER(FIND(L151,Reference!E21)),Reference!A21,...)

 

But this is probably much more efficient:

 

=INDEX(Reference!$A$20:$A$50, MATCH("*"&L151&"*", Reference!$E$20:$E$50, 0))

 

Adjust the ranges if needed.

@tombabcd 

IFS() check till first TRUE condition and skips FALSE condition. If no one TRUE condition is met formula returns #N/A error. However, if !VALUE# is result of checked condition, entire formula returns !VALUE# as well.

In your case the workaround is to use ISNUMBER(FIND(...)) instead of FIND(). But better formula @Hans Vogelaar  suggested.

@Hans Vogelaar 

 

Thank you @Hans!
I should have included more data. The value I am searching on can be either a number or text in case this matters which I think in your first example probably would make a difference. Sorry for not being more comprehensive.

For example cell E15 contains the following choices:
A0, A1, A2, A3, A4, 89, OE
If a value is found in this cell then return the value in cell A15 which is:
101

Then in a subsequent logical test the following choices are available in cell E20
11, 13, M0 ,M1, M2 ,M3, M4
If a value is found in this cell then return the value in cell A20 which is:
106
etc.
Unfortunately I can have a lookup value in more than one reference range i.e. cell E21
51, 55, 89, OE
Values 89 and OE are also shown in cell E15. I was going to try and use and AND in my IFS lookup to include the values in column D which will make the combination of values in E and D unique. I am probably explaining this in a needlessly cumbersome way.
This might make it easier to follow:

Lookup table i.e. Reference tab

tombabcd_1-1620672980000.png

So if a value is found in E and D then bring back value in A

Lookup values:

tombabcd_2-1620673273654.png

Thanks again for your help and suggestions.

I have not used index and match but need to begin doing so.  I might need to convert the Reference values into an array.

 

@tombabcd 

Could you attach a small sample workbook (without sensitive information)?

@tombabcd 

That could be like

=XLOOKUP("*"&G1&"*"&H1&"*",D:D&E:E,A:A,"nothing",2)

@Hans Vogelaar 

 

Hi Hans,

 

Yes, gladly will upload a test file which is attached.

 

Thank you!

 

Tom

Thank you very much Sergei! I will try the ISNUMBER per your suggestion. Thanks again!!!
Hi Sergei, I have never used XLOOKUP but learning all kinds of new, useful functions. Thank you for taking the time to respond!!!
best response confirmed by tombabcd (Occasional Contributor)
Solution

@tombabcd 

See the attached version.

Thank you Hans! I feel a bit guilty for not taking the tips and figuring this out myself which I had every intention of doing but barely finished getting ledger entries in by the deadline. I cannot thank you and @Sergei enough. Thank you both for taking the time for responding and thank you again for taking the time and effort to get this working. I can't wait to explore each function and learn more about how they work and the best situations to use them in.

I have taken several Excel training classes but they don't begin to touch on things like this.

Thanks again!!!

@tombabcd , glad it helped, good luck with Excel

@Hans Vogelaar 

 

Hi Hans,

 

Thank you again for the help. It works great.


Can I ask about a portion of the formula.
=INDEX(Reference!$A$15:$A$21,MATCH("*"&M3&"*|*"&N3&"*",Reference!$D$15:$D$21&"|"&Reference!$E$15:$E$21,0))


Is the "*"& making this a wild card search or converting the number to text or both?
Is the *|* concatenating two columns of search data together?

 

I have searched in vain for the meaning of the "|" in Excel but have not found anything.


Also I have read the Excel help on Arrays, Index and Match but have not found the answers.

 

While I am at it can I ask the following:
If I want to pick up the last amount in a row is there an easy way to do so, i.e. pick up 1,000 for 2010,

550 for 2011, 580 for 2012, 490 for 2013, etc.

Year                1                2                3                4                5                6                7                8                9              10
2010           100           200           300           400           500           600           700           800           900        1,000
2011           150           200           250           300           350           400           450           500           550 
2012           230           280           330           380           430           480           530           580  
2013           310           340           370           400           430           460           490   
2014           350           360           370           380           390           400    
2015           370           380           390           400           410     

@tombabcd 

The last value in B2:K2 is returned by

=LOOKUP(9.99999999999999E+307,B2:K2)

9.99999999999999E+307 is the very largest number that can be entered in an Excel worksheet; it won't be found so LOOKUP returns the last value it encounters in the specified range.

The formula can be filled/copied down.

Hi Sergei, thank you for your response earlier. Can I ask you where to seek advanced Excel training classes, courses, workshops, etc., where I can learn these advanced skills? I took Advanced and Intermediate Excel classed through Ed2Go but they didn't begin to cover these kinds of functions in depth. Thank you. Tom
Thank you Hans. I realize that a significant part of solutions such as these is being able to think creatively in order to come up with solutions such as this. However, is there a book or course you recommend to help with learning more in depth about Excel? I have taken Advanced and Intermediate Excel classes through Ed2Go but they did not go into depth for these kinds of functions. Again, I realize that much of this is up to the user to know how to combine functions and use a particular function to bring back a value but it would be helpful to have a book or take a course that can get me further along than I am now. Thanks again.

@tombabcd 

Some sites I have found very useful:

Exceljet 

Contextures 

Thank you.