Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default "='sheet 1'!D4" auto fill sheet to sheet ='sheet 2'!D4

how do auto fill formula ='sheet 1'!D4 to sheet 2 ='sheet 2'!D4
with out change the formula maunually
I want to make one sheet with the formula and add sheets and have the new
sheet look at the adjacent sheet etc
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default "='sheet 1'!D4" auto fill sheet to sheet ='sheet 2'!D4

You can use the INDIRECT function to do this. Note that this will work only
with sheets that have a name of SheetN, where N is some number. It will
*not* work if the sheet have other names.

Enter the following formula in some cell, and change the value N in the
formula to the row number in which it was first entered.

=INDIRECT("'Sheet"&ROW()-N+1&"'!D4")

Now, fill down for as many cells as you have sheets.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"mistewalker" wrote in message
...
how do auto fill formula ='sheet 1'!D4 to sheet 2 ='sheet 2'!D4
with out change the formula maunually
I want to make one sheet with the formula and add sheets and have the new
sheet look at the adjacent sheet etc


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default "='sheet 1'!D4" auto fill sheet to sheet ='sheet 2'!D4

On Jan 6, 8:19 pm, mistewalker
wrote:
how do auto fill formula ='sheet 1'!D4 to sheet 2 ='sheet 2'!D4
with out change the formula maunually
I want to make one sheet with the formula and add sheets and have the new
sheet look at the adjacent sheet etc


You could use the indirect function.
Put this in row 1 your formula sheet and copy down:
=INDIRECT("Sheet" &ROW() &"!D4")

Per Erik
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default "='sheet 1'!D4" auto fill sheet to sheet ='sheet 2'!D4



i actually have the sheets named as dates "1-7-08" as an example and i just
want to be able to make a new sheet every month and have the formula change
to look at the previous sheet no matter what the name
make sense?
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default "='sheet 1'!D4" auto fill sheet to sheet ='sheet 2'!D4

You could use Find & Replace to change the old sheet name to the new
sheet name.

Hope this helps.

Pete

On Jan 6, 7:56*pm, mistewalker
wrote:
i actually have the sheets named as dates "1-7-08" as an example and i just
want to be able to make a new sheet every month and have the formula change
to look at the previous sheet no matter what the name
make sense?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default "='sheet 1'!D4" auto fill sheet to sheet ='sheet 2'!D4

You could use a User Defined Function to refer to the previous sheet.

Function PrevSheet(rg As Range)
n = Application.Caller.Parent.Index
If n = 1 Then
PrevSheet = CVErr(xlErrRef)
ElseIf TypeName(Sheets(n - 1)) = "Chart" Then
PrevSheet = CVErr(xlErrNA)
Else
PrevSheet = Sheets(n - 1).Range(rg.Address).Value
End If
End Function

=PrevSheet(D4) entered in a cell on sheet 1-7-08 will return value from D4 on
sheet 1-6-08


Gord Dibben MS Excel MVP

On Sun, 6 Jan 2008 11:56:00 -0800, mistewalker
wrote:



i actually have the sheets named as dates "1-7-08" as an example and i just
want to be able to make a new sheet every month and have the formula change
to look at the previous sheet no matter what the name
make sense?


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
how to eliminate E-mail "To" & "CC" boxes at top of Excel Sheet BillFitz Excel Discussion (Misc queries) 10 March 24th 08 11:42 AM
Excel "Move or Copy" and "Delete" sheet functions dsiama Excel Worksheet Functions 1 December 28th 07 01:57 PM
Set sheet to "Not Print Fill Color" Ben Dummar Excel Discussion (Misc queries) 1 March 16th 07 05:31 PM
Auto "copy and paste" individual cells from various sheets into one sheet ?? [email protected] Excel Discussion (Misc queries) 2 March 1st 06 03:19 AM
How to fill in "BLANK" Cells Automactically...Large Spread Sheet msbutton27 Excel Discussion (Misc queries) 3 January 15th 06 04:12 PM


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