Matching customer emails from 2 different sheets to get a count

LH2022

New Member
Joined
Jun 24, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hiya all,

I'm struggling a bit with I have a list of customers who bought Product A (which is a sample of the main product) on one sheet, then I have a list of customers who bought Product B (which is the main product) on another sheet. Is there a way that I can (on a separate summary sheet) show the count of customers who bought Product A and then went on to buy Product B, the only matching information we have is the email address for each customer.

I have done the following formula but I have no idea if its right 🤦‍♀️

=COUNTIFS(Sample_Sales!C:C,"*",Total_Sales!D:D,"*")
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
=SUMPRODUCT(--(COUNTIF(Sample_sales!C2:C100,total_sales!D2:D100)>0))

change the range to match data

Book28
ABCD
12
2
3
Sheet3
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT(--(COUNTIF(sample_sales!C1:C100,total_sales!D1:D100)>0))


Book28
ABCDE
1
2email1
3email4
4
5
6
total_sales


Book28
ABCDE
1
2email1
3email2
4email3
5email4
6email5
7email6
8email7
9email8
10
11
12
sample_sales


will only be availablefor a few days
 
Last edited:
Upvote 0
=SUMPRODUCT(--(COUNTIF(Sample_sales!C2:C100,total_sales!D2:D100)>0))

change the range to match data

Book28
ABCD
12
2
3
Sheet3
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT(--(COUNTIF(sample_sales!C1:C100,total_sales!D1:D100)>0))


Book28
ABCDE
1
2email1
3email4
4
5
6
total_sales


Book28
ABCDE
1
2email1
3email2
4email3
5email4
6email5
7email6
8email7
9email8
10
11
12
sample_sales


will only be availablefor a few days
Thank you so much! That's worked for me now :)
 
Upvote 0
you are welcome, i will delete the dropbox version
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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