#1   Report Post  
Eintsein_mc2
 
Posts: n/a
Default VLOOKUP error

Hi I keep getting an error when I try and put in the last vlookup into
the formula.
=IF(B21="RG",VLOOKUP(A21,'Codes
All'!$A$4:$Q$80,4,FALSE),IF(B21="RC",VLOOKUP(A21,' Codes
All'!$A$4:$Q$80,5,FALSE),IF(B21="TG",VLOOKUP(A21,' Codes
All'!$A$4:$Q$80,8,FALSE),IF(B21="TC",VLOOKUP(A21,' Codes
All'!$A$4:$Q$80,9,FALSE),IF(B21="BG",VLOOKUP(A21,' Codes
All'!$A$4:$Q$80,12,FALSE),IF(B21="BC",VLOOKUP(A21, 'Codes
All'!$A$4:$Q$80,13,FALSE),IF(B21="AG",VLOOKUP(A21, 'Codes
All'!$A$4:$Q$80,16,FALSE),IF(B21="AC",VLOOKUP(A21, 'Codes
All'!$A$4:$Q$80,17,FALSE),"")))))
I think that this formula could be condenced if I only new how to do
it. If any one can help it would be great.

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Create a table somewhere, say, A1:B8

RG.......... 4
RC.......... 5
TG.......... 8
TC.......... 9
BG.......... 12
BC.......... 13
AG.......... 16
AC.......... 17

=IF(B21="","",VLOOKUP(A21,'Codes All'!$A$4:$Q$80,VLOOKUP(B21,A1:B8,2,0),0))

Biff

"Eintsein_mc2" wrote in message
oups.com...
Hi I keep getting an error when I try and put in the last vlookup into
the formula.
=IF(B21="RG",VLOOKUP(A21,'Codes
All'!$A$4:$Q$80,4,FALSE),IF(B21="RC",VLOOKUP(A21,' Codes
All'!$A$4:$Q$80,5,FALSE),IF(B21="TG",VLOOKUP(A21,' Codes
All'!$A$4:$Q$80,8,FALSE),IF(B21="TC",VLOOKUP(A21,' Codes
All'!$A$4:$Q$80,9,FALSE),IF(B21="BG",VLOOKUP(A21,' Codes
All'!$A$4:$Q$80,12,FALSE),IF(B21="BC",VLOOKUP(A21, 'Codes
All'!$A$4:$Q$80,13,FALSE),IF(B21="AG",VLOOKUP(A21, 'Codes
All'!$A$4:$Q$80,16,FALSE),IF(B21="AC",VLOOKUP(A21, 'Codes
All'!$A$4:$Q$80,17,FALSE),"")))))
I think that this formula could be condenced if I only new how to do
it. If any one can help it would be great.



  #3   Report Post  
Eintsein_mc2
 
Posts: n/a
Default

Thanks a million. works perfect

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
VLOOKUP using a cell calculated with NOW returns Error Chris Berding Excel Worksheet Functions 2 August 21st 05 03:22 AM
VLookup in VBA giving error message ayl322 Excel Discussion (Misc queries) 3 July 27th 05 06:06 PM
Value Not Available Error in Vlookup thefeokas Excel Discussion (Misc queries) 3 April 14th 05 05:57 PM
Vlookup Syntax Error YV New Users to Excel 9 December 23rd 04 05:28 PM
Vlookup #N/A error due to formatting Patrick_KC Excel Worksheet Functions 4 December 21st 04 07:39 PM


All times are GMT +1. The time now is 07:39 PM.

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"