Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jrw
 
Posts: n/a
Default Copying formulas from multiple worksheets

I have 13 worksheets (Jan. - Dec. and Total). The Total worksheet has 12
columns (Jan. - Dec.) Total!A1 = Jan!$A$1. How can I copy the reference from
Total!A1 to Total!A2, Total!A3 all the way to Total!12 so that I get
Feb!$A$1, Mar!$A$1 thru Dec!$A$1???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Copying formulas from multiple worksheets

"jrw" wrote:
I have 13 worksheets (Jan. - Dec. and Total).
The Total worksheet has 12 columns (Jan. - Dec.)
Total!A1 = Jan!$A$1.
How can I copy the reference from
Total!A1 to Total!A2, Total!A3 all the way to
Total!12 so that I get Feb!$A$1, Mar!$A$1 thru Dec!$A$1?


One way ..

We'll create a defined range "Months" first
Click Insert Name Define
Under Names in workbook, input: Months
Under Refers to, paste:
={"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug"; "Sep";"Oct";"Nov";"Dec"}
Click OK

Then in sheet: Total,
Put in A1: =INDIRECT(INDEX(Months,ROW(A1))&"!A1")
Copy A1 down to A12
A1:A12 will return the contents from: Jan!A1, Feb!A1, etc

And if we wanted it to fill across (instead of down)
just change ROW to COLUMN, i.e. put in A1:
=INDIRECT(INDEX(Months,COLUMN(A1))&"!A1")
and copy A1 to L1
A1:L1 will return the contents from: Jan!A1, Feb!A1, ... Dec!A1

Lastly, a slight twist to it ..
if we wanted it to fill across and down from A1 as:

Jan!A1, Jan!B1, Jan!C1 ..
Feb!A1, Feb!B1, Feb!C1 ..
etc

we could put in A1:
=OFFSET(INDIRECT(INDEX(Months,ROW(A1))&"!A1"),,COL UMN(A1)-1)
then copy A1 across as desired to say, AZ1,
and fill down to AZ12
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
using multiple worksheets to do calculations trixma Excel Discussion (Misc queries) 3 August 6th 05 02:53 AM
Conditional formulas between multiple worksheets Nathan Excel Worksheet Functions 1 August 5th 05 08:41 PM
Copying a Formula To Reference Multiple Worksheets carl Excel Worksheet Functions 1 August 5th 05 01:06 AM
copying cells from other worksheets yesbob Excel Discussion (Misc queries) 1 February 7th 05 05:18 PM
Excel 2002 - copying formulas across worksheets Greg Excel Discussion (Misc queries) 1 January 27th 05 10:45 PM


All times are GMT +1. The time now is 12:57 PM.

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"