A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I reference a cell to another in the preceding worksheet



 
 
Thread Tools Display Modes
  #1  
Old August 5th, 2008, 08:18 PM posted to microsoft.public.excel.worksheet.functions
karl.sonja
external usenet poster
 
Posts: 1
Default How do I reference a cell to another in the preceding worksheet

When I create another worksheet (ie copy a sheet) I want to refer in the new
worksheet to some cell values in the PRECEDING worksheet. How do I refer to
that sheet in the formulae so that it always refers to the previous sheet.
  #2  
Old August 5th, 2008, 09:17 PM posted to microsoft.public.excel.worksheet.functions
Stephen Lloyd[_2_]
external usenet poster
 
Posts: 27
Default How do I reference a cell to another in the preceding worksheet

If you wanted to reference A1 in Sheet3 of the same workbook:
=Sheet3!A1

If you wanted to reference A1 in Sheet3 of Book3.xls:
=[Book3.xls]Sheet3!A1

I hope that helps

"karl.sonja" wrote:

When I create another worksheet (ie copy a sheet) I want to refer in the new
worksheet to some cell values in the PRECEDING worksheet. How do I refer to
that sheet in the formulae so that it always refers to the previous sheet.

  #3  
Old August 5th, 2008, 09:18 PM posted to microsoft.public.excel.worksheet.functions
J Sedoff comRemove>
external usenet poster
 
Posts: 26
Default How do I reference a cell to another in the preceding worksheet

In front of each cell reference add the sheet name. So for the following:
=A1/A3
will change to:
='New SheetName'!A1/'New Sheetname'!A3

Hope that helps, Jim
--
I appreciate any feedback. Please don''t be scared to say that "Yes"
I/someone else did answer your question. Thank you.
  #4  
Old August 5th, 2008, 10:52 PM posted to microsoft.public.excel.worksheet.functions
Stephen Lloyd[_2_]
external usenet poster
 
Posts: 27
Default How do I reference a cell to another in the preceding workshee

Jim's post makes a great point. If the name of your sheet has spaces you
need to enclose it with quotes:

=ThisSheet!A3
vs
='This Sheet'!A3


"J Sedoff" wrote:

In front of each cell reference add the sheet name. So for the following:
=A1/A3
will change to:
='New SheetName'!A1/'New Sheetname'!A3

Hope that helps, Jim
--
I appreciate any feedback. Please don''t be scared to say that "Yes"
I/someone else did answer your question. Thank you.

  #5  
Old August 5th, 2008, 11:43 PM posted to microsoft.public.excel.worksheet.functions
RagDyeR
external usenet poster
 
Posts: 3,482
Default How do I reference a cell to another in the preceding worksheet

What is the naming routine of your sheets.

It's much easier to automate something like this if they're numbered in some
fashion.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"karl.sonja" wrote in message
...
When I create another worksheet (ie copy a sheet) I want to refer in the
new
worksheet to some cell values in the PRECEDING worksheet. How do I refer
to
that sheet in the formulae so that it always refers to the previous sheet.



  #6  
Old August 6th, 2008, 07:35 PM posted to microsoft.public.excel.worksheet.functions
karl.sonja[_2_]
external usenet poster
 
Posts: 2
Default How do I reference a cell to another in the preceding workshee

I will give you my example of a cell ='SV 122'!N43
My sheets are named SV 120, SV 121, SV 122 etc
When I create sheet SV 122 by copying SV 121 I have to manually edit ='SV
121'!N43 to ='SV 122'!N43.
This is what I want to avoid doing because I have a large number of cells to
edit each time I create the next sheet.
Is there a way I can increment automatically the 121 to 122 during the
copy/create a new sheet process?
"RagDyer" wrote:

What is the naming routine of your sheets.

It's much easier to automate something like this if they're numbered in some
fashion.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"karl.sonja" wrote in message
...
When I create another worksheet (ie copy a sheet) I want to refer in the
new
worksheet to some cell values in the PRECEDING worksheet. How do I refer
to
that sheet in the formulae so that it always refers to the previous sheet.




  #7  
Old August 6th, 2008, 08:01 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
Default How do I reference a cell to another in the preceding workshee


"karl.sonja" wrote in message
...
When I create another worksheet (ie copy a sheet) I want to refer in the
new
worksheet to some cell values in the PRECEDING worksheet. How do I refer
to
that sheet in the formulae so that it always refers to the previous sheet.



"RagDyer" wrote:

What is the naming routine of your sheets.

It's much easier to automate something like this if they're numbered in some
fashion.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------


karl.sonja wrote:
I will give you my example of a cell ='SV 122'!N43
My sheets are named SV 120, SV 121, SV 122 etc
When I create sheet SV 122 by copying SV 121 I have to manually edit ='SV
121'!N43 to ='SV 122'!N43.
This is what I want to avoid doing because I have a large number of cells to
edit each time I create the next sheet.
Is there a way I can increment automatically the 121 to 122 during the
copy/create a new sheet process?




If you want to replace all references to

'SV 121'

with

'SV 122'

then select the columns, rows or the whole sheet (as needed) and use "Find and
Replace".
  #8  
Old August 6th, 2008, 08:42 PM posted to microsoft.public.excel.worksheet.functions
karl.sonja[_2_]
external usenet poster
 
Posts: 2
Default How do I reference a cell to another in the preceding workshee

Thanks. I wanted to rate your reply but could not find the button to do sa

"Glenn" wrote:


"karl.sonja" wrote in message
...
When I create another worksheet (ie copy a sheet) I want to refer in the
new
worksheet to some cell values in the PRECEDING worksheet. How do I refer
to
that sheet in the formulae so that it always refers to the previous sheet.



"RagDyer" wrote:

What is the naming routine of your sheets.

It's much easier to automate something like this if they're numbered in some
fashion.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------


karl.sonja wrote:
I will give you my example of a cell ='SV 122'!N43
My sheets are named SV 120, SV 121, SV 122 etc
When I create sheet SV 122 by copying SV 121 I have to manually edit ='SV
121'!N43 to ='SV 122'!N43.
This is what I want to avoid doing because I have a large number of cells to
edit each time I create the next sheet.
Is there a way I can increment automatically the 121 to 122 during the
copy/create a new sheet process?




If you want to replace all references to

'SV 121'

with

'SV 122'

then select the columns, rows or the whole sheet (as needed) and use "Find and
Replace".

  #9  
Old August 6th, 2008, 10:31 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default How do I reference a cell to another in the preceding worksheet

Karl

If you're willing to use a User Defined Function which ignores sheet names.

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

=SUM(A1:A10) + Prevsheet(F14)


Gord Dibben MS Excel MVP

On Tue, 5 Aug 2008 12:18:00 -0700, karl.sonja
wrote:

When I create another worksheet (ie copy a sheet) I want to refer in the new
worksheet to some cell values in the PRECEDING worksheet. How do I refer to
that sheet in the formulae so that it always refers to the previous sheet.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.