LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 154
Default VLOOKUP Pulls Incorrectly

Hello all,

I have a tedious problem that is plaguing my workplace (not only myself, but
other coworkers as well). I must say that I am well versed in lookups and
excel criteria, as well as coding and troubleshooting, but I am out of ideas
for solving this specific issue as I cannot find the issue itself.

I have a sheet (Variance) which uses vlookups to pull information from
another sheet (Actual Hours), using a code below, in a named range
(Actual_Hrs). This works seemingly well about 90% of the time, until I run
into the problem where the "Department" does not exist in the named range
(which the code will force a zero value), however the value returned is for
that of a different "Department" that is similar in all aspects but the last
digit.
So,
Variance TAB VLOOKUP:
25042610001 =IF(ISERROR(VLOOKUP(A1,Actual_Hrs,3)),0,VLOOKUP(A1 ,Actual_Hrs,3))
25042610002 =IF(ISERROR(VLOOKUP(A2,Actual_Hrs,3)),0,VLOOKUP(A2 ,Actual_Hrs,3))
25042610003 =IF(ISERROR(VLOOKUP(A3,Actual_Hrs,3)),0,VLOOKUP(A3 ,Actual_Hrs,3))

The department 25042610001 exists, pulling the correct value, but
25042610002 and 25042610003 DO NOT exist, and therefore should return a 0,
but instead are returning the values of 25042610001.

Actual Hours TAB (named range Actual_Hrs) shows:
25042610001 87.72

Variance TAB values returned from VLOOKUP:
25042610001 87.72
25042610002 87.72
25042610003 87.72

I have tried using features such as changing to numbers, text, currency, etc
and formula modifications such as TEXT(), VALUE(), LEFT(), RIGHT(), TRIM(),
etc. and anything else to pull the correct information, yet it still returns
the value of a different department.
I believed at one point that the issue could lie in the value of the
"Department" because when the column width is not exact to fit the cell, the
department code returned is 2.5043E+10 and therefore could only see the first
5 digits, but still the issue persists when TEXT is forced.

Any help or comments will be greatly appreciated. Also, if example books
will need to be provided, I should be able to work on providing one.
 
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
How do I create a formula that pulls info. from many sheets within Carolina Girl Excel Discussion (Misc queries) 4 November 9th 07 02:41 PM
Combo Box Pulls data jrascal Excel Discussion (Misc queries) 0 July 20th 07 06:38 PM
Can I have a cell with more than one formula that pulls different. B G Excel Discussion (Misc queries) 1 July 13th 06 09:31 PM
=IF(AND) equation pulls through N/A cells Boethius1 Excel Discussion (Misc queries) 0 March 13th 06 08:43 PM
Function in XL or in VBA for XL that pulls numeric digits from a t Nate Oliver Excel Discussion (Misc queries) 0 December 14th 04 04:57 PM


All times are GMT +1. The time now is 04:54 PM.

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"