If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > VLookup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-08-04, 08:04
mark_hall mark_hall is offline
Registered User
 
Join Date: Sep 2003
Posts: 18
VLookup

Hi,

I'm having trouble getting this to work.

I have on sheet 1 an IF function which assign a value between 1 to 5 dependant on criteria.

On sheet 2 I want to lookup this value against my lookup table (hr) and return the value in column 2, hence

=VLOOKUP('Sheet 1'!W37,hr,2,FALSE)

But I keep getting #N/A.

Can anyone help?
Reply With Quote
  #2 (permalink)  
Old 03-08-04, 08:16
mark_hall mark_hall is offline
Registered User
 
Join Date: Sep 2003
Posts: 18
Hi,

i've even tried =IF() with this and it still wont work. Has this got something to do with the original If function. Can't I compare this to anything else?
Reply With Quote
  #3 (permalink)  
Old 03-08-04, 09:43
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
How is the cell formatted with the IF statement on Sheet1? Also, it might be that your criteria are not correct. Can you post the entire IF statement?
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #4 (permalink)  
Old 03-08-04, 16:49
texasalynn texasalynn is offline
Registered User
 
Join Date: Jun 2002
Location: Houston, TX
Posts: 116
It might be that the comparison data are not the same type. Meaning one is text and the other numeric. I usually do a test with
istext(cell range)

do this on both the bolded areas in question.
=VLOOKUP('Sheet 1'!W37 ,hr,2,FALSE)


HTH
texasalynn
Reply With Quote
  #5 (permalink)  
Old 03-08-04, 21:47
bmacr bmacr is offline
Registered User
 
Join Date: Feb 2004
Location: Canada
Posts: 133
Just at a glance, the default name of the first sheet doesn't have a space between Sheet and 1. Also, I don't think the single quotes should be there.

Try:

=VLOOKUP(Sheet1!W37,hr,2,FALSE)
Reply With Quote
  #6 (permalink)  
Old 03-09-04, 09:38
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Quote:
Originally posted by bmacr
Just at a glance, the default name of the first sheet doesn't have a space between Sheet and 1. Also, I don't think the single quotes should be there.

Try:

=VLOOKUP(Sheet1!W37,hr,2,FALSE)
If the space is in the name, then the single quote is needed.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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