Summarize data from five different columns and maintain column labeling and format

annieflanz

New Member
Joined
Dec 11, 2012
Messages
14
Office Version
  1. 365
Platform
  1. MacOS
Hello,

I have set of data of time spent on various activities, tasks, and projects for a set of clients over a period of time.

I'm looking to summarize that data to determine how much time was spent each day on each combination of the activity, task, project, and client. I tried a pivot table, but cannot figure out how to get the results in the same column format. The column format is necessary to upload into a specific time tracking/billing program. I'm thinking of something that would remove duplicate entries of the same date, client, project, task, and activity, but that also summarizes the time at the same time.

The example attached here has 50 rows of data, whereas the spreadsheet I am working with has 500,000+ rows of data, so anything too manual wouldn't be effective.

Any way to accomplish this goal? I appreciate any help or suggestions! Thank you!

Here's an example of the data:

Example.xlsx
ABCDEF
1DateClientProjectTaskActivityHours
22022-01-01Client AProject XTask 2Activity 28
32022-01-01Client AProject YTask 3Activity 32
42022-01-01Client AProject ZTask 2Activity 17
52022-01-01Client AProject ZTask 4Activity 39
62022-01-01Client BProject XTask 4Activity 28
72022-01-01Client BProject XTask 4Activity 33
82022-01-01Client BProject YTask 2Activity 310
92022-01-01Client BProject ZTask 5Activity 32
102022-01-02Client AProject XTask 4Activity 38
112022-01-02Client AProject YTask 4Activity 17
122022-01-02Client AProject YTask 4Activity 14
132022-01-02Client AProject ZTask 2Activity 34
142022-01-02Client AProject ZTask 5Activity 32
152022-01-02Client BProject YTask 5Activity 36
162022-01-02Client CProject XTask 4Activity 14
172022-01-02Client CProject XTask 5Activity 31
182022-01-02Client CProject ZTask 1Activity 39
192022-01-02Client CProject ZTask 4Activity 16
202022-01-02Client DProject XTask 3Activity 18
212022-01-02Client DProject YTask 5Activity 31
222022-01-02Client DProject YTask 5Activity 38
232022-01-03Client AProject XTask 1Activity 18
242022-01-03Client AProject XTask 5Activity 23
252022-01-03Client AProject YTask 4Activity 37
262022-01-03Client CProject XTask 5Activity 23
272022-01-03Client CProject YTask 2Activity 110
282022-01-03Client DProject ZTask 2Activity 11
292022-01-04Client AProject XTask 2Activity 21
302022-01-04Client AProject XTask 2Activity 26
312022-01-04Client AProject YTask 4Activity 32
322022-01-04Client AProject YTask 5Activity 17
332022-01-04Client AProject ZTask 4Activity 16
342022-01-04Client BProject YTask 1Activity 22
352022-01-04Client CProject YTask 4Activity 23
362022-01-04Client CProject ZTask 4Activity 23
372022-01-04Client DProject ZTask 2Activity 36
382022-01-05Client AProject YTask 2Activity 110
392022-01-05Client AProject ZTask 2Activity 15
402022-01-05Client BProject XTask 1Activity 24
412022-01-05Client BProject XTask 2Activity 22
422022-01-05Client BProject YTask 1Activity 19
432022-01-05Client BProject YTask 5Activity 22
442022-01-05Client BProject ZTask 4Activity 29
452022-01-05Client CProject YTask 1Activity 14
462022-01-05Client CProject ZTask 4Activity 27
472022-01-05Client DProject XTask 1Activity 37
482022-01-05Client DProject YTask 1Activity 23
492022-01-05Client DProject YTask 5Activity 37
502022-01-05Client DProject ZTask 3Activity 25
512022-01-05Client DProject ZTask 4Activity 28
Desired Results


Here is an example of the results I am looking for:

