making a formula that sums one column after matching variable cell contents in two other columns

StJohn Hawkes

New Member
Joined
Mar 24, 2018
Messages
2
difficult to explain, but probably simple to do, if only I knew how!
I have rows headed "Name", "Month" and "Time" I need excel to read the name in the "Name" column and sum all the entries in the "time" column where the name in the row has the same number in the "month" column and place the sum of time in the cell next to the last time entry. Time is listed in minutes but I would like the "Total to date" column to read in hours and minutes.

Name month task time total to date
smith J 2 ..... 35 35
jones B 1 ....... 50 50
Adams c 3 ....... 46 35
smith C 1 ....... 10 10
smith j 2 ....... 10 20
Jones B 1 ....... 25 75
Adams C 1 ........ 40 86

 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
sorry-Data didn't go as expected: This is what I need to achieve, where the total column sums all the times for the ( respective names with the same visit number) in the final column
DATENAMEVISIT
TIME
TOTAL
01/03
SMITH J
1
30
30
02/03
SMITH B
1
30
30
03/03
JONES A
1
30
30
03/03
JONES B
2
30
30
03/03SMITH J
1
30
60
04/04SMITH J
2
30
30
05/04
SMITH J
1
30
90
05/04
JONES A
1
30
60
05/04
JONES A
2
30
30 HOW DO i DO THIS?

<tbody>
</tbody>
 
Upvote 0
Hi,

This will do what you described in Post #2 , your OP request is slightly different.


Book1
ABCDE
1DATENAMEVISITTIMETOTAL
23-JanSMITH J13030
33-FebSMITH B13030
43-MarJONES A13030
53-MarJONES B23030
63-MarSMITH J13060
74-AprSMITH J23030
84-MaySMITH J13090
94-MayJONES A13060
104-MayJONES A23030
Sheet37
Cell Formulas
RangeFormula
E2=SUMIFS(D$2:D2,B$2:B2,B2,C$2:C2,C2)


E2 formula copied down.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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