Finding the repeat buyers of an e-commerce order list

BrianEcom

New Member
Joined
Feb 16, 2018
Messages
2
Hey guys. I have a customer order list for my e-commerce website and I am trying to find out my repeat buyers as well as my biggest buyers.

Here is an example of how it looks like:

EmailProduct BoughtTotal That Customer Spent
customer1@email.comshoes$5
customer2@email.comhats$3

<tbody>
</tbody>

The only way to find out how many times this customer bought is to count the number of times their emails show up in the email field.

Is there an easy way to find out who my repeat buyers are as well as sort by the highest amount of total spend?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to the Board!

You can do that with formulas like this:

ABCDEFGHI
1EmailProduct BoughtTotal That Customer SpentBiggest SpendersMost Frequent
2customer1@email.comshoes$5 customer4@email.com$106 customer1@email.com6
3customer2@email.comhats$3 customer1@email.com$70 customer5@email.com4
4customer3@email.comshirts$9 customer2@email.com$40 customer2@email.com4
5customer2@email.comshoes$8 customer5@email.com$36 customer3@email.com3
6customer2@email.combelts$10 customer3@email.com$32 customer4@email.com2
7customer5@email.combelts$10
8customer5@email.combelts$3
9customer1@email.comshirts$17
10customer1@email.comties$8
11customer3@email.combelts$6
12customer4@email.comshirts$95
13customer5@email.combelts$4
14customer5@email.comshirts$19
15customer2@email.combelts$19
16customer4@email.comshoes$11
17customer1@email.comshirts$4
18customer3@email.combelts$17
19customer1@email.comhats$17
20customer1@email.compants$19

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
I2=IF(H2="","",COUNTIF($A$2:$A$20,H2))
F2=IF(E2="","",SUMIF($A$2:$A$20,E2,$C$2:$C$20))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
H2{=IFERROR(INDEX($A$2:$A$20,MOD(LARGE(IF(MATCH($A$2:$A$20,$A$2:$A$20,0)=ROW($A$2:$A$20)-ROW($A$2)+1,COUNTIF($A$2:$A$20,$A$2:$A$20)+(ROW($A$2:$A$20)-ROW($A$2)+1)/10000),ROWS($H$2:$H2)),1)*10000),"")}
E2{=IFERROR(INDEX($A$2:$A$20,MOD(LARGE(IF(MATCH($A$2:$A$20,$A$2:$A$20,0)=ROW($A$2:$A$20)-ROW($A$2)+1,INT(SUMIF($A$2:$A$20,$A$2:$A$20,$C$2:$C$20))+(ROW($A$2:$A$20)-ROW($A$2)+1)/10000),ROWS($E$2:$E2)),1)*10000),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



The problem is that if your order list is really large, this type of formula tends to crash Excel. If that happens, I'd recommend an on demand VBA macro that scans your list and creates the output lists. Let me know if that's of interest.
 
Upvote 0
I would like to suggest that a Pivot Table is ideal. I was able to construct a PT the same as the output in your columns E to I in about 30 seconds.
 
Last edited:
Upvote 0
Thats awesome! What are the steps involved in this pivot table? I dont have much experience creating them.
 
Upvote 0
Look at the table below (3 Pivot Tables - DRSteele's suggestion):


ABCDEFGHIJKLM
1EmailProduct BoughtTotal That Customer Spent









2customer1@email.comshoes5
Total That Customer Spent

Count of Email


Values
3customer2@email.comhats3
EmailTotal
EmailTotal
Product BoughtCount of EmailTotal Spent
4customer3@email.comshirts9
customer4@email.com106
customer1@email.com6
belts769
5customer2@email.comshoes8
customer1@email.com70
customer5@email.com4
shirts5144
6customer2@email.combelts10
customer2@email.com40
customer2@email.com4
shoes324
7customer5@email.combelts10
customer5@email.com36
customer3@email.com3
hats220
8customer5@email.combelts3
customer3@email.com32
customer4@email.com2
ties18
9customer1@email.comshirts17
Total Geral284
Total Geral19
pants119
10customer1@email.comties8






Total Geral19284
11customer3@email.combelts6*******************************************************************************************************
12customer4@email.comshirts95









13customer5@email.combelts4









14customer5@email.comshirts19









15customer2@email.combelts19









16customer4@email.comshoes11









17customer1@email.comshirts4









18customer3@email.combelts17









19customer1@email.comhats17









20customer1@email.compants19









*****************************************









<tbody>
</tbody>

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,463
Messages
6,124,963
Members
449,200
Latest member
indiansth

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