Sum hours earned based on staff name listed in column

Doug Mutzig

Board Regular
Joined
Jan 1, 2019
Messages
57
Office Version
  1. 365
Platform
  1. Windows
Good morning all!

I have a table with the following columns: Staff Name, Date IN, Hours Earned, Earned Comments, Current Total Earned.

When staff are called in or work extra hours they are entered into the table so the Staff Name column will have staff listed multiple times.

what I am trying to do is have a running total for Hours earned so that when they start a new row for a staff member and enter in hours earned it is added to the total and displayed in the current total earned column.

Example

Staff Name Date In Hours Earned Current Total
Example, Ann 1/5/2019 5 5
Examp, Dan 1/7/2019 3 3
Example, Ann 1/10/2019 8 13
Example, Ann 1/15/2019 2 15
Example, Dan 1/15/2019 7 10

I have been trying a SUMIF but I am not sure how to do the criteria portion. The Range is [@[Staff Name]], and the sum range is [@[Hours Earned]]. I am just not sure how to put in "look for duplicates of the name" for the criteria.

Is SUMIF the correct function to be using? and how can I frame the criteria portion correctly?

Thank you for any help and guidance you can give on this!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top