#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Vlookup problem

Open a workbook with two sheets (sheet1 and sheet2).
In sheet1 cell B1, create a vlookup(A1,Sheet2!$C$1:$E$10,3,false).
Put in some values that work.
On sheet2, insert a column at B and move (the old column C) column D to the
new column B.
The vlookup changes to vlookup(A1,Sheet2!$B$1:$F$10,3,false).
The problem: The first column reference ($C$1) changes to ($B$1) as the old
column C was moved to B. The second column reference ($E$10) changed to
($F$10) due to the inserted column. But the offset (3) remained the same
instead of changing to (5) which would recognize the effect of inserting the
column and moving the source column.
Is there a fix for this?
Thank you,
SoCal Rick

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Vlookup problem

vlookup(A1,Sheet2!$C$1:$E$10,Columns(Sheet2!$C$1:$ E$10),false)

"SoCal Rick" wrote:

Open a workbook with two sheets (sheet1 and sheet2).
In sheet1 cell B1, create a vlookup(A1,Sheet2!$C$1:$E$10,3,false).
Put in some values that work.
On sheet2, insert a column at B and move (the old column C) column D to the
new column B.
The vlookup changes to vlookup(A1,Sheet2!$B$1:$F$10,3,false).
The problem: The first column reference ($C$1) changes to ($B$1) as the old
column C was moved to B. The second column reference ($E$10) changed to
($F$10) due to the inserted column. But the offset (3) remained the same
instead of changing to (5) which would recognize the effect of inserting the
column and moving the source column.
Is there a fix for this?
Thank you,
SoCal Rick

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

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 problem Mortir Excel Worksheet Functions 2 April 26th 07 10:48 AM
vlookup problem puiuluipui Excel Discussion (Misc queries) 2 February 5th 06 05:46 PM
Vlookup problem Graham Haughs Excel Worksheet Functions 3 February 1st 06 07:54 PM
VLookup Problem bwall Excel Discussion (Misc queries) 5 September 10th 05 12:15 AM
vlookup problem Jonny Excel Worksheet Functions 2 April 19th 05 01:52 PM


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