How do I sort things in the right order when events happen at the same time

jconkl02

Board Regular
Joined
May 25, 2016
Messages
55
I need to find a way to sort each line by Column A and then by Column D. The problem is that some events happened at the same time. The idea is to provide a timeline of each Incident Number in Column A. How can I get excel to know that if the timestamp is the same, the line that goes first is the one where the value in column B has to equal the value in column C in the row above it. Let's say the example below starts at A1. So C2 is OPENED and so is B3. That is what I want. But C3 is ASSIGNED and B4 is RECOVERED. The D row should be where C row is. Ideas?


Incident: NumberOld ValueNew ValueEdit DateDURdoes previous new equal this lines old
3585OPENED5/12/2019 7:57
3585OPENEDASSIGNED5/12/2019 7:592TRUE
3585RECOVEREDASSIGNED5/17/2019 15:057626FALSE
3585ASSIGNEDRECOVERED5/17/2019 15:050TRUE
3585ASSIGNEDRECOVERED5/22/2019 9:466881FALSE
3585RECOVEREDRESOLVED6/6/2019 18:0522099TRUE
3585RESOLVEDCLOSED7/11/2019 14:3350188TRUE
3658OPENED5/16/2019 14:11
3658OPENEDACCEPTED5/17/2019 9:101139TRUE
3658ACCEPTEDASSIGNED5/17/2019 9:111TRUE
3658ASSIGNEDPENDING CUSTOMER5/18/2019 14:401769TRUE
3658PENDING CUSTOMERPENDING RELEASE5/29/2019 18:2916069TRUE
3658PENDING RELEASEPENDING CUSTOMER6/27/2019 15:1741568TRUE
3658PENDING CUSTOMERASSIGNED7/17/2019 11:5628599TRUE
3658PENDING CUSTOMERASSIGNED7/25/2019 9:0311347FALSE
3658ASSIGNEDPENDING CUSTOMER7/25/2019 9:030TRUE
3658ASSIGNEDPENDING CUSTOMER8/6/2019 11:3217429FALSE
3658PENDING CUSTOMERRECOVERED8/8/2019 10:172805TRUE
3658RECOVEREDRESOLUTION SUBMITTED8/8/2019 10:170TRUE
3658RESOLUTION SUBMITTEDRESOLVED8/9/2019 7:151258TRUE
3658RESOLVEDCLOSED8/9/2019 10:18183TRUE

<tbody>
</tbody>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Is this what you're looking for?


Book1
ABCDEF
1Incident: NumberOld ValueNew ValueEdit DateDUR3rd Sort Level
23585OPENED5/12/2019 7:57TRUE
33585OPENEDASSIGNED5/12/2019 7:592FALSE
43585ASSIGNEDRECOVERED5/17/2019 15:050FALSE
53585RECOVEREDASSIGNED5/17/2019 15:057626FALSE
63585ASSIGNEDRECOVERED5/22/2019 9:466881FALSE
73585RECOVEREDRESOLVED6/6/2019 18:0522099FALSE
83585RESOLVEDCLOSED7/11/2019 14:3350188FALSE
93658OPENED5/16/2019 14:11TRUE
103658OPENEDACCEPTED5/17/2019 9:101139FALSE
113658ACCEPTEDASSIGNED5/17/2019 9:111FALSE
123658ASSIGNEDPENDING CUSTOMER5/18/2019 14:401769FALSE
133658PENDING CUSTOMERPENDING RELEASE5/29/2019 18:2916069FALSE
143658PENDING RELEASEPENDING CUSTOMER6/27/2019 15:1741568FALSE
153658PENDING CUSTOMERASSIGNED7/17/2019 11:5628599FALSE
163658ASSIGNEDPENDING CUSTOMER7/25/2019 9:030FALSE
173658PENDING CUSTOMERASSIGNED7/25/2019 9:0311347FALSE
183658ASSIGNEDPENDING CUSTOMER8/6/2019 11:3217429FALSE
193658PENDING CUSTOMERRECOVERED8/8/2019 10:172805FALSE
203658RECOVEREDRESOLUTION SUBMITTED8/8/2019 10:170FALSE
213658RESOLUTION SUBMITTEDRESOLVED8/9/2019 7:151258FALSE
223658RESOLVEDCLOSED8/9/2019 10:18183FALSE
Sheet3
Cell Formulas
RangeFormula
F2=NOT(B2=C1)
F3=NOT(B3=C2)
F4=NOT(B4=C3)
F5=NOT(B5=C4)
F6=NOT(B6=C5)
F7=NOT(B7=C6)
F8=NOT(B8=C7)
F9=NOT(B9=C8)
F10=NOT(B10=C9)
F11=NOT(B11=C10)
F12=NOT(B12=C11)
F13=NOT(B13=C12)
F14=NOT(B14=C13)
F15=NOT(B15=C14)
F16=NOT(B16=C15)
F17=NOT(B17=C16)
F18=NOT(B18=C17)
F19=NOT(B19=C18)
F20=NOT(B20=C19)
F21=NOT(B21=C20)
F22=NOT(B22=C21)
 
Upvote 0
I am looking for that result, but I have like 4000 rows to sort out. I'm trying to avoid going through all 4000 lines to manually sort it out. Column F on my sheet is how I am identifying the ticket numbers I need to a 2nd look at.
 
Upvote 0
In my post I included the formula to put into column F. So, throw that formula in, copy it down, then sort the range by Item Number, then by Edit Date, then by column F. The sort dialogue will have 3 levels in that order.
 
Upvote 0
Solution
Irobbo314,

I appreciate the help. Your idea helped, but for some reason did not catch every instance. I ended up just hunting them down manually. However I greatly appreciate your help.
Jason
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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