Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Copying and adjusting formulas

I have a workbook made of a lot of consecutive sheets( each one a date).
I use a formula [f4 of the present sheet= h4 of the previous sheet]
meaning my actual stock is the remaining o the previous. I am looking
for a way to copy the formula [and update] to consecutive sheets. At
presen I have to go one by one. Any hints? Thanks beforehand.

Dimitry
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Copying and adjusting formulas

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(H4) entered in F4

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 Sat, 02 Aug 2008 15:26:14 -0300, dimitry wrote:

I have a workbook made of a lot of consecutive sheets( each one a date).
I use a formula [f4 of the present sheet= h4 of the previous sheet]
meaning my actual stock is the remaining o the previous. I am looking
for a way to copy the formula [and update] to consecutive sheets. At
presen I have to go one by one. Any hints? Thanks beforehand.

Dimitry


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
Copying a range of data without adjusting formulas Captain Jack Flak Excel Discussion (Misc queries) 18 August 11th 11 08:51 AM
Adjusting rows versus columns for formulas [email protected] Excel Discussion (Misc queries) 4 April 11th 08 11:41 AM
Adjusting rows versus columns for formulas [email protected] Excel Worksheet Functions 1 April 10th 08 11:18 AM
Copying formulas Matt Excel Discussion (Misc queries) 2 March 31st 08 03:15 PM
How copy a range o cells without adjusting formulas? Oliver Excel Discussion (Misc queries) 4 September 3rd 06 12:44 AM


All times are GMT +1. The time now is 03:14 AM.

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"