Looking to find duration at different levels

petersw

New Member
Joined
Sep 22, 2011
Messages
10
Hi,

My data is as follows:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Level[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]1/1/2015[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]1/23/2015[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]1/30/2015[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]2/5/2015[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]1/12/2015[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]1/15/2015[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]

I'm trying to easily see how long each person was at a given level. For example, from the above, I see John was at level 1 for 22 days, at level 2 for 12 days. Bill was at level 1 for 3 days. Ideally I'd like to get this type of information into a format that can be graphed.

I'm thinking a pivot table will come into play, but I'm struggling and thought the brains at MrExcel could help!

Thanks,
Peter
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Book1
ABCDEFGH
1NameDateLeveldays
2John1-1-2015122RijlabelsSom van days
3John23-1-201527Bill3
4John30-1-20152613
5John5-2-2015320
6Bill12-1-201513John35
7Bill15-1-20152122
8213
930
10Eindtotaal38
11
Blad1


d2=if(A3=A2,B3-B2,"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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