Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Build a sheet name in an Excel formula

I have an Excel 2007 workbook with a summary page and a number of other sheets named sequentially as in Spend(1), Spend(2), Spend(3), etc. On the summary sheet, I have a series of numbers, one per row, that correspond with the sheet numbers. (1, 2, 3, etc.)
I am trying to build a formula that would exist on the summary sheet that would return the results of cell G14 from the applicable sheet. (for the number 4, Spend(4), cell G14 or for the number 8, the results from sheet Spend(8), cell G14.
I have tried to build it as follows:
=?Spend(?&A19&?)!)&G14 (where A19 contains the reference number)
I also tried =Indirect(?Spend(?&A19&?)!?&G14)
Both of these return me a #REF error. Can you help me get this right?



Submitted via EggHeadCafe - Software Developer Portal of Choice
Easy ROT39 Encryption / Decryption Class
http://www.eggheadcafe.com/tutorials...yption--d.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Build a sheet name in an Excel formula

Try this:

=INDIRECT("'Spend("&A19&")'!G14")

Hope this helps.

Pete

On Dec 9, 1:04*am, Keith Howie wrote:
I have an Excel 2007 workbook with a summary page and a number of other sheets named sequentially as in Spend(1), Spend(2), Spend(3), etc. *On the summary sheet, I have a series of numbers, one per row, that correspond with the sheet numbers. *(1, 2, 3, etc.)
I am trying to build a formula that would exist on the summary sheet that would return the results of cell G14 from the applicable sheet. *(for the number 4, Spend(4), cell G14 or for the number 8, the results from sheet Spend(8), cell G14.
I have tried to build it as follows:
=?Spend(?&A19&?)!)&G14 (where A19 contains the reference number)
I also tried =Indirect(?Spend(?&A19&?)!?&G14)
Both of these return me a #REF error. *Can you help me get this right?

Submitted via EggHeadCafe - Software Developer Portal of Choice
Easy ROT39 Encryption / Decryption Classhttp://www.eggheadcafe.com/tutorials/aspnet/65efb7c9-5638-4149-a70b-4...


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Build a sheet name in an Excel formula

Check your other post.

Keith, Howie wrote:

I have an Excel 2007 workbook with a summary page and a number of other sheets named sequentially as in Spend(1), Spend(2), Spend(3), etc. On the summary sheet, I have a series of numbers, one per row, that correspond with the sheet numbers. (1, 2, 3, etc.)
I am trying to build a formula that would exist on the summary sheet that would return the results of cell G14 from the applicable sheet. (for the number 4, Spend(4), cell G14 or for the number 8, the results from sheet Spend(8), cell G14.
I have tried to build it as follows:
=?Spend(?&A19&?)!)&G14 (where A19 contains the reference number)
I also tried =Indirect(?Spend(?&A19&?)!?&G14)
Both of these return me a #REF error. Can you help me get this right?

Submitted via EggHeadCafe - Software Developer Portal of Choice
Easy ROT39 Encryption / Decryption Class
http://www.eggheadcafe.com/tutorials...yption--d.aspx


--

Dave Peterson
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
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Match 2 sheet and build table npereira Excel Discussion (Misc queries) 9 August 11th 06 07:35 PM
How do I build a excel sheet that counts item in an inventory kenny Excel Worksheet Functions 2 May 9th 06 04:03 PM
how do i get excel to display the result of a formula i build? Mike Excel Worksheet Functions 2 January 25th 06 07:25 AM
Is there a way to build a timeline PPT spread sheet from excel Daniel M. Excel Worksheet Functions 0 December 7th 05 05:12 PM


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