Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
travchev
 
Posts: n/a
Default Need formula for cumulative data-using prior worksheet (YTD)

I am looking for the function to use to be able to calculate data using the
prior worksheet, vs an absolute function using the same sheet.
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

Excel doesn't support relative sheet referencing; that is, you
can't write a formula like

=PreviousSheet!A1

You'll either have to hard code the previous sheet's name, or use
VBA to get the name of the previous sheet and incorporate that in
to an INDIRECT function. E.g.,

Function PreviousSheet() As String
PreviousSheet = Application.Caller.Parent.Previous.Next.Name
End Function

=INDIRECT(PreviousSheet & "!A1")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"travchev" wrote in message
...
I am looking for the function to use to be able to calculate
data using the
prior worksheet, vs an absolute function using the same sheet.



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
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
ENTER A FORMULA IN A CELL TO UTILIZE THE IMPORT DATA FUNCTIONS? datachall Excel Worksheet Functions 2 April 26th 05 10:47 AM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM
matching data formula? Todd Excel Worksheet Functions 1 November 16th 04 08:44 PM


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