Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Summing using column Heading


Howdie!

so situation is

Several Tabs (similar contents but different names) and a consolidated
Tab.
Within the Consolidated tab Cols A to Z each have a unique header (these
are the names of other tabs in the same book)
say Col A = Cat, Col B = Dog etc (ie we thus have a sheets entitled Cat,
dog, etc...)

In the consolidated tab I want to put a formulae In column A that says
sum, from (Tab entitled Cat) , rows 1 to 5. Now I could just say
=sum(Cat!a7:a10), but then I would manually have to change cat to dog
for each of my columns.
I really want to say sum(the contents of cell a1 on the consolidated
sheet!a7:a10) Any ideas???


Regards

D




*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Summing using column Heading

=SUM("'"&INDIRECT(A1)&"'!A7:A10")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Darin Kramer" wrote in message
...

Howdie!

so situation is

Several Tabs (similar contents but different names) and a consolidated
Tab.
Within the Consolidated tab Cols A to Z each have a unique header (these
are the names of other tabs in the same book)
say Col A = Cat, Col B = Dog etc (ie we thus have a sheets entitled Cat,
dog, etc...)

In the consolidated tab I want to put a formulae In column A that says
sum, from (Tab entitled Cat) , rows 1 to 5. Now I could just say
=sum(Cat!a7:a10), but then I would manually have to change cat to dog
for each of my columns.
I really want to say sum(the contents of cell a1 on the consolidated
sheet!a7:a10) Any ideas???


Regards

D




*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Summing using column Heading



Thanks Bob doesnt seem to work - dont a need an open and close bracket
for the sum? also whats the first "" do?

Regards

D

*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Summing using column Heading

Try this:
=SUM(INDIRECT(ADDRESS(7,1,4,1,A1)):INDIRECT(ADDRES S(10,1,4,1,A1)))
regards,
Stefi


€˛Darin Kramer€¯ ezt Ć*rta:



Thanks Bob doesnt seem to work - dont a need an open and close bracket
for the sum? also whats the first "" do?

Regards

D

*** Sent via Developersdex http://www.developersdex.com ***

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Summing using column Heading

It would help if I got it right

=SUM(INDIRECT("'"&A1&"'!A7:A10"))

the "'" and "'! are just in case the sheet name has embedded spaces.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Darin Kramer" wrote in message
...


Thanks Bob doesnt seem to work - dont a need an open and close bracket
for the sum? also whats the first "" do?

Regards

D

*** Sent via Developersdex http://www.developersdex.com ***





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Summing using column Heading



AWESOME!!! you're a genius! Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
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
I want column heading non-scrolling and rows of each column scrol Q Abdul New Users to Excel 1 July 22nd 08 03:44 PM
How do I put a heading even with a column? Stressing out New Users to Excel 5 December 15th 07 05:28 PM
In a table produce an value by column heading and row heading naflan Excel Worksheet Functions 1 December 27th 05 05:18 PM
Find Column heading and then Delete entire column Kobayashi[_58_] Excel Programming 4 October 17th 05 09:09 PM
Need Macro to Find Column Heading -- if none, then insert new column Jeff[_43_] Excel Programming 0 December 15th 04 07:08 AM


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