Solved

Multi-column running summary formula

Posted on 2013-11-19
3
231 Views
Last Modified: 2013-11-20
I need an Excel formula that allows me to calculate If Product = S AND Active = 1 THEN Total = Total + Cost, given this spreadsheet:

        A          B          C        D
1  Product  Active   Cost
2         S            1        12
3         B           0        14
4         S            1        13

The result should be Total = 15 (12 +13 from Rows 2 and 4)

I know I can do this if I create an additional Total column for the row and then sum it up. However, I'd rather not have to create additional columns on this spreadsheet to do so.

Thanks.
0
Comment
Question by:c0fee
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
DamjanDemsar earned 500 total points
ID: 39661773
you mean 25?

use sumifs

=SUMIFS(C2:C4;A2:A4;"=s";B2:B4;"=1")
0
 
LVL 2

Author Comment

by:c0fee
ID: 39662598
Oops, yes. 25. Long day. Thank you. I did have to replace the semicolon before the "= with a comma. This worked!
0
 
LVL 5

Expert Comment

by:DamjanDemsar
ID: 39662616
yes,... semicolon, comma,.... it depends on the local settings, what the delimiter is (mine is a bit unusual as a semicolon.... comma is used as a decimal delimiter here)

I'm glad I could help
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now