Counting unique values and status as of last processing time

mattyblueice

Board Regular
Joined
Jul 24, 2014
Messages
87
Office Version
  1. 365
Platform
  1. MacOS
Hello, I have a order processing spreadsheet that lists the results of the system trying to fulfill orders. If the order is processed successfully the order status is "Successful", if it failed then its "Failed" and then it will retry two more time to process the order before it will be "Abandoned". The issue is that the system is not always flagging failed orders as abandoned and essentially is in limbo. There are processing times that go along with the system fulfillments

What I need to do is count the number of unique values (order numbers) and what their status was on the last time the system tried to process that order. So I want a count of orders whose last status was "Successful" and another cell for 'Failed" (which will capture orders in limbo) and "Abandoned". I am trying a combination of Sum Product, Countifs and Max but i can't figure out how to put it all together. Any suggestions please?

Thanks

Matt
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If you add a COUNTIF column for matching Order Nos but only anchor the last row it will countdown the matches.

Now add a column which gets the last status for each order.

Now you can count the Failed/Successful/Abandoned

Book1
ABCDEFGH
1Order NumberStatusCOUNTIFLast StatusFailedSuccesfulAbandoned
2X00154Failed6 131
3X00154Failed5 
4X00154Failed4 
5X00154Failed3 
6X00154Failed2 
7X00154Succesful1Succesful
8X00616Succesful1Succesful
9X00693Failed3 
10X00693Failed2 
11X00693Failed1Failed
12X00924Failed3 
13X00924Failed2 
14X00924Abandoned1Abandoned
15X01232Failed2 
16X01232Succesful1Succesful
MattyBlueIce
Cell Formulas
RangeFormula
C2:C16C2=COUNTIF(A2:$A$16,A2)
D2:D16D2=IF(C2=1,B2,"")
F2:H2F2=COUNTIF($D$2:$D$16,F$1)
 
Upvote 0
OMG- that's an easy solution (I had to wrap my head around it), but it worked beautifully. Thanks very much!
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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