Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default copy and autoadjust formula

I have a workbook with many consecutive sheets (one for each day)In 3
different cells (on the same location in every sheet) there is a
formula, which comes from the previous sheet. Eg: C3Tuesday='Monday!F3.
How can I copy these formulas so that they autoadjust from sheet to
sheet, and I dont have to do it manually. Thanks beforehand
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default copy and autoadjust formula

If you're willing to use a User Defined Function.......

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(F3)

Note: you can group the worksheets from 2 onwards and enter the formula on the
activesheet.

Will be entered in all sheets except first sheet.


Gord Dibben MS Excel MVP

On Mon, 26 May 2008 18:13:38 -0300, dimitry wrote:

I have a workbook with many consecutive sheets (one for each day)In 3
different cells (on the same location in every sheet) there is a
formula, which comes from the previous sheet. Eg: C3Tuesday='Monday!F3.
How can I copy these formulas so that they autoadjust from sheet to
sheet, and I dont have to do it manually. Thanks beforehand


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
I copy a formula and the results copy from the original cell brooklynsd Excel Discussion (Misc queries) 1 June 23rd 07 01:35 AM
copy formula down a column and have cell references change within formula brad New Users to Excel 5 May 13th 07 04:38 PM
Copy Formula Down Without Changing Entire Formula roy.okinawa Excel Discussion (Misc queries) 3 March 16th 06 01:54 AM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
Copy formula so destination displays formula as text Omunene Excel Discussion (Misc queries) 2 September 30th 05 06:28 PM


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