Pls Help : Nested IF limit

%3CLINGO-SUB%20id%3D%22lingo-sub-1595076%22%20slang%3D%22en-US%22%3EPls%20Help%20%3A%20Nested%20IF%20limit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1595076%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Expert%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20help%20solve%20as%20I%20had%20more%20than%207%20IF%20conditions%20which%20excel%20allow.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20problem%20is%2C%20i%20need%20lookup%20with%20a%20table%20using%20first%2012%20characters%2C%20if%20not%20found%20then%20first%2011%20character%2C%20then%20first%2010%2C.....%20first%203.....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFormula%3A%3C%2FP%3E%3CP%3E%3DIFNA(VLOOKUP(LEFT(I90%2C12)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3EIFNA(VLOOKUP(LEFT(I90%2C11)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3EIFNA(VLOOKUP(LEFT(I90%2C10)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3EIFNA(VLOOKUP(LEFT(I90%2C9)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3EIFNA(VLOOKUP(LEFT(I90%2C8)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3EIFNA(VLOOKUP(LEFT(I90%2C7)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3EIFNA(VLOOKUP(LEFT(I90%2C6)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3EIFNA(VLOOKUP(LEFT(I90%2C5)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3EIFNA(VLOOKUP(LEFT(I90%2C4)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3EIFNA(VLOOKUP(LEFT(I90%2C3)%2C'Detailed%20List'!L%3AM%2C1%2C0)%2C%3C%2FP%3E%3CP%3E%22NotFound%22))))%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1595076%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-1595250%22%20slang%3D%22en-US%22%3ERe%3A%20Pls%20Help%20%3A%20Nested%20IF%20limit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1595250%22%20slang%3D%22en-US%22%3EI%20believe%20this%20may%20be%20one%20way%20(Ctrl%2BShift%2BEnter%20after%20keying%20into%20the%20formula%20bar)%2C%20but%20including%20the%20entire%20column%20will%20slow%20down%20the%20calculation%20time.%20I%20would%20limit%20the%20range%2C%20if%20possible.%3CBR%20%2F%3E%3CBR%20%2F%3E%3DIFERROR(LEFT(I90%2CLARGE(IF(ISNUMBER(SEARCH(LEFT(I90%2CTRANSPOSE(ROW((INDIRECT(%223%3A12%22)))))%2C'Detailed%20List'!L%3AL))%2CTRANSPOSE(ROW((INDIRECT(%223%3A12%22))))%2C%22%22)%2C1))%2C%22Not%20Found%22)%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi Expert,

 

Can anyone help solve as I had more than 7 IF conditions which excel allow.

 

My problem is, i need lookup with a table using first 12 characters, if not found then first 11 character, then first 10,..... first 3.....

 

Formula:

=IFNA(VLOOKUP(LEFT(I90,12),'Detailed List'!L:M,1,0),

IFNA(VLOOKUP(LEFT(I90,11),'Detailed List'!L:M,1,0),

IFNA(VLOOKUP(LEFT(I90,10),'Detailed List'!L:M,1,0),

IFNA(VLOOKUP(LEFT(I90,9),'Detailed List'!L:M,1,0),

IFNA(VLOOKUP(LEFT(I90,8),'Detailed List'!L:M,1,0),

IFNA(VLOOKUP(LEFT(I90,7),'Detailed List'!L:M,1,0),

IFNA(VLOOKUP(LEFT(I90,6),'Detailed List'!L:M,1,0),

IFNA(VLOOKUP(LEFT(I90,5),'Detailed List'!L:M,1,0),

IFNA(VLOOKUP(LEFT(I90,4),'Detailed List'!L:M,1,0),

IFNA(VLOOKUP(LEFT(I90,3),'Detailed List'!L:M,1,0),

"NotFound"))))

1 Reply
I believe this may be one way (Ctrl+Shift+Enter after keying into the formula bar), but including the entire column will slow down the calculation time. I would limit the range, if possible.

=IFERROR(LEFT(I90,LARGE(IF(ISNUMBER(SEARCH(LEFT(I90,TRANSPOSE(ROW((INDIRECT("3:12"))))),'Detailed List'!L:L)),TRANSPOSE(ROW((INDIRECT("3:12")))),""),1)),"Not Found")