Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cutthroatjess
 
Posts: n/a
Default vlookup using a constant value

I'm getting #n/a after using a constant value (one I just type into a cell)
as the lookup value for the vlookup function. Here's the statement:
=VLOOKUP(H7,WONUMS!A2:C83,2,FALSE)
H7 is where I type in my value. WONUMS! is a second sheet that has my array.

If I set column H as some kind of conditional value then it works: for
example if I have the values in column H compare to see if there's a date in
column G and return if value if true then the vlookup statement works.

Any help is hugely appreciated!!!

Thanks,

Jesse

sorry if this is duplicate, I previously posted a question but it didn't
appear


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Usual problems with =vlookup() are numbers treated as text or different number
of spaces in the value (leading/trailing/embedded).

You may want to share what's in H7 and what you type in manually.

If it is numeric,

=vlookup(123,WONUMS!A2:C83,2,FALSE)
will be different than:
=vlookup("123",WONUMS!A2:C83,2,FALSE)

Debra Dalgleish has some more tips like this at:
http://www.contextures.com/xlFunctions02.html


cutthroatjess wrote:

I'm getting #n/a after using a constant value (one I just type into a cell)
as the lookup value for the vlookup function. Here's the statement:
=VLOOKUP(H7,WONUMS!A2:C83,2,FALSE)
H7 is where I type in my value. WONUMS! is a second sheet that has my array.

If I set column H as some kind of conditional value then it works: for
example if I have the values in column H compare to see if there's a date in
column G and return if value if true then the vlookup statement works.

Any help is hugely appreciated!!!

Thanks,

Jesse

sorry if this is duplicate, I previously posted a question but it didn't
appear


--

Dave Peterson
  #3   Report Post  
cutthroatjess
 
Posts: n/a
Default

Thanks Dave!

Debra's Instructions worked great. I was entering a number into H7, and the
table contained what I thought were numbers. If I converted it to text as
Debra suggested, then it looked up the value just fine.

Thanks Again!

Jesse Geis

"Dave Peterson" wrote:

Usual problems with =vlookup() are numbers treated as text or different number
of spaces in the value (leading/trailing/embedded).

You may want to share what's in H7 and what you type in manually.

If it is numeric,

=vlookup(123,WONUMS!A2:C83,2,FALSE)
will be different than:
=vlookup("123",WONUMS!A2:C83,2,FALSE)

Debra Dalgleish has some more tips like this at:
http://www.contextures.com/xlFunctions02.html


cutthroatjess wrote:

I'm getting #n/a after using a constant value (one I just type into a cell)
as the lookup value for the vlookup function. Here's the statement:
=VLOOKUP(H7,WONUMS!A2:C83,2,FALSE)
H7 is where I type in my value. WONUMS! is a second sheet that has my array.

If I set column H as some kind of conditional value then it works: for
example if I have the values in column H compare to see if there's a date in
column G and return if value if true then the vlookup statement works.

Any help is hugely appreciated!!!

Thanks,

Jesse

sorry if this is duplicate, I previously posted a question but it didn't
appear


--

Dave Peterson

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
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 10:02 AM.

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

About Us

"It's about Microsoft Excel"