Solved

Excel running tally

Posted on 2014-11-18
6
113 Views
Last Modified: 2014-11-18
Hi,

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.
0
Comment
Question by:Go-Bruins
  • 2
  • 2
  • 2
6 Comments
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 250 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)
0
 
LVL 37

Assisted Solution

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

Microsoft site has a great example page showing exactly that type of scenario here  http://office.microsoft.com/en-gb/excel-help/sumif-function-HP010062465.aspx
0
 

Author Comment

by:Go-Bruins
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.?

Thanks.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 37

Assisted Solution

by:Neil Russell
Neil Russell earned 250 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.
0
 
LVL 26

Assisted Solution

by:Shaun Kline
Shaun Kline earned 250 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.
0
 

Author Closing Comment

by:Go-Bruins
ID: 40450646
Excellent. Thank you!
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

770 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