Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Formula with dynamic tab reference

I have a workbook with 50 tabs and would like to write a formula that pulls
data from a set cell range but across different tabs. I'd like it written in
a way where a cell (on the summary sheet) occupys a tab name and that cell
will be referenced in the formula so that if I change the name, the formula
knows to pull from a different tab.

No macros please.

Thank you,
Charlie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default Formula with dynamic tab reference

Charlie,

Get cell A1 from sheet named in B4:
=INDIRECT("'" & B4 & "'!A1")

Get cell named in C4 from sheet named in B4.
=INDIRECT("'" & B4 & "'!" & C4)

If you're not sure how to read the quote marks and apostrophes, move the cursor across with
the arrow keys to see one character at a time.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"teh_chucksta" wrote in message
...
I have a workbook with 50 tabs and would like to write a formula that pulls
data from a set cell range but across different tabs. I'd like it written in
a way where a cell (on the summary sheet) occupys a tab name and that cell
will be referenced in the formula so that if I change the name, the formula
knows to pull from a different tab.

No macros please.

Thank you,
Charlie



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Formula with dynamic tab reference

Thanks Earl, it works like a charm!

"Earl Kiosterud" wrote:

Charlie,

Get cell A1 from sheet named in B4:
=INDIRECT("'" & B4 & "'!A1")

Get cell named in C4 from sheet named in B4.
=INDIRECT("'" & B4 & "'!" & C4)

If you're not sure how to read the quote marks and apostrophes, move the cursor across with
the arrow keys to see one character at a time.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"teh_chucksta" wrote in message
...
I have a workbook with 50 tabs and would like to write a formula that pulls
data from a set cell range but across different tabs. I'd like it written in
a way where a cell (on the summary sheet) occupys a tab name and that cell
will be referenced in the formula so that if I change the name, the formula
knows to pull from a different tab.

No macros please.

Thank you,
Charlie




  #4   Report Post  
Posted to microsoft.public.excel.misc
Ali Ali is offline
external usenet poster
 
Posts: 80
Default Formula with dynamic tab reference

Hi earl, sorry i must be missing something. My worksheets are named as staff
names: david, John , peter.
Summary sheet has B1 david, B2 John, B3 peter etc
In column C i need it to read value in H10, from each of the individual
sheets. (overtime for each)
I must be missing something in the quote marks and apostrophes perhaps as i
cant get it to work.
thanks
ali


"teh_chucksta" wrote:

Thanks Earl, it works like a charm!

"Earl Kiosterud" wrote:

Charlie,

Get cell A1 from sheet named in B4:
=INDIRECT("'" & B4 & "'!A1")

Get cell named in C4 from sheet named in B4.
=INDIRECT("'" & B4 & "'!" & C4)

If you're not sure how to read the quote marks and apostrophes, move the cursor across with
the arrow keys to see one character at a time.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"teh_chucksta" wrote in message
...
I have a workbook with 50 tabs and would like to write a formula that pulls
data from a set cell range but across different tabs. I'd like it written in
a way where a cell (on the summary sheet) occupys a tab name and that cell
will be referenced in the formula so that if I change the name, the formula
knows to pull from a different tab.

No macros please.

Thank you,
Charlie




  #5   Report Post  
Posted to microsoft.public.excel.misc
Ali Ali is offline
external usenet poster
 
Posts: 80
Default Formula with dynamic tab reference

Never mind earl, I have sorted it out. many Thanks

"Ali" wrote:

Hi earl, sorry i must be missing something. My worksheets are named as staff
names: david, John , peter.
Summary sheet has B1 david, B2 John, B3 peter etc
In column C i need it to read value in H10, from each of the individual
sheets. (overtime for each)
I must be missing something in the quote marks and apostrophes perhaps as i
cant get it to work.
thanks
ali


"teh_chucksta" wrote:

Thanks Earl, it works like a charm!

"Earl Kiosterud" wrote:

Charlie,

Get cell A1 from sheet named in B4:
=INDIRECT("'" & B4 & "'!A1")

Get cell named in C4 from sheet named in B4.
=INDIRECT("'" & B4 & "'!" & C4)

If you're not sure how to read the quote marks and apostrophes, move the cursor across with
the arrow keys to see one character at a time.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"teh_chucksta" wrote in message
...
I have a workbook with 50 tabs and would like to write a formula that pulls
data from a set cell range but across different tabs. I'd like it written in
a way where a cell (on the summary sheet) occupys a tab name and that cell
will be referenced in the formula so that if I change the name, the formula
knows to pull from a different tab.

No macros please.

Thank you,
Charlie



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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Help with Formula Reference Point Scott D. Excel Worksheet Functions 2 October 16th 06 05:28 PM
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
"Unable to set the Formula property of the Series class" with a tw PeterQ Charts and Charting in Excel 1 February 15th 06 07:37 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM


All times are GMT +1. The time now is 01:25 AM.

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"