Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Eintsein_mc2
 
Posts: n/a
Default 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   Report Post  
Domenic
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does Excel show a formula in ONE cell ? edpaul Excel Discussion (Misc queries) 1 August 12th 05 07:29 PM
Excel CHALLENGE...3 questions(indirect,rank,array formula)... Mlowry Excel Worksheet Functions 8 August 1st 05 07:34 AM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM


All times are GMT +1. The time now is 12:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"