Count active criteria over a period of time

mrlex

New Member
Joined
Sep 4, 2013
Messages
10
I have a set of historic order data going back for several years. Simply structured like so:

ABCD
Order numberCustomerOrder DateDelivery Date
12345Customer A20/12/201706/01/2018
54321Customer B01/01/201810/01/2018

<tbody>
</tbody>

What I would like is to show is how many active (aka undelivered) orders a customer had on any given date. I would like to represent that as a trend over time. This is for a large range of customers, over a high number of orders, for a long time period.

So on 01/01/2018, how many active (undelivered) orders did Customer A have.
Then on 02/02/2018, how many active (undelivered) orders did Customer A have.

I am really scratching my head to figure out the best way to show this for a range of customers, over a long time period.

Can any one offer suggestions on this one?

Thanks in advance :)
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Is this what you want?


Book1
ABCD
1Order numberCustomerOrder DateDelivery Date
212345Customer A12/20/20171/6/2018
354321Customer B1/1/20181/10/2018
412456Customer A2/2/201812/7/2018
536173Customer A12/17/20171/31/2018
6
7
8Customer A1/1/20182
9Customer A2/2/20181
Sheet1
Cell Formulas
RangeFormula
C8=COUNTIFS($B$2:$B$6,A8,$C$2:$C$6,"<="&B8,$D$2:$D$6,">="&B8)
C9=COUNTIFS($B$2:$B$6,A9,$C$2:$C$6,"<="&B9,$D$2:$D$6,">="&B9)
 
Upvote 0
Thanks so much for this! I am going to have a play around and see if I can get this to work.

I guess the only issue I have is that this will require a very long additional set of data.

If I have around 50 customers, and I want to do this over a period of a year or more, I would need to create a table with 50x360=18,000 rows/calculations. And this would continue to grow as I add more customers, and measure over a longer period - and this would need manual maintenance and updating.

Perhaps this is the only way to do it (and it does work), I just wondered if there was a more elegant solution (perhaps using a calculated field or something). I can't really think of anything though.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
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