PC Review


Reply
Thread Tools Rate Thread

Column reference in Vlookup formula

 
 
Kevin K
Guest
Posts: n/a
 
      26th Aug 2008
There are time when I need to add column to the section of the spreadsheet
that I'm referencing in my vlookup formula. When I add a column, the vlookup
formula adjusts the range but it doesn't change (i.e. increment) the existing
column references so all of the data retrieved is bad because it's now
referencing the wrong column. Is there a way to fix this without doing a
massive 'find and replace'?
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      26th Aug 2008
Example only, your ranges may vary but by using the column() you can drag
across.

=VLOOKUP($G1,$A$2:$F$31,COLUMN()-6,FALSE) entered in F1


Gord Dibben MS Excel MVP

On Tue, 26 Aug 2008 12:01:05 -0700, Kevin K
<(E-Mail Removed)> wrote:

>There are time when I need to add column to the section of the spreadsheet
>that I'm referencing in my vlookup formula. When I add a column, the vlookup
>formula adjusts the range but it doesn't change (i.e. increment) the existing
>column references so all of the data retrieved is bad because it's now
>referencing the wrong column. Is there a way to fix this without doing a
>massive 'find and replace'?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup with variable column reference jenVBA Microsoft Excel Worksheet Functions 1 19th Mar 2010 08:57 PM
Vlookup and column reference problems ksean Microsoft Excel Worksheet Functions 15 1st May 2009 06:27 AM
using hlookup to reference a column in a vlookup formula? joemeshuggah Microsoft Excel Worksheet Functions 3 9th Oct 2008 04:25 PM
Vlookup with Multiple like values in the reference column ckemtp Microsoft Excel Worksheet Functions 3 3rd Jul 2008 03:34 AM
VLookup using 2 worksheets, whole column reference =?Utf-8?B?Uk9TSUU=?= Microsoft Excel Worksheet Functions 1 22nd Feb 2006 12:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:43 AM.