Sum values from columns to a seperate sheet

nischal4487

New Member
Joined
Nov 21, 2007
Messages
45
Hi

I have a Column A with values - John,Mike, Sara , Tim etc
Column B contains timesheet hours which are repetitive values against each of the the names ,like

John- 10
Mike-20
John-50
Sara-30
Sara-25
Tim-80
John-50

I want to get the sum of the values for each of these names in a separate sheet without using a pivot chart.

Please help
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
How do you mean the sum of these values? (I.E Are you trying to add multiple workbooks together, or have multiple columns?)
 
Upvote 0
Sorry If i was not able to make my question.

My end result should be Sum of the hours for each of the employee name in a different sheet like

John- 110
Sara - 55
 
Upvote 0
without Pivot but with PowerQuery and defined name for source range

John
10​
Column1Sum
Mike
20​
John
110​
John
50​
Mike
20​
Sara
30​
Sara
55​
Sara
25​
Tim
80​
Tim
80​
John
50​

Code:
[SIZE=1]// Query1
let
    Source = Excel.CurrentWorkbook(){[Name="tblname"]}[Content],
    Group = Table.Group(Source, {"Column1"}, {{"Sum", each List.Sum([Column2]), type number}})
in
    Group[/SIZE]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,309
Members
449,080
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