#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jordan
 
Posts: n/a
Default Coping formulas

I have a worksheet with data setup that is referenced by several other
worksheets using the vlookup formula. The first worksheet would use the
formula: =vlookup("a",a2:j10,2,false). This then needs to be copied over
changing the column in the formula each time. ie:
=vlookup("a",a2:j10,3,false), =vlookup("a",a2:j10,4,false) etc.

Is there an easier way of doing other than manually?

The other problem I have is that the same formula is used again on other
worksheets referencing the same data only starting on a different column.
For example a2:j10 would change to b2:j10 and then c2:j10. It moves over one
column for each worksheet.

Any help will be appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Coping formulas

Put numbers in the header of the column and refer to that cell, like in

=VLOOKUP("a",$A$2:$A$10,B$1,False)

This is an example where the formula is in B2 and below and B1 contains 1.
This formula can be copied down and right and adjusts automatically.


--
Kind regards,

Niek Otten

"Jordan" wrote in message
...
I have a worksheet with data setup that is referenced by several other
worksheets using the vlookup formula. The first worksheet would use the
formula: =vlookup("a",a2:j10,2,false). This then needs to be copied over
changing the column in the formula each time. ie:
=vlookup("a",a2:j10,3,false), =vlookup("a",a2:j10,4,false) etc.

Is there an easier way of doing other than manually?

The other problem I have is that the same formula is used again on other
worksheets referencing the same data only starting on a different column.
For example a2:j10 would change to b2:j10 and then c2:j10. It moves over
one
column for each worksheet.

Any help will be appreciated.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default Coping formulas

Jordan

One method to increment the column in the VLOOKUP formula is.........

Example only...........Select 4 cells B1:E1

Enter the formula in the active cell(B1) =VLOOKUP(A1,A2:E50,{2,3,4,5},FALSE)

This is an array formula and must be entered with CTRL + SHIFT + ENTER


Gord Dibben Excel MVP


On Wed, 30 Nov 2005 13:46:05 -0800, Jordan
wrote:

I have a worksheet with data setup that is referenced by several other
worksheets using the vlookup formula. The first worksheet would use the
formula: =vlookup("a",a2:j10,2,false). This then needs to be copied over
changing the column in the formula each time. ie:
=vlookup("a",a2:j10,3,false), =vlookup("a",a2:j10,4,false) etc.

Is there an easier way of doing other than manually?

The other problem I have is that the same formula is used again on other
worksheets referencing the same data only starting on a different column.
For example a2:j10 would change to b2:j10 and then c2:j10. It moves over one
column for each worksheet.

Any help will be appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Richard9278
 
Posts: n/a
Default Coping formulas


You could also use:

=VLOOKUP("a",$A$2:$J$10,COLUMN(B$1),False). This should alleviate the
need to number the columns. You can Just copy it to the right and/or
down.


--
Richard9278
------------------------------------------------------------------------
Richard9278's Profile: http://www.excelforum.com/member.php...o&userid=28770
View this thread: http://www.excelforum.com/showthread...hreadid=489609

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jordan
 
Posts: n/a
Default Coping formulas

Thank You. This is going to save alot of time. I also have to take the same
formula and move it to other worksheets. For each worksheet the
col_index_number array will change by one number. For example Sheet One
would be {7,8,9,10} and Sheet Two would be {6,7,8,9}. The table_array also
has to change by one column. For example Sheet One would be $A$2:$E$7 and
Sheet Two would be $B$2:$E$7.

I have ten rows across and 50 sheets. What you gave me will save a ton of
time as I will make a copy from one sheet to the next and just modifiy the
first and last number in the array. I will also have to change the column on
the table_array for each sheet and then copy it over.

Any additional tips or insight will be apprecieated.

Thanks for what you sent, it's a big help.

"Gord Dibben" wrote:

Jordan

One method to increment the column in the VLOOKUP formula is.........

Example only...........Select 4 cells B1:E1

Enter the formula in the active cell(B1) =VLOOKUP(A1,A2:E50,{2,3,4,5},FALSE)

This is an array formula and must be entered with CTRL + SHIFT + ENTER


Gord Dibben Excel MVP


On Wed, 30 Nov 2005 13:46:05 -0800, Jordan
wrote:

I have a worksheet with data setup that is referenced by several other
worksheets using the vlookup formula. The first worksheet would use the
formula: =vlookup("a",a2:j10,2,false). This then needs to be copied over
changing the column in the formula each time. ie:
=vlookup("a",a2:j10,3,false), =vlookup("a",a2:j10,4,false) etc.

Is there an easier way of doing other than manually?

The other problem I have is that the same formula is used again on other
worksheets referencing the same data only starting on a different column.
For example a2:j10 would change to b2:j10 and then c2:j10. It moves over one
column for each worksheet.

Any help will be appreciated.



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
Looking to copy a worksheet with all formats and formulas without coping inputed data God's Kid Excel Discussion (Misc queries) 3 October 28th 05 11:59 PM
Coping text using Formulas - Steven Excel Discussion (Misc queries) 2 August 23rd 05 11:21 PM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
coping a formulas to another cell. Sierrafsws Excel Worksheet Functions 1 July 22nd 05 06:55 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM


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