LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default copy a changing formula???

Hi,
I have the following formula
=VLOOKUP(A1,Jan2004'!$A$2:$I$235,9,FALSE)

However, each month the worksheet changes (Feb2004, Mar2004 etc) and the
range could be more or less
is there a way to build this formula in code and replace the sheetname and
range with variables and then paste and copy this down in to a column on
another sheet where the column heading is the same as the sheet name?

ie. Sheet where the formula appears is laid out like so

Code(lookup value) Jan Feb Mar Apr etc

appropriate data needs to be input into the correct column based on the
sheet name i.e Jan2004, Feb2004 Mar2004

Thanks


 
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
formula drag down/copy changing integers of 6 mainsol Excel Discussion (Misc queries) 2 February 9th 09 09:29 AM
copy formula without changing the row. vwyatt Excel Discussion (Misc queries) 2 April 14th 06 06:23 PM
need to copy/paste formula w/o it changing Bonnie Excel Discussion (Misc queries) 4 March 10th 05 05:53 PM
HOW DO I COPY FORMULA WITHOUT CHANGING CELL REFERENCE anantth Excel Discussion (Misc queries) 4 February 6th 05 12:25 PM
Copy formula without changing all values sweathe Excel Programming 2 December 4th 03 09:08 PM


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