Example.xlsx
ABCDEF
1DateClientProjectTaskActivityTotal Hours For Day
22022-01-01Client AProject XTask 2Activity 2<TOTAL HOURS FOR DAY>
32022-01-01Client AProject YTask 3Activity 3<TOTAL HOURS FOR DAY>
42022-01-01Client AProject ZTask 2Activity 1<TOTAL HOURS FOR DAY>
52022-01-01Client AProject ZTask 4Activity 3<TOTAL HOURS FOR DAY>
62022-01-01Client BProject XTask 4Activity 2<TOTAL HOURS FOR DAY>
72022-01-01Client BProject XTask 4Activity 3<TOTAL HOURS FOR DAY>
82022-01-01Client BProject YTask 2Activity 3<TOTAL HOURS FOR DAY>
92022-01-01Client BProject ZTask 5Activity 3<TOTAL HOURS FOR DAY>
102022-01-02Client AProject XTask 4Activity 3<TOTAL HOURS FOR DAY>
112022-01-02Client AProject YTask 4Activity 1<TOTAL HOURS FOR DAY>
122022-01-02Client AProject ZTask 2Activity 3<TOTAL HOURS FOR DAY>
132022-01-02Client AProject ZTask 5Activity 3<TOTAL HOURS FOR DAY>
142022-01-02Client BProject YTask 5Activity 3<TOTAL HOURS FOR DAY>
152022-01-02Client CProject XTask 4Activity 1<TOTAL HOURS FOR DAY>
162022-01-02Client CProject XTask 5Activity 3<TOTAL HOURS FOR DAY>
172022-01-02Client CProject ZTask 1Activity 3<TOTAL HOURS FOR DAY>
182022-01-02Client CProject ZTask 4Activity 1<TOTAL HOURS FOR DAY>
192022-01-02Client DProject XTask 3Activity 1<TOTAL HOURS FOR DAY>
202022-01-02Client DProject YTask 5Activity 3<TOTAL HOURS FOR DAY>
212022-01-03Client AProject XTask 1Activity 1<TOTAL HOURS FOR DAY>
222022-01-03Client AProject XTask 5Activity 2<TOTAL HOURS FOR DAY>
232022-01-03Client AProject YTask 4Activity 3<TOTAL HOURS FOR DAY>
242022-01-03Client CProject XTask 5Activity 2<TOTAL HOURS FOR DAY>
252022-01-03Client CProject YTask 2Activity 1<TOTAL HOURS FOR DAY>
262022-01-03Client DProject ZTask 2Activity 1<TOTAL HOURS FOR DAY>
272022-01-04Client AProject XTask 2Activity 2<TOTAL HOURS FOR DAY>
282022-01-04Client AProject YTask 4Activity 3<TOTAL HOURS FOR DAY>
292022-01-04Client AProject YTask 5Activity 1<TOTAL HOURS FOR DAY>
302022-01-04Client AProject ZTask 4Activity 1<TOTAL HOURS FOR DAY>
312022-01-04Client BProject YTask 1Activity 2<TOTAL HOURS FOR DAY>
322022-01-04Client CProject YTask 4Activity 2<TOTAL HOURS FOR DAY>
332022-01-04Client CProject ZTask 4Activity 2<TOTAL HOURS FOR DAY>
342022-01-04Client DProject ZTask 2Activity 3<TOTAL HOURS FOR DAY>
352022-01-05Client AProject YTask 2Activity 1<TOTAL HOURS FOR DAY>
362022-01-05Client AProject ZTask 2Activity 1<TOTAL HOURS FOR DAY>
372022-01-05Client BProject XTask 1Activity 2<TOTAL HOURS FOR DAY>
382022-01-05Client BProject XTask 2Activity 2<TOTAL HOURS FOR DAY>
392022-01-05Client BProject YTask 1Activity 1<TOTAL HOURS FOR DAY>
402022-01-05Client BProject YTask 5Activity 2<TOTAL HOURS FOR DAY>
412022-01-05Client BProject ZTask 4Activity 2<TOTAL HOURS FOR DAY>
422022-01-05Client CProject YTask 1Activity 1<TOTAL HOURS FOR DAY>
432022-01-05Client CProject ZTask 4Activity 2<TOTAL HOURS FOR DAY>
442022-01-05Client DProject XTask 1Activity 3<TOTAL HOURS FOR DAY>
452022-01-05Client DProject YTask 1Activity 2<TOTAL HOURS FOR DAY>
462022-01-05Client DProject YTask 5Activity 3<TOTAL HOURS FOR DAY>
472022-01-05Client DProject ZTask 3Activity 2<TOTAL HOURS FOR DAY>
482022-01-05Client DProject ZTask 4Activity 2<TOTAL HOURS FOR DAY>
Data
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Have you considered using Power Query ?

1658729138000.png
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

With your real data, do you have any sort of idea about how many rows might be in the results?

BTW, have you accidentally put the wrong sheet names in your post 1 samples of data and results?
 
Last edited:
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

With your real data, do you have any sort of idea about how many rows might be in the results?

BTW, have you accidentally put the wrong sheet names in your post 1 samples of data and results?
Thanks for the tip! Account details updated. I'm on 365 and on Mac.

My real data has 500,000+ rows of data.

I'm unsure how to answer your third question. I believe the sheet names are correct.
 
Upvote 0
Thanks for updating your details. (y)
In this case your platform was important as the way I was considering doing this does not work on a Mac.


My real data has 500,000+ rows of data.
Yes, you had already stated that but you are wanting to summarize that data so I am assuming there will be less rows in the results, and that is what my question was about. :)


I'm unsure how to answer your third question.
You showed 2 Mini-sheets. The first had 51 rows and was prefaced by "Here's an example of the data:" but had a tab name as follows:
1658732874268.png


Your second sheet only had 48 rows and was prefaced by "Here is an example of the results I am looking for:" but had a tab name as follows:
1658733023266.png


Seemed like the tab names were the wrong way around to me.
 
Upvote 0
Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

- Follow this link to learn how to install Power Query in Excel 2010 / 2013.

- Follow this link for an introduction to Power Query functionality.

- Follow this link for a video which demonstrates how to use Power Query code provided.
 
Upvote 0
I hadn't! This is exactly what I'm looking for. I'm unfamiliar with Power Query, but can learn! Any tips would be helpful. thank you!
Oh oh Mac OS.
It was released on the beta channel in May 2022. Can you click on the Data Tab and tell me if you see something that looks like the below:

If you have the below then take a quick look at the video at Excel Campus here at the 4:30 min mark as an intro and then @alansidman or I can walk you through the steps you need to summarise the data.

1658735448757.png
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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