CasualDabbler
New Member
- Joined
- Oct 29, 2018
- Messages
- 19
- Office Version
- 2016
- Platform
- Windows
See table below for examples
I have a data set with customer order dates Col (1,2,3) - Values
I need to analyse the weekly order patterns over a 3 month period, this can be 60,000+ rows of data
The array formula looks at these 3 columns and returns a binary pattern for that week.
Example
My array formula is as follows (Cant remember where I got this from its not my own work) Range from 2:100000 as the data is often over 60,000 rows
{=TEXT(SUM(IF($Q$2:$Q$100000=$Q2,IF($B$2:$B$100000=$B2,10^(7-WEEKDAY($C$2:$C$100000,2))))),"0000000")}
It takes several hours to calculate this and often doesn't even complete successfully is there a more efficient way of doing this?
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD][C]Date[/TD]
[TD][Q]W/C (yymmdd)[/TD]
[TD][Array]Daily Pattern[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Wed 01/05/19[/TD]
[TD]190429[/TD]
[TD]0010010
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Sat 01/06/19[/TD]
[TD]190429[/TD]
[TD]0010010[/TD]
[/TR]
[TR]
[TD]43[/TD]
[TD]Mon 01/07/19[/TD]
[TD]190701[/TD]
[TD]1000100[/TD]
[/TR]
[TR]
[TD]73[/TD]
[TD]Tue 23/04/19[/TD]
[TD]190422[/TD]
[TD]0100101[/TD]
[/TR]
[TR]
[TD]73[/TD]
[TD]Fri 26/04/19[/TD]
[TD]190422[/TD]
[TD]0100101[/TD]
[/TR]
[TR]
[TD]73[/TD]
[TD]Sun 28/04/19[/TD]
[TD]190422[/TD]
[TD]0100101[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Wed 19/06/19[/TD]
[TD]190617[/TD]
[TD]0010000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hope someone can help !
I have a data set with customer order dates Col (1,2,3) - Values
I need to analyse the weekly order patterns over a 3 month period, this can be 60,000+ rows of data
The array formula looks at these 3 columns and returns a binary pattern for that week.
Example
Customer 2 in week 190429, ordered Wednesday & Saturday
Customer 2 in week 190617, only ordered on the Wednesday
Customer 2 in week 190617, only ordered on the Wednesday
My array formula is as follows (Cant remember where I got this from its not my own work) Range from 2:100000 as the data is often over 60,000 rows
{=TEXT(SUM(IF($Q$2:$Q$100000=$Q2,IF($B$2:$B$100000=$B2,10^(7-WEEKDAY($C$2:$C$100000,2))))),"0000000")}
It takes several hours to calculate this and often doesn't even complete successfully is there a more efficient way of doing this?
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD][C]Date[/TD]
[TD][Q]W/C (yymmdd)[/TD]
[TD][Array]Daily Pattern[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Wed 01/05/19[/TD]
[TD]190429[/TD]
[TD]0010010
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Sat 01/06/19[/TD]
[TD]190429[/TD]
[TD]0010010[/TD]
[/TR]
[TR]
[TD]43[/TD]
[TD]Mon 01/07/19[/TD]
[TD]190701[/TD]
[TD]1000100[/TD]
[/TR]
[TR]
[TD]73[/TD]
[TD]Tue 23/04/19[/TD]
[TD]190422[/TD]
[TD]0100101[/TD]
[/TR]
[TR]
[TD]73[/TD]
[TD]Fri 26/04/19[/TD]
[TD]190422[/TD]
[TD]0100101[/TD]
[/TR]
[TR]
[TD]73[/TD]
[TD]Sun 28/04/19[/TD]
[TD]190422[/TD]
[TD]0100101[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Wed 19/06/19[/TD]
[TD]190617[/TD]
[TD]0010000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hope someone can help !