Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Member
 
Posts: 58
Default Sum across sheets based on a condition

Hello; I’m trying to sum cells A1:A10 across several sheets no problem. However, if cell B1 on each of the sheets does not equal the value of 1 found on the Summary sheet, then those sheets would not be added.

In other words if Sheet3 cell B1 has a value of 2, then Sheet3 would not be included in the summing process, but Sheet2, Sheet4 through Sheet40 would be.

Keep in mind that the range A1:A10 has to show their values regardless of the value of cell B1.

How can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum across sheets based on a condition

Let's take the easy way on this!

On *each* sheet, in the same cell enter this formula:

=(B1=1)*SUM(A1:A10)

You can group the sheets together and enter the formula on one sheet and it
will be entered on *all grouped* sheets.

Let's assume you enter that formula on each sheet in cell A11. Then:

=SUM(Sheet1:Sheet40!A11)


--
Biff
Microsoft Excel MVP


"GoBow777" wrote in message
...

Hello; I'm trying to sum cells A1:A10 across several sheets no problem.
However, if cell B1 on each of the sheets does not equal the value of 1
found on the Summary sheet, then those sheets would not be added.

In other words if Sheet3 cell B1 has a value of 2, then Sheet3 would
not be included in the summing process, but Sheet2, Sheet4 through
Sheet40 would be.

Keep in mind that the range A1:A10 has to show their values regardless
of the value of cell B1.

How can this be done?




--
GoBow777



  #3   Report Post  
Member
 
Posts: 58
Default

Thanks Biff!

I was hoping for a single formula but this does the job just fine.

Matt
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum across sheets based on a condition

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"GoBow777" wrote in message
...

Thanks Biff!

I was hoping for a single formula but this does the job just fine.

Matt




--
GoBow777



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
Sum If based on a 3rd condition ? Steve Excel Worksheet Functions 5 August 18th 07 08:48 AM
Sum based on specific condition Wendy Excel Worksheet Functions 43 June 7th 07 09:25 PM
Referencing Across Sheets Based On Condition Ramesh.S, India Excel Worksheet Functions 1 October 12th 06 02:48 PM
populating sheets based on data from parent sheets seve Excel Discussion (Misc queries) 2 January 15th 05 09:22 PM
Cannot sum values based on condition Ned Flanders Excel Worksheet Functions 1 December 3rd 04 04:36 AM


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