status tracking and number of days in status

rickparmar

New Member
Joined
Jun 22, 2009
Messages
4
Hi all,

I hope I can explain this properly

I'm after some ideas/formulas which will help me create a status tracker.

Background - customer data will have max 6 status depending on where they are in the life cycle. (all customers have a unique identifier)
Weekly data will be provided with customer data either having the same status as previous week or having an updated status. Some customer could stay in the same status for weeks.
Also this weekly data will add new customers to the list,
Weekly data is provided by another team

Currently I have taken 3 weeks worth of data and put them side by side, with the date and customer status. This works out the number of days the customer has stayed in the status. I have used the following formula to give me the result for the past 3 weeks.

However this is not the best practice as I don't want to keep extending the if formula when new weeks are added.

=IF(K2=G2,SUM(TODAY()-F2),IF(K2=I2,SUM(TODAY()-H2),IF(K2<>I2,SUM(TODAY()-J2))))


I have created a master sheet and keep adding new weeks data side by side
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Date[/TD]
[TD]Status[/TD]
[TD]Date[/TD]
[TD]Status[/TD]
[TD]Date[/TD]
[TD]Status[/TD]
[TD]Number of Days[/TD]
[/TR]
[TR]
[TD]abc1[/TD]
[TD]31/07/2017[/TD]
[TD]XY[/TD]
[TD]07/07/2017[/TD]
[TD]XY[/TD]
[TD]14/07/2017[/TD]
[TD]ZA[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]abc2[/TD]
[TD]31/07/2017[/TD]
[TD]XY[/TD]
[TD]07/07/2017[/TD]
[TD]ZA[/TD]
[TD]14/07/2017[/TD]
[TD]ZA[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]abc3[/TD]
[TD]31/07/2017[/TD]
[TD]TA[/TD]
[TD]07/07/2017[/TD]
[TD]TA[/TD]
[TD]14/07/2017[/TD]
[TD]TA[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

could someone help and think of any ideas please

Thanks in advance
Rik
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Re: status tracking and number of days in status - help needed

Make from your table a special Excel-table (Format as Table).
The table grows now automatic when you insert new columns.
If you have new data insert two columns before the last.
Rename the columntitles.
Excel Workbook
ABCDEFGHIJ
1CustomerDate 1Status 1Date 2Status 2Date 3Status 3Date 4Status 4Number of Days
2abc131-7-2017XY7-7-2017XY14-7-2017ZA10-8-2017VB]&quot;),SUMPRODUCT(--SMALL(((INDIRECT(&quot;Table1:)-2)/2&amp;&quot;]]&quot;)=INDIRECT(&quot;Table1)-2)/2&amp;&quot;]]&quot;)))*TRANSPOSE(ROW(INDIRECT(&quot;$1:$&quot;&amp;COLUMNS(Table1)-2))),COUNTIF(INDIRECT(&quot;Table1:)-2)/2&amp;&quot;]]&quot;),&quot;&lt;&gt;&quot;&amp;INDIRECT(&quot;Table1)-2)/2&amp;&quot;]]&quot;))+1))-1)}]7
3abc231-7-2017XY7-7-2017ZA14-7-2017ZA11-8-2017ZA41
4abc331-7-2017TA7-7-2017TA14-7-2017TA12-8-2017VB5
Sheet
 
Upvote 0
Re: status tracking and number of days in status - help needed

Hi Thanks for that,

I tried and I got the J2 cell the same,

However there is a slight change to the requirements. Is it possible to do this?

In the end columns I need the number of days each stage took

Hope you can help, thanks

[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]date[/TD]
[TD]status[/TD]
[TD]date[/TD]
[TD]status[/TD]
[TD]date[/TD]
[TD]status[/TD]
[TD]date[/TD]
[TD]status[/TD]
[TD][/TD]
[TD]XY[/TD]
[TD]ZA[/TD]
[TD]TA[/TD]
[TD]DE[/TD]
[TD]WE[/TD]
[TD]FE[/TD]
[/TR]
[TR]
[TD]abc1[/TD]
[TD]31/07/2017[/TD]
[TD]XY[/TD]
[TD]07/08/2017[/TD]
[TD]XY[/TD]
[TD]14/08/2017[/TD]
[TD]XY[/TD]
[TD]21/08/2017[/TD]
[TD]ZA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]abc2[/TD]
[TD]31/07/2017[/TD]
[TD]XY[/TD]
[TD]07/08/2017[/TD]
[TD]ZA[/TD]
[TD]14/08/2017[/TD]
[TD]XY[/TD]
[TD]21/08/2017[/TD]
[TD]XY[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]abc3[/TD]
[TD]31/07/2017[/TD]
[TD]ZA[/TD]
[TD]07/08/2017[/TD]
[TD]WE[/TD]
[TD]14/08/2017[/TD]
[TD]WE[/TD]
[TD]21/08/2017[/TD]
[TD]WE[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]abc4[/TD]
[TD]31/07/2017[/TD]
[TD]DE[/TD]
[TD]07/08/2017[/TD]
[TD]WE[/TD]
[TD]14/08/2017[/TD]
[TD]FE[/TD]
[TD]21/08/2017[/TD]
[TD]FE[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Re: status tracking and number of days in status - help needed

is the data form customer abc2 correct?
can a status return in the future?

how do you calc the last column (FE)?

can you give the results?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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