Hi All
we are wanting to calculate the lifetime value of a customer. I have history table of 3 columns (10k of entries) with the customer name appearing every time they have ordered over the past two years. Is there a way I can count the number of times a name appears in a list. Ideally using the names in the list as the index.
Example of the date here. You can see that N2OLIMIT appears four times.
I'd like to add another column that shows the number of times a customer has ordered. Then I can sort and use this information.
[TABLE="width: 227"]
<tbody>[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]AMIENJOM[/TD]
[TD="colspan: 2"]22.04[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]N20LIMIT[/TD]
[TD="colspan: 2"]605.50[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]JKPLUMBI[/TD]
[TD="colspan: 2"]146.19[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]N20LIMIT[/TD]
[TD="colspan: 2"]217.00[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]N20LIMIT[/TD]
[TD="colspan: 2"]237.43[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]GBSCONSU[/TD]
[TD="colspan: 2"]276.47[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]DESILVAT[/TD]
[TD="colspan: 2"]46.98[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]CAMBRIAN[/TD]
[TD="colspan: 2"]71.05[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]ACACIARA[/TD]
[TD="colspan: 2"]38.64[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]KRULIVEL[/TD]
[TD="colspan: 2"]166.50[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]N20LIMIT[/TD]
[TD="colspan: 2"]1498.50[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]UNIVERS2[/TD]
[TD="colspan: 2"]1209.35[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]PROCUREM[/TD]
[TD="colspan: 2"]235.50[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance
Steven811
we are wanting to calculate the lifetime value of a customer. I have history table of 3 columns (10k of entries) with the customer name appearing every time they have ordered over the past two years. Is there a way I can count the number of times a name appears in a list. Ideally using the names in the list as the index.
Example of the date here. You can see that N2OLIMIT appears four times.
I'd like to add another column that shows the number of times a customer has ordered. Then I can sort and use this information.
[TABLE="width: 227"]
<tbody>[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]AMIENJOM[/TD]
[TD="colspan: 2"]22.04[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]N20LIMIT[/TD]
[TD="colspan: 2"]605.50[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]JKPLUMBI[/TD]
[TD="colspan: 2"]146.19[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]N20LIMIT[/TD]
[TD="colspan: 2"]217.00[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]N20LIMIT[/TD]
[TD="colspan: 2"]237.43[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]GBSCONSU[/TD]
[TD="colspan: 2"]276.47[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]DESILVAT[/TD]
[TD="colspan: 2"]46.98[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]CAMBRIAN[/TD]
[TD="colspan: 2"]71.05[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]ACACIARA[/TD]
[TD="colspan: 2"]38.64[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]KRULIVEL[/TD]
[TD="colspan: 2"]166.50[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]N20LIMIT[/TD]
[TD="colspan: 2"]1498.50[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]UNIVERS2[/TD]
[TD="colspan: 2"]1209.35[/TD]
[/TR]
[TR]
[TD]03/01/2017[/TD]
[TD="colspan: 2"]PROCUREM[/TD]
[TD="colspan: 2"]235.50[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance
Steven811