Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default Vlookup to reference offset

Hii All,
I want to use vlookup in such a way that it includes only a
part of the table - not the whole table.
For eg. Vlookup (A1,A1:D100,3,FALSE) works fine.
But, i don't want to use it to lookup for all values of the
table.
So, it should only reference to first 10 rows only.
ie if i copy the formula down on different rows, first row should
include from A1:D10, second from A2:D11 and so on...
THe way I see the solution is by (A1,OFFSET(A1,D100,1,1,5),3,100) but
this generates and error.
ANy suggestions please help.
Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 168
Default Vlookup to reference offset

On Friday, March 8, 2013 12:27:13 AM UTC-8, Subodh wrote:
Hii All,

I want to use vlookup in such a way that it includes only a

part of the table - not the whole table.

For eg. Vlookup (A1,A1:D100,3,FALSE) works fine.

But, i don't want to use it to lookup for all values of the

table.

So, it should only reference to first 10 rows only.

ie if i copy the formula down on different rows, first row should

include from A1:D10, second from A2:D11 and so on...

THe way I see the solution is by (A1,OFFSET(A1,D100,1,1,5),3,100) but

this generates and error.

ANy suggestions please help.

Thanks in advance.


Try this in the first row and pull down. Looks like it will give you what you want.

=VLOOKUP(A1,A1:D10,3,FALSE)
=VLOOKUP(A2,A2:D11,3,FALSE)
=VLOOKUP(A3,A3:D12,3,FALSE)
etc...

If you want to always have A1 as the lookup value then make this small change to $A$1 in the first formula. Then pull down.

=VLOOKUP($A$1,A1:D10,3,FALSE)
=VLOOKUP($A$1,A2:D11,3,FALSE)
=VLOOKUP($A$1,A3:D12,3,FALSE)
etc...

Regards,
Howard
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
Is it possible to offset a worksheet reference? pfrieder Excel Worksheet Functions 5 February 10th 09 01:06 AM
offset reference shashidhar Excel Worksheet Functions 1 March 23rd 08 09:33 PM
REFERENCE ... VLOOKUP ... OFFSET... MATCH? Michel Khennafi Excel Worksheet Functions 1 January 4th 08 08:40 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
How to reference an offset from a cell? poddys Excel Worksheet Functions 3 March 10th 06 08:24 PM


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