Identifying last time a person did a task

Veyron

New Member
Joined
Sep 6, 2015
Messages
20
Hi everyone,

I need to find out when was the last time a person did a task.
It sounds easy but due to the way the data is displayed, I am unable to sort it out.

Here you have an example of it:

Name23/0924/0925/0926/0927/0928/0929/09
Worker 1ABBACDA
Worker 2BBCDDAB
Worker 3CCCDDAB
Worker 4AACDBA

<tbody>
</tbody>









Solution would be:

Worker 1
Task A: 29/09
Task B: 25/09
Task C: 27/09
Task D: 28/09

And so on...

Thanks for your help!
 
Last edited:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
With power query it can be done by unpivoting all of the date columns, which will give 3 columns, name, date and task as an intermediate step.
Then pivot the task column using the date column for values and setting the aggregation to max.

The results come out as below.

Code:
Name	        A       B       C        D
Worker 1	29-Sep	25-Sep	27-Sep	28-Sep
Worker 2	28-Sep	29-Sep	25-Sep	27-Sep
Worker 3	28-Sep	29-Sep	25-Sep	27-Sep
Worker 4	29-Sep	28-Sep	25-Sep	26-Sep

Is that something that you can work with?
 
Upvote 0
With power query it can be done by unpivoting all of the date columns, which will give 3 columns, name, date and task as an intermediate step.
Then pivot the task column using the date column for values and setting the aggregation to max.

The results come out as below.

Code:
Name            A       B       C        D
Worker 1    29-Sep    25-Sep    27-Sep    28-Sep
Worker 2    28-Sep    29-Sep    25-Sep    27-Sep
Worker 3    28-Sep    29-Sep    25-Sep    27-Sep
Worker 4    29-Sep    28-Sep    25-Sep    26-Sep

Is that something that you can work with?

Definitely. I just need to know now how to use Power Query :LOL:
I will look for some tutorials.

Many thanks Jason!
 
Upvote 0
jasonb75 said:
With power query it can be done by unpivoting all of the date columns, which will give 3 columns, name, date and task as an intermediate step.
Then pivot the task column using the date column for values and setting the aggregation to max.

Just to let you know that your solution works.

thanks mate
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,266
Members
448,558
Latest member
aivin

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