Hi all,
I have a table of customer who are awaiting or have had a procedure in a table like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer ID[/TD]
[TD]Procedure[/TD]
[TD]Request Date[/TD]
[TD]Completion Date[/TD]
[/TR]
[TR]
[TD]0001[/TD]
[TD]Echo[/TD]
[TD]2018-04-02[/TD]
[TD]2018-05-05[/TD]
[/TR]
[TR]
[TD]0002[/TD]
[TD]Echo[/TD]
[TD]2018-05-06[/TD]
[TD]2018-05-27[/TD]
[/TR]
[TR]
[TD]0003[/TD]
[TD]TILT[/TD]
[TD]2018-05-07[/TD]
[TD]2018-05-20[/TD]
[/TR]
[TR]
[TD]0004[/TD]
[TD]Echo[/TD]
[TD]2018-05-19[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
These procedures should be done within six weeks but can take longer. What I'm wanting to be able to see is by procedure how many customers were waiting at each week by how many weeks they have been waiting. E.g.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Echo[/TD]
[TD]Week 1[/TD]
[TD]Week 2[/TD]
[TD]Week 3[/TD]
[TD]Week 4[/TD]
[TD]Week 5[/TD]
[TD]Week 6[/TD]
[/TR]
[TR]
[TD]02/04/18[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]09/04/18[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16/04/18[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]23/04/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]30/04/18[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/05/18[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14/05/18[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21/05/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]28/05/18[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have about 120k rows with a variety of 20 procedures. I'm happy to use VBA or formula, and can add additional columns the the table if needed.
I have a table of customer who are awaiting or have had a procedure in a table like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer ID[/TD]
[TD]Procedure[/TD]
[TD]Request Date[/TD]
[TD]Completion Date[/TD]
[/TR]
[TR]
[TD]0001[/TD]
[TD]Echo[/TD]
[TD]2018-04-02[/TD]
[TD]2018-05-05[/TD]
[/TR]
[TR]
[TD]0002[/TD]
[TD]Echo[/TD]
[TD]2018-05-06[/TD]
[TD]2018-05-27[/TD]
[/TR]
[TR]
[TD]0003[/TD]
[TD]TILT[/TD]
[TD]2018-05-07[/TD]
[TD]2018-05-20[/TD]
[/TR]
[TR]
[TD]0004[/TD]
[TD]Echo[/TD]
[TD]2018-05-19[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
These procedures should be done within six weeks but can take longer. What I'm wanting to be able to see is by procedure how many customers were waiting at each week by how many weeks they have been waiting. E.g.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Echo[/TD]
[TD]Week 1[/TD]
[TD]Week 2[/TD]
[TD]Week 3[/TD]
[TD]Week 4[/TD]
[TD]Week 5[/TD]
[TD]Week 6[/TD]
[/TR]
[TR]
[TD]02/04/18[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]09/04/18[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16/04/18[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]23/04/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]30/04/18[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/05/18[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14/05/18[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21/05/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]28/05/18[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have about 120k rows with a variety of 20 procedures. I'm happy to use VBA or formula, and can add additional columns the the table if needed.