ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   excel formula (https://www.excelbanter.com/excel-discussion-misc-queries/42286-excel-formula.html)

Eintsein_mc2

excel formula
 
Hi, I'm wondering if this formula could simplified? 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),""))))))


Bob Phillips

=VLOOKUP(A21,'Codes All'!$A$4:$Q$170,CODE(B21)-65,FALSE)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Eintsein_mc2" wrote in message
oups.com...
Hi, I'm wondering if this formula could simplified? 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),""))))))





All times are GMT +1. The time now is 08:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com