Subtotal but need to include extra data

jayhill

New Member
Joined
Apr 18, 2016
Messages
10
Greetings All,
I have a sheet that contains employee data with a varying number of rows for each employee. I would like to do something analogous to a subtotal for each discrete SSN with a sum of each employee's gross amount however I need to also include the data in columns B through F in the subtotal line as well.

I'm sure I'm looking at this the wrong way. Ultimately, I would like to have just a single line per SSN that includes B through F as well as the SSN and a total of the gross amount for that SSN.

I'll bet that this is trivial for the gurus however I'm spinning my wheels. Any help greatly appreciated!


Excel 2016 (Windows) 32 bit

B
C
D
E
F
G
H
1
First
Name
Last
Name

Birthdate
Hire
Date
Termination
Date
Gross
Amount
Social Security
Number
2
EmployeeOne1/1/195010/1/1984
1,000.00​
111-11-1111
3
EmployeeOne1/1/195010/1/1984
1,000.00​
111-11-1111
4
EmployeeOne1/1/195010/1/1984
1,000.00​
111-11-1111
5
EmployeeOne1/1/195010/1/1984
1,000.00​
111-11-1111
6
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
7
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
8
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
9
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
10
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
11
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
12
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
13
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
14
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
15
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
16
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
17
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
18
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
19
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
20
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333

<tbody>
</tbody>
Sheet: test

<tbody>
</tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Greetings All,
I have a sheet that contains employee data with a varying number of rows for each employee. I would like to do something analogous to a subtotal for each discrete SSN with a sum of each employee's gross amount however I need to also include the data in columns B through F in the subtotal line as well.

I'm sure I'm looking at this the wrong way. Ultimately, I would like to have just a single line per SSN that includes B through F as well as the SSN and a total of the gross amount for that SSN.

I'll bet that this is trivial for the gurus however I'm spinning my wheels. Any help greatly appreciated!


Excel 2016 (Windows) 32 bit

B
C
D
E
F
G
H
1
First
Name
Last
Name

Birthdate
Hire
Date
Termination
Date
Gross
Amount
Social Security
Number
2
EmployeeOne1/1/195010/1/1984
1,000.00​
111-11-1111
3
EmployeeOne1/1/195010/1/1984
1,000.00​
111-11-1111
4
EmployeeOne1/1/195010/1/1984
1,000.00​
111-11-1111
5
EmployeeOne1/1/195010/1/1984
1,000.00​
111-11-1111
6
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
7
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
8
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
9
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
10
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
11
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
12
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
13
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
14
EmployeeTwo2/25/19555/28/19855/30/2016
1,500.00​
222-22-2222
15
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
16
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
17
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
18
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
19
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333
20
EmployeeThree5/15/197011/4/1995
1,250.00​
333-33-3333

<tbody>
</tbody>
Sheet: test

<tbody>
</tbody>

You should create a hypothetical outcome so people can see exactly what you want. Visual is always better
 
Upvote 0
Good call. This is the outcome I'm looking for:

Excel 2016 (Windows) 32 bit
B
C
D
E
F
G
H
26
EmployeeOne1/1/195010/1/1984
4,000.00​
111-11-1111
27
EmployeeTwo2/25/19555/28/19855/30/2016
13,500.00​
222-22-2222
28
EmployeeThree5/15/197011/4/1995
7,500.00​
333-33-3333

<tbody>
</tbody>
Sheet: test

<tbody>
</tbody>
 
Upvote 0
Hey Jay, I would copy and paste your data onto a second sheet and then remove duplicates. Delete the values in column G of the second sheet and use a SUMIFS formula to get the correct values in column G.

You can base the formula off of their SS#'s

In F2 of second sheet (test2)

=SUMIFS(test!F:F,test!G:G,test2!G2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,323
Members
449,077
Latest member
jmsotelo

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