Help with data sorting.

Seyk1701

New Member
Joined
Oct 13, 2024
Messages
13
Office Version
  1. 365
Platform
  1. Windows
  2. Web
My data is such that I have quite a few duplicate work orders, depending on how many visits have been per workorder. Also, it's possible one workorder had more than one engineer, so for the second engineer the status is typically recorded as "as per lead engineer".

My data is arranged like this...

Work Order No
StatusTotal Visits
00010021Incomplete
00010021As Per Lead Engineer2
00010188As Per Lead Engineer
00010188Complete2
1000852979Incomplete
1000852979As Per Lead Engineer
1000852979Complete3

What I require is work orders to be arranged by status, so the work orders that have been completed, the "Complete" status WO needs to be listed first and then "Incomplete" and "As Per Lead Engineer". For work orders not yet completed, "Incomplete" needs to appear before "As per....". In my total visits column, I have a formula that counts all visits and totals on the last work order. Once again, I need this to be aligned with (where necessary) "completed", otherwise "incomplete".

Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Here is a neat tool you can use to make a custom sort list.
 
Upvote 0
Here is a neat tool you can use to make a custom sort list.
Thanks, but unfortunately this isn't going to work in my case. My data is already sorted by duplicates, I need to see every instances. I'm looking for my data to be sorted like this:

Work Order NoStatusTotal Visits
00010021Incomplete2
00010021As Per Lead Engineer
1000852979Complete3
1000852979Incomplete
1000852979As Per Lead Engineer
 
Upvote 0
Thanks, but unfortunately this isn't going to work in my case.
Can you explain more clearly why it won't work.
With the sort set up as below and all 3 columns selected (with the 3rd column as values not formulas)

1729110917980.png


I get the below, can you let us know what is incorrect with the first 2 columns in the result below

Book1
ABC
1Work Order NoStatusTotal Visits
200010021Incomplete
300010021As Per Lead Engineer2
400010188Complete2
500010188As Per Lead Engineer
61000852979Complete3
71000852979Incomplete
81000852979As Per Lead Engineer
Sheet1
 
Upvote 0
With a formula in the 3rd column I get

Book1
ABC
1Work Order NoStatusTotal Visits
200010021Incomplete2
300010021As Per Lead Engineer 
400010188Complete2
500010188As Per Lead Engineer 
61000852979Complete3
71000852979Incomplete 
81000852979As Per Lead Engineer 
Sheet1
Cell Formulas
RangeFormula
C2:C8C2=IF(A2=A1,"",COUNTIF($A$2:$A$8,A2))
 
Upvote 0
With a formula in the 3rd column I get

Book1
ABC
1Work Order NoStatusTotal Visits
200010021Incomplete2
300010021As Per Lead Engineer 
400010188Complete2
500010188As Per Lead Engineer 
61000852979Complete3
71000852979Incomplete 
81000852979As Per Lead Engineer 
Sheet1
Cell Formulas
RangeFormula
C2:C8C2=IF(A2=A1,"",COUNTIF($A$2:$A$8,A2))

My apologies, I was having a moment. Yes, it works absolutely.
 
Upvote 0
Glad you got it "sorted", happy we could help and welcome to the forum
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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