Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Excel running tally

Posted on 2014-11-18
Medium Priority
Last Modified: 2014-11-18

I have an Excel sheet that goes something like this:

Column A = Player Name (ex. Mickey Mantle)
Column B = Salary (ex. 10,000.00)
Column C = Team (Yankees)

As I input the player's name, salary, and team, I need a single cell that keeps track of the total salary for a team. So in English, it would be something like, "Keep a running tally of the total salary for the Yankees and keep track of that running tally in Cell M1 (for example).

Thanks in advance.
Question by:Go-Bruins
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
LVL 27

Accepted Solution

Shaun Kline earned 1000 total points
ID: 40450553
You can use the SUMIF function:
=SUMIF(<Range containing value to compare>, <value to compare against>, <Range to sum>)
So for your example, this formula could be entered in M1:
=SUMIF(C2:C500, "Yankees", B2:B500)
LVL 37

Assisted Solution

by:Neil Russell
Neil Russell earned 1000 total points
ID: 40450554
You use a SUMIF() function

Microsoft site has a great example page showing exactly that type of scenario here

Author Comment

ID: 40450603
Perfect. One more request, if I may...

Let's say I'm trying to achieve parity. So if any team's total salary is less than 90% of the team with the highest salary, I'd like the cell to be colored red.

Would that be possible w/o writing code, etc.?

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 37

Assisted Solution

by:Neil Russell
Neil Russell earned 1000 total points
ID: 40450615
Yes, have a cell that calculates the MAX() of the range of cells with your SUMIFS in and then use conditional formatting on your sumif cells using that answer cell.
LVL 27

Assisted Solution

by:Shaun Kline
Shaun Kline earned 1000 total points
ID: 40450622
That is a job for conditional formatting. You can use the "Use a formula to determine cells to format". The formula would look something like: =A1<MAX(A1:A22)*0.9.

Author Closing Comment

ID: 40450646
Excellent. Thank you!

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

670 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