Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

Sum across sheets based on a condition

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GoBow777 - 07 Mar 2008 23:56 GMT
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?

Signature

GoBow777

T. Valko - 08 Mar 2008 02:53 GMT
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)

Signature

Biff
Microsoft Excel MVP

> 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
[quoted text clipped - 8 lines]
>
> How can this be done?
GoBow777 - 08 Mar 2008 18:09 GMT
Thanks Biff!

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

Mat

--
GoBow777
T. Valko - 08 Mar 2008 20:21 GMT
You're welcome. Thanks for the feedback!

Signature

Biff
Microsoft Excel MVP

> Thanks Biff!
>
> I was hoping for a single formula but this does the job just fine.
>
> Matt
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.