Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Vlookup for value

Hi Folks,

I'm trying to use a Vlookup in one sheet to return the value from another
sheet (if it exists) but my lookup_value cell contains a formula. Is there a
way i can tell the Vlookup to ignore the formula and focus on the value of
that formula.

Example

Col A Row 6 =VLOOKUP(B6,EmployeeNumbers,2,FALSE)
* the value is 0622

My Vlookup in Col D Row 6 =IF(ISNA(VLOOKUP(A6,'NJ Union Contract Raise
Report'!A1:F300,6,FALSE)),"",VLOOKUP(A6,'NJ Union
Contract Raise Report'!A1:F300,6,FALSE))
*How can I tell this to use the value from A6 which is 0622??

Any help is always greatly appreciated.

TIA!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Vlookup for value

VLOOKUP does in fact look at the value and Not the formula. If you are not
getting the desired result, then there must be some other reason. What are
you getting from your VLOOKUP formula? Are you getting #N/A? If that is
the case, then chances are that VLOOKUP is not finding the A6 value within
your table. Possibly your table contains test and your A6 value is a
number. First, test cell A6 to see if it is a number:
=ISNUMBER(A1)

Then, manuallyl find the 0622 value in your lookup table and perform the
same test on that cell. Change A1 to whatever the cell is.
You could also test the cells agains each other. Assuming 0622 is in cell
A5:

=A1='NJ Union Contract Raise Report'!A5

If that comes back false, then that's the problem.

HTH,
Paul


--

"Stephen" wrote in message
...
Hi Folks,

I'm trying to use a Vlookup in one sheet to return the value from another
sheet (if it exists) but my lookup_value cell contains a formula. Is
there a
way i can tell the Vlookup to ignore the formula and focus on the value of
that formula.

Example

Col A Row 6 =VLOOKUP(B6,EmployeeNumbers,2,FALSE)
* the value is 0622

My Vlookup in Col D Row 6 =IF(ISNA(VLOOKUP(A6,'NJ Union Contract Raise
Report'!A1:F300,6,FALSE)),"",VLOOKUP(A6,'NJ Union
Contract Raise Report'!A1:F300,6,FALSE))
*How can I tell this to use the value from A6 which is 0622??

Any help is always greatly appreciated.

TIA!




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
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
using a vlookup to enter text into rows beneath the vlookup cell Roger on Excel Excel Programming 1 November 29th 07 12:09 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 06:57 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"