Extracting specific data from a dataset

jdhfch

Board Regular
Joined
Jan 25, 2018
Messages
79
Office Version
  1. 365
Platform
  1. Windows
HI,

Please could someone help me?

I have a list of data from which I need to extract (using formulas) the total number of unique orders, by customer. There could be more than 1 item on an order, I just need the total number of unique order numbers for each customer, please? This is an idea of the dataset:
 

Attachments

  • example.JPG
    example.JPG
    127.6 KB · Views: 5

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
HI,

Please could someone help me?

I have a list of data from which I need to extract (using formulas) the total number of unique orders, by customer. There could be more than 1 item on an order, I just need the total number of unique order numbers for each customer, please? This is an idea of the dataset:
in that case, you can use pivot table to do it
 
Upvote 0
That is a great idea.. Thanks. One question though - it counts each line, not each order?
 
Upvote 0
in that case, you can use pivot table to do it
Could you give an example to show the count of unique orders by customer as requested in post 1?
.. and also how the pivot table would produce the results as shown in the OP's example?

@jdhfch
For the future, it would help you get better & faster answers if you gave us the sample data in a form that we can copy to test with. :)
I suggest that you investigate XL2BB
Also, are you still using Excel 2016 as shown in your profile?

See if something like this would work for you.

24 01 18.xlsm
ABCDEFGHIJK
1Cust NoNameOrderProdQty
21Cust 1Test 15
31Cust 1Test 11
41Cust 1Test 22
51Cust 1Test 21Cust NoNameNo. OrdersQtyAvg
61Cust 1Test 211Cust 14205
71Cust 1Test 212Cust 23175.666667
81Cust 1Test 31     
91Cust 1Test 43     
101Cust 1Test 42
111Cust 1Test 41
121Cust 1Test 41
131Cust 1Test 41
142Cust 2Test 52
152Cust 2Test 52
162Cust 2Test 51
172Cust 2Test 51
182Cust 2Test 51
192Cust 2Test 61
202Cust 2Test 61
212Cust 2Test 61
222Cust 2Test 61
232Cust 2Test 61
242Cust 2Test 71
252Cust 2Test 71
262Cust 2Test 71
272Cust 2Test 71
282Cust 2Test 71
Count Unique Orders
Cell Formulas
RangeFormula
G6:G9G6=IFERROR(INDEX(A$2:A$100,MATCH(0,INDEX(COUNTIF(G$5:G5,A$2:A$100)+(A$2:A$100=""),0),0)),"")
H6:H9H6=IF(G6="","",VLOOKUP(G6,A$2:B$100,2,0))
I6:I9I6=IF(G6="","",SUMPRODUCT(--(A$2:A$100=G6),--(MATCH(A$2:A$100&"|"&C$2:C$100,A$2:A$100&"|"&C$2:C$100,0)=ROW(A$2:A$100)-ROW(A$2)+1)))
J6:J9J6=IF(G6="","",SUMIF(A$2:A$100,G6,E$2:E$100))
K6:K9K6=IF(G6="","",J6/I6)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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