Counting Uniques

psycoperl

Active Member
Joined
Oct 23, 2007
Messages
338
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
  3. Web
Hi, I have a worksheet in Excel that is a log of transactions (after we run a process, we paste the log information at the bottom to maintain all history) What I would like to be able to find out and include in a separate worksheet in the same workbook file, is how many Unique end users did we service? A simple count would not help as we could have multiple transactions for the same person.

Is there a Count Unique function or some other method to achieve this?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Or something like
=SUMPRODUCT(1/COUNTIF(Sheet1!A2:A100,Sheet1!A2:A100))
 
Upvote 0
By means of a formula... Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(UsersRange<>"",MATCH(UsersRange,UsersRange,0)),ROW(UsersRange(-ROW(INDEX(UsersRange,1,1))+1),1))
 
Upvote 0
@ Fluff

Not efficient and the way you wrote it will fail because of empy/blank cells.
 
Last edited:
Upvote 0
By means of a formula... Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(UsersRange<>"",MATCH(UsersRange,UsersRange,0)),ROW(UsersRange(-ROW(INDEX(UsersRange,1,1))+1),1))

@Aladin - what does the Control Shift Enter do?
 
Upvote 0
@Aladin - what does the Control Shift Enter do?

One type of formulas, the so called array-processing formulas, must be signaled explicitly as Excel currently requires. That signaling is done with control+shift+enter, that is, by pressing down the control and the shift keys at the same time while hitting the enter key. When done successfully, Excel itself puts a pair of { and } around the formula in recognition.
 
Upvote 0
@ Fluff

Not efficient and the way you wrote it will fail because of empy/blank cells.

Thanks for that, unfortunately when I try yours I get "You've entered too many arguments" & it highlights the final 1
 
Upvote 0
Thanks for that, unfortunately when I try yours I get "You've entered too many arguments" & it highlights the final 1

It's:

{=SUM(IF(FREQUENCY(IF(UsersRange<>"",MATCH(UsersRange,UsersRange,0)),ROW(UsersRange)-ROW(INDEX(UsersRange,1,1))+1),1))}
 
Upvote 0
Solution
That does it & way quicker than my attempt.
Cheers
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

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