Sorting Data

FALLSILENT

New Member
Joined
Oct 5, 2017
Messages
9
I'm trying to use this table to feed to a second sheet that will break down how many times customers had each unit, and how many times of what type. Everything I've done has resulted in counting every instance of a name. Sometimes a customer has a unit for a few days, sometimes just a day. I tried a pivot table, but if CUST 1 had the unit first, every customer after fell into a sub-group of that first.

[TABLE="width: 758"]
<colgroup><col><col><col span="5"></colgroup><tbody>[TR]
[TD]UNIT[/TD]
[TD]TYPE[/TD]
[TD]10/1/17[/TD]
[TD]10/1/17[/TD]
[TD]10/2/17[/TD]
[TD]10/2/17[/TD]
[TD]10/3/17[/TD]
[/TR]
[TR]
[TD]12V1223[/TD]
[TD]BOX
[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 3[/TD]
[TD]CUST 4[/TD]
[/TR]
[TR]
[TD]15V1245[/TD]
[TD]BOX[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 3[/TD]
[TD]CUST 4[/TD]
[/TR]
[TR]
[TD]16V1250[/TD]
[TD]BOX[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 3[/TD]
[TD]CUST 4[/TD]
[/TR]
[TR]
[TD]15F1244[/TD]
[TD]FLATBED[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 4[/TD]
[TD]CUST 4[/TD]
[/TR]
[TR]
[TD]7751408[/TD]
[TD]FLATBED[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 3[/TD]
[TD]CUST 4[/TD]
[/TR]
[TR]
[TD]7751458[/TD]
[TD]REEFER[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 3[/TD]
[TD]CUST 4[/TD]
[/TR]
[TR]
[TD]142525[/TD]
[TD]SAD[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 3[/TD]
[TD]CUST 4[/TD]
[/TR]
[TR]
[TD]7751404[/TD]
[TD]SAD[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 3[/TD]
[TD]CUST 4[/TD]
[/TR]
[TR]
[TD]133515[/TD]
[TD]TAD[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 3[/TD]
[TD]CUST 4[/TD]
[/TR]
[TR]
[TD]163536[/TD]
[TD]TAD[/TD]
[TD]CUST 1[/TD]
[TD]CUST 1[/TD]
[TD]CUST 2[/TD]
[TD]CUST 3[/TD]
[TD]CUST 4[/TD]
[/TR]
</tbody>[/TABLE]
 
Within Excel hit Alt F8, a dialogue box will appear called Macro.
Is there anything in it?
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Alt-F11-Insert-Module-Paste Formula. Get Out and F8 and the box is empty. I did notice that when I paste the formula "Sub Unwind()Dim ws As Worksheet" Is in red.
 
Upvote 0
It should be
Code:
Sub Unwind()
Dim ws As Worksheet
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
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