Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Angry VLookup Won't Copy down (#REF! error)

I have two separate sheets in my workbook, and I want to return data onto sheet 1 "DATA" from column 12 on sheet 2 "WEIGHTS" by matching values in the lefthand columns on both sheets. I'm new-ish to Excel and I've only successfully used a Vlookup once. I know my formula is correct because it is working on the first row.

=VLOOKUP(A2,WEIGHTS!1:65536,12)

But when I go to copy it down, I get #REF! and the formula changes to this.

=VLOOKUP(A3,WEIGHTS!#REF!,12)

I know it has to do with selecting the entire sheet and the formula wanting to add a row onto 65536, but I have no idea how to fix it. How do I select a column off the second sheet for the table array?
  #2   Report Post  
Junior Member
 
Posts: 2
Default

I figured it out myself but can't figure out how to delete this post. The problem was that I hadn't sorted my WEIGHTS column in ascending order. *facepalm*
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,514
Default VLookup Won't Copy down (#REF! error)

kristawoods brought next idea :
I have two separate sheets in my workbook, and I want to return data
onto sheet 1 "DATA" from column 12 on sheet 2 "WEIGHTS" by matching
values in the lefthand columns on both sheets. I'm new-ish to Excel and
I've only successfully used a Vlookup once. I know my formula is
correct because it is working on the first row.

=VLOOKUP(A2,WEIGHTS!1:65536,12)

But when I go to copy it down, I get #REF! and the formula changes to
this.

=VLOOKUP(A3,WEIGHTS!#REF!,12)

I know it has to do with selecting the entire sheet and the formula
wanting to add a row onto 65536, but I have no idea how to fix it. How
do I select a column off the second sheet for the table array?


You're running off the bottom of the sheet when you copy down. Yoe need
to use fully absolute refs for the rows...

=VLOOKUP(A2,WEIGHTS!$1:$65536,12)

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
vlookup error... Rajmahal Excel Worksheet Functions 3 September 23rd 07 02:32 AM
Subscript out of range error - save copy error bg18461[_16_] Excel Programming 2 June 13th 06 04:53 PM
Subscript out of range error - save copy error bg18461[_15_] Excel Programming 1 June 13th 06 04:36 PM
Vlookup Error mick.smith1964 Excel Worksheet Functions 5 January 13th 05 10:03 PM
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) Tim[_36_] Excel Programming 4 April 23rd 04 02:53 AM


All times are GMT +1. The time now is 12:40 PM.

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"