Summing hours into a grid by employee by day

tdomer80

New Member
Joined
Aug 20, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I have a simple raw data sheet of employee hours charged to jobs during a week, and I am trying to create a visual (will use a macro) to show total hours by day by associate, rather than using a pivot table.

I am not sure whether this is a nested vlookup or an index/match thing to get this. I am probably over-thinking it...

Any ideas?
Raw Data.jpg
Summary.jpg
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
maybe Power Query (Get&Transform)

EmployeeDateJobHoursEmployee20/07/202021/07/202022/07/2020
101-TERESA20/07/202018101-TERESA888
101-TERESA21/07/202018104-CARSON4.588
101-TERESA22/07/202018142 - NATHAN1088
104-CARSON20/07/202014.5
104-CARSON21/07/202018
104-CARSON22/07/202018
142 - NATHAN20/07/202012.5
142 - NATHAN20/07/202022
142 - NATHAN20/07/202035.5
142 - NATHAN21/07/202018
142 - NATHAN22/07/202016
142 - NATHAN22/07/202022

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Type = Table.TransformColumnTypes(Source,{{"Employee", type text}, {"Date", type date}, {"Job", Int64.Type}, {"Hours", type number}}),
    RC = Table.RemoveColumns(Type,{"Job"}),
    Pivot = Table.Pivot(Table.TransformColumnTypes(RC, {{"Date", type text}}, "en-GB"), List.Distinct(Table.TransformColumnTypes(RC, {{"Date", type text}}, "en-GB")[Date]), "Date", "Hours", List.Sum)
in
    Pivot
 
Upvote 0
Thank you so much! I am just now dipping my toe into the water on sumifS !!

If I had been doing this for me I would have done a pivot table, but I think this will work nicely for others who need to view a spreadsheet without much intervention from me...
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,121
Members
449,066
Latest member
Andyg666

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