Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Referencing Sheet Names In Formula

I have a number of sheets in a workbook named

Region 1 Actuals
Region 2 Actuals
Region 3 Actuals and so on (26 in total)

I have a summary sheet within which I am using the offset
function to refer to the Regional Actuals sheet.

What I am trying to do is to type into one cell on the
summary sheet the Region number which then automatically
updates all formulae within the cells on the summary sheet.

eg

I can type the formula =offset('Region 1 Actuals'!G3,2,0)
and this returns the right result.

However what I want to create is a formula that
automatically changes the 'Region 1 Actuals' part of the
formula, if the content of cell A1 in the summary sheet is
change to (say) Region 2.

I don't really want to go down the route of writing a
custom formula and some code to carry out a replace all
action if I can help it, so if somebody knows a built in
formula that can do this for me I would be eternally
grateful (so will my boss as it's because of him I am not
allowed to go down the custom formula route!!)

Many TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Referencing Sheet Names In Formula

one way:


=OFFSET(INDIRECT("'" & A1 & " Actuals'!G3"), 2, 0)


In article ,
"Paul Gurdin" wrote:

I have a number of sheets in a workbook named

Region 1 Actuals
Region 2 Actuals
Region 3 Actuals and so on (26 in total)

I have a summary sheet within which I am using the offset
function to refer to the Regional Actuals sheet.

What I am trying to do is to type into one cell on the
summary sheet the Region number which then automatically
updates all formulae within the cells on the summary sheet.

eg

I can type the formula =offset('Region 1 Actuals'!G3,2,0)
and this returns the right result.

However what I want to create is a formula that
automatically changes the 'Region 1 Actuals' part of the
formula, if the content of cell A1 in the summary sheet is
change to (say) Region 2.

I don't really want to go down the route of writing a
custom formula and some code to carry out a replace all
action if I can help it, so if somebody knows a built in
formula that can do this for me I would be eternally
grateful (so will my boss as it's because of him I am not
allowed to go down the custom formula route!!)

Many TIA

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Referencing Sheet Names In Formula

Many thanks for help. The function works fine.-----
Original Message-----
one way:


=OFFSET(INDIRECT("'" & A1 & " Actuals'!G3"), 2, 0)


In article ,
"Paul Gurdin" wrote:

I have a number of sheets in a workbook named

Region 1 Actuals
Region 2 Actuals
Region 3 Actuals and so on (26 in total)

I have a summary sheet within which I am using the

offset
function to refer to the Regional Actuals sheet.

What I am trying to do is to type into one cell on the
summary sheet the Region number which then

automatically
updates all formulae within the cells on the summary

sheet.

eg

I can type the formula =offset('Region 1 Actuals'!

G3,2,0)
and this returns the right result.

However what I want to create is a formula that
automatically changes the 'Region 1 Actuals' part of

the
formula, if the content of cell A1 in the summary sheet

is
change to (say) Region 2.

I don't really want to go down the route of writing a
custom formula and some code to carry out a replace all
action if I can help it, so if somebody knows a built

in
formula that can do this for me I would be eternally
grateful (so will my boss as it's because of him I am

not
allowed to go down the custom formula route!!)

Many TIA

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Referencing Sheet Names In Formula

Hi Paul,
I have the impression that you want to copy formulas down and across
using the fill handle, and if that is the case I can't tell from
a single formula what you want to the right and down for formulas.

You mention putting on value into A1, so I imagine that your
reference to A1 will be referred to by all formulas on the sheet
and you would want to use $A$1 so that using the fill handle
to replicate formulas will not change it's address.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"J.E. McGimpsey" wrote in message ...
one way:


=OFFSET(INDIRECT("'" & A1 & " Actuals'!G3"), 2, 0)


In article ,
"Paul Gurdin" wrote:

I have a number of sheets in a workbook named

Region 1 Actuals
Region 2 Actuals
Region 3 Actuals and so on (26 in total)

I have a summary sheet within which I am using the offset
function to refer to the Regional Actuals sheet.

What I am trying to do is to type into one cell on the
summary sheet the Region number which then automatically
updates all formulae within the cells on the summary sheet.

eg

I can type the formula =offset('Region 1 Actuals'!G3,2,0)
and this returns the right result.

However what I want to create is a formula that
automatically changes the 'Region 1 Actuals' part of the
formula, if the content of cell A1 in the summary sheet is
change to (say) Region 2.

I don't really want to go down the route of writing a
custom formula and some code to carry out a replace all
action if I can help it, so if somebody knows a built in
formula that can do this for me I would be eternally
grateful (so will my boss as it's because of him I am not
allowed to go down the custom formula route!!)

Many TIA



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
Sheet Referencing - autofilling sheet names Pat Excel Worksheet Functions 2 June 4th 09 03:50 AM
How to change sheet names via formula Arlen Excel Discussion (Misc queries) 3 July 28th 08 06:57 PM
Problem w/formula referencing another sheet PatrickP Excel Worksheet Functions 1 January 15th 08 04:42 AM
Referencing Sheet Names Stuart Grant New Users to Excel 1 October 4th 05 03:43 PM
copy formula referencing sheet name to another sheet Tat Excel Worksheet Functions 1 June 26th 05 03:00 AM


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