Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 133
Default VLOOKUP inconsistent ... help.

I have a spreadsheet with 4 pages; each page has a simple list, with a number
in the left column and a letter in the right column.

On the various pages I do a vlookup on the first column of the others ...
some work and some just flat don't! How do I figure this out?

BTW ... spreadsheet is at http://www.heritage-dr.com/vlookup-prob.xls

How do I fix this?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default VLOOKUP inconsistent ... help.

At first glance, looks like you have copied/dragged your vlookup formulas,
without having absolute references in the lookup array. This makes the
lookup array change for each row you copy the formula into (relative
references). Put some $ signs around and you should be fine eg
vlookup(B2,'sheet1'!$A$2:$B$27,2,0). Even better may be to name your range
for each array

Sheet1 C2 =VLOOKUP(A2,Sheet2!A$2:B$27,2,FALSE) - ready to copy down
Sheet2 C2 =VLOOKUP(A2,Sheet3!A$2:B$27,2,FALSE) etc

"Wayne" wrote:

I have a spreadsheet with 4 pages; each page has a simple list, with a number
in the left column and a letter in the right column.

On the various pages I do a vlookup on the first column of the others ...
some work and some just flat don't! How do I figure this out?

BTW ... spreadsheet is at http://www.heritage-dr.com/vlookup-prob.xls

How do I fix this?

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default VLOOKUP inconsistent ... help.

Hi,

It's not inconsistent it is doing exactly what your telling it to do. Take
this formula on sheet1

=VLOOKUP(A14,Sheet2!A15:B40,2,FALSE)

The value in A14 that your looking up is the number 13.
Now if we look at the llokup table on sheet 2 we find the value 13 is in
Cell A14 so it is outside the area bein referenced hence the #NA.

Now what I think you've done on sheet 1 is written the formula in C27 and
dragged up but because you haven't used absolute references you are getting
errors.

Put this in C2 of sheet 1 and drag down and the errors vanish and note the $
signs for absolute references. Repeat for other sheets

=VLOOKUP(A2,Sheet2!$A$2:$B$27,2,FALSE)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Wayne" wrote:

I have a spreadsheet with 4 pages; each page has a simple list, with a number
in the left column and a letter in the right column.

On the various pages I do a vlookup on the first column of the others ...
some work and some just flat don't! How do I figure this out?

BTW ... spreadsheet is at http://www.heritage-dr.com/vlookup-prob.xls

How do I fix this?

Thanks in advance.

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
inconsistent autofit annoni Excel Discussion (Misc queries) 0 March 30th 09 09:24 PM
Inconsistent Formula? andrew Excel Discussion (Misc queries) 6 February 12th 09 06:04 AM
Calculation inconsistent PMBO Excel Discussion (Misc queries) 4 December 2nd 08 05:12 PM
Inconsistent Sorting Saxman Excel Discussion (Misc queries) 17 October 23rd 06 12:17 PM
3-d referencing inconsistent duncan79 Excel Discussion (Misc queries) 5 January 25th 06 06:39 PM


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