How to create a column that adds cells with a cell in common

ledowning

New Member
Joined
Nov 4, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
How do I create a column with a formula that adds all the cells in one column based on similarity in another column?

I'm trying to create a column with a formula for "total time studied" that adds up 1 or more cells of study time in each subject, based on "student name." Some students only have 1 subject/cell and some have many.

I don't want to have to manually select the cells for each student, I want a formula that can add the overall study time based on the student name (or other identifier) column.

Example:
NameSubjectSubject study timeOverall study time
JohnMath1:00= formula that recognizes that John has 1 cell to add up
BobMath0:10
BobReading0:05
BobScience1:13= formula that recognizes that Bob has 3 cell to add up
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to the Board!

Take a look at the SUMIF formula:
 
Upvote 0
Welcome to the Board!

Take a look at the SUMIF formula:
Is there a way to use the SUMIF formula and NOT have to type each student name out? Is there a formula that could simply recognize that when the name is identical in the "name" column, to add the "study time" column together? I'm trying to figure out a way to sum hundreds of students hours without needing to do any of it manually, if possible. Some students have studied once, while some have studied many times.
 
Upvote 0
You can use a cell refernce for the criteria, rather than typing out the name.
 
Upvote 0
Like
Fluff.xlsm
ABCD
1NameSubjectSubject study timeOverall study time
2JohnMath01:0001:00:00
3BobMath00:1001:28:00
4BobReading00:0501:28:00
5BobScience01:1301:28:00
Sheet5
Cell Formulas
RangeFormula
D2:D5D2=SUMIFS(C:C,A:A,A2)
 
Upvote 0

Forum statistics

Threads
1,223,578
Messages
6,173,165
Members
452,504
Latest member
frankkeith2233

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