Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vlookup relative reference?!!??!!


I have a about 2000 rows and i need them to reference sheet 2 for
value.
When i drag the formula down excel moves the array as well...

here is what i want in each cell:
=vlookup(b2,sheet2!a1:b2000,2)
=vlookup(b3,sheet2!a1:b2000,2)
=vlookup(b4,sheet2!a1:b2000,2)
=vlookup(b5,sheet2!a1:b2000,2)
and so on

but excel does this...
=vlookup(b2,sheet2!a1:b2001,2)
=vlookup(b3,sheet2!a2:b2002,2)
=vlookup(b4,sheet2!a3:b2003,2)
=vlookup(b5,sheet2!a4:b2004,2)

What am I doing wrong?

thank you


--
rainxking
------------------------------------------------------------------------
rainxking's Profile: http://www.excelforum.com/member.php...fo&userid=9431
View this thread: http://www.excelforum.com/showthread...hreadid=381811

  #2   Report Post  
Posted to microsoft.public.excel.programming
KL KL is offline
external usenet poster
 
Posts: 201
Default vlookup relative reference?!!??!!

Hi rainxking,

You just forgot to establish an absolute reference to your lookup table,
which you can do using the $ sign, like this:

=vlookup(b2,sheet2!$a$1:$b$2000,2)

Try copying now.

Regards,
KL


"rainxking" wrote in
message ...

I have a about 2000 rows and i need them to reference sheet 2 for
value.
When i drag the formula down excel moves the array as well...

here is what i want in each cell:
=vlookup(b2,sheet2!a1:b2000,2)
=vlookup(b3,sheet2!a1:b2000,2)
=vlookup(b4,sheet2!a1:b2000,2)
=vlookup(b5,sheet2!a1:b2000,2)
and so on

but excel does this...
=vlookup(b2,sheet2!a1:b2001,2)
=vlookup(b3,sheet2!a2:b2002,2)
=vlookup(b4,sheet2!a3:b2003,2)
=vlookup(b5,sheet2!a4:b2004,2)

What am I doing wrong?

thank you


--
rainxking
------------------------------------------------------------------------
rainxking's Profile:
http://www.excelforum.com/member.php...fo&userid=9431
View this thread: http://www.excelforum.com/showthread...hreadid=381811



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 & relative cell reference? Cecilia Excel Worksheet Functions 2 April 14th 10 05:47 AM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Relative Reference Barry Givens via OfficeKB.com Excel Discussion (Misc queries) 3 December 17th 04 07:31 PM
relative reference Charlie New Users to Excel 3 December 3rd 04 07:22 PM
relative reference nix2004 Excel Programming 3 April 20th 04 07:18 PM


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