Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jlc
 
Posts: n/a
Default How do I expand columns in a table and auto change vlookup in wrks

I am creating a database and want to lookup data that is added to a worksheet
template.

Once I create the template for the worksheet, I want to be able to expand
the table and still have the correct info in the worksheet cell.

Formula:
=VLOOKUP($A$4,'Sal Dtbse'!$A$2:$DZ$201,3)

If I add a column in 'Sal Dtbse', the data in the worksheet will still
reference col #3, not the actual data that should be there.

  #2   Report Post  
Vasant Nanavati
 
Posts: n/a
Default

Instead of the number 3, use:

COLUMN(C:C)

--

Vasant


"jlc" wrote in message
...
I am creating a database and want to lookup data that is added to a
worksheet
template.

Once I create the template for the worksheet, I want to be able to expand
the table and still have the correct info in the worksheet cell.

Formula:
=VLOOKUP($A$4,'Sal Dtbse'!$A$2:$DZ$201,3)

If I add a column in 'Sal Dtbse', the data in the worksheet will still
reference col #3, not the actual data that should be there.



  #3   Report Post  
RagDyer
 
Posts: n/a
Default

Not too much info to make a viable suggestion!

*Where* are you inserting the column(s)?
In front of Column A?
In the middle of the data list?
At the end, after Column DZ?

AND, what do you want to change in the formula?
The entire size of the table array and/or the column index number?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"jlc" wrote in message
...
I am creating a database and want to lookup data that is added to a

worksheet
template.

Once I create the template for the worksheet, I want to be able to expand
the table and still have the correct info in the worksheet cell.

Formula:
=VLOOKUP($A$4,'Sal Dtbse'!$A$2:$DZ$201,3)

If I add a column in 'Sal Dtbse', the data in the worksheet will still
reference col #3, not the actual data that should be there.


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
Sheet protection code conflicts with Pivot Table "auto refresh" KG Excel Discussion (Misc queries) 6 December 21st 05 11:16 PM
auto fill data into a cell from a lookup table Tetradpoint Excel Discussion (Misc queries) 1 April 19th 05 04:46 PM
Pivot Table Auto Update Data Source? Ket Excel Worksheet Functions 1 February 18th 05 11:14 PM
Pivot table and filter Bruce Roberson New Users to Excel 1 January 25th 05 04:00 AM
ability to auto file column(s) on a pivot table km Excel Worksheet Functions 1 December 20th 04 09:39 PM


All times are GMT +1. The time now is 09:03 AM.

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"