Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Simplify excel formula
I was wondering if there is a way to simplify this formula? Thanks
=IF(B21="A",VLOOKUP(A21,'Codes All'!$A$4:$Q$170,4,FALSE),IF(B21="B",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,5,FALSE),IF(B21="C",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,6,FALSE),IF(B21="D",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,7,FALSE),IF(B21="T",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,8,FALSE),IF(B21="R",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,9,FALSE),"")))))) |
#2
|
|||
|
|||
Try...
=VLOOKUP(A21,'Codes All'!$A$4:$Q$170,MATCH(B21,{"A","B","C","D","T","R "},0)+3,0) Hope this helps! In article . com, "Eintsein_mc2" wrote: I was wondering if there is a way to simplify this formula? Thanks =IF(B21="A",VLOOKUP(A21,'Codes All'!$A$4:$Q$170,4,FALSE),IF(B21="B",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,5,FALSE),IF(B21="C",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,6,FALSE),IF(B21="D",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,7,FALSE),IF(B21="T",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,8,FALSE),IF(B21="R",VLOOKUP(A21,' Codes All'!$A$4:$Q$170,9,FALSE),"")))))) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Why does Excel show a formula in ONE cell ? | Excel Discussion (Misc queries) | |||
Excel CHALLENGE...3 questions(indirect,rank,array formula)... | Excel Worksheet Functions | |||
converting formula from lotus.123 to excel | Excel Worksheet Functions | |||
How do I get the formula bar in excel 2003 | Excel Discussion (Misc queries) | |||
Suddenly Excel can't calculate formula!!! | Excel Worksheet Functions |