Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default transfer a variable balance from one worksheet to the next

I have recently started using Excel to manage my monthly budget. I have
successfully set up monthly worksheets, but would like to carry forward the
final balance from one month to the next. This will be a variable balance.
I know that probably the easy way out would be to simply copy and paste, but
if there is a function which would do this, I would like to know about it !!
  #2   Report Post  
Posted to microsoft.public.excel.newusers
RJ RJ is offline
external usenet poster
 
Posts: 40
Default transfer a variable balance from one worksheet to the next

I am assuming you have a new worksheet for each month. On the latest Months
worksheet on the beginning balance line you should put a formula to reference
the ending balance from the last months.

For example if the last months worksheet was Sheet1 and the ending balance
was on cell B20 then on the new months worksheet in the cell that you want
the ending balance from last month type the following formula

=Sheet1!B20

"cariad 61" wrote:

I have recently started using Excel to manage my monthly budget. I have
successfully set up monthly worksheets, but would like to carry forward the
final balance from one month to the next. This will be a variable balance.
I know that probably the easy way out would be to simply copy and paste, but
if there is a function which would do this, I would like to know about it !!

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default transfer a variable balance from one worksheet to the next

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

Say you have 20 sheets, sheet1 through sheet20...........sheet names don't
matter.

Select second sheet and SHIFT + Click last sheet

In active sheet B1 enter =PrevSheet(A1)

Ungroup the sheets.

Each B1 will have the contents of the previous sheet's A1

Copy/paste the UDF above into a General Module in your workbook.

If not familiar with macros and VBA, visit David McRitchie's website on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + R to open Project Explorer.

Find your workbook/project and select it.

Right-click and InsertModule. Paste the above code in there. Save the
workbook and hit ALT + Q to return to your workbook.


Gord Dibben Excel MVP

On Tue, 31 Jul 2007 13:12:02 -0700, cariad 61 <cariad
wrote:

I have recently started using Excel to manage my monthly budget. I have
successfully set up monthly worksheets, but would like to carry forward the
final balance from one month to the next. This will be a variable balance.
I know that probably the easy way out would be to simply copy and paste, but
if there is a function which would do this, I would like to know about it !!


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 161
Default transfer a variable balance from one worksheet to the next

"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
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


Eh? All the Op wants to do is to replicate the total in one cell from one
sheet into a cell on the next......
So in Sheet 2 enter the formula =Sheet1!C14 in the cell you want the b/fwd
balance to appear.... KISS!


  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default transfer a variable balance from one worksheet to the next

Which you then have to do for 12 sheets.

If that suits you, go ahead but I don't consider that as KISS

I would rather do all sheets at once.


Gord Dibben MS Excel MVP

On Tue, 31 Jul 2007 22:24:09 +0100, "Gordon" wrote:

Eh? All the Op wants to do is to replicate the total in one cell from one
sheet into a cell on the next......
So in Sheet 2 enter the formula =Sheet1!C14 in the cell you want the b/fwd
balance to appear.... KISS!


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 do I set up a running balance worksheet ? Veronica Excel Worksheet Functions 2 April 18th 07 08:31 PM
HOW DO I GET A BALANCE TO C/FORWARD TO NEXT WORKSHEET zhandra Excel Worksheet Functions 1 September 12th 06 11:29 AM
How do i get the running balance from one worksheet to another? Spoardy Excel Worksheet Functions 4 August 2nd 05 08:58 PM
calculate interest on an increasing balance with variable rate LPMastro Excel Discussion (Misc queries) 0 February 16th 05 08:13 PM
excel trail balance worksheet leeonline Excel Discussion (Misc queries) 1 January 7th 05 03:19 AM


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