Hi Everyone.
I want to count the number of retail jobs but only count the same Job number once
I'm sure its really simple but I've been trying for days and cant get it to where i want it.
Thanks in advance
Kevin
Hi Everyone.
I want to count the number of retail jobs but only count the same Job number once
I'm sure its really simple but I've been trying for days and cant get it to where i want it.
Thanks in advance
Kevin
Hi,
Follow attached, it's an Array Formula
Cheers!
John.
"I excel at jumping to conclusions"
Hi Kevin and welcome to the forum,
In the newest version of Excel there is a new function called "Unique()" that would give your answer but try the attached to solve it instead. I use a helper column first and then count only the first occurrence.
Countif different.xlsx
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
not sure what you are looking for as a unique count, but this will return an overall unique count total...
=SUMPRODUCT(--(FREQUENCY(MATCH($B$2:$B$13,$B$2:$B$13,0),ROW($B$2:$B$13)-ROW(B2)+1)>0))
EDIT: this would also work... =SUMPRODUCT(1/COUNTIF(B2:B13,B2:B13))
with the same results.
Last edited by Sam Capricci; 11-19-2019 at 03:19 PM.
Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
Sam Capricci
Thanks for your efforts guys but perhaps i didn't explain it correctly.
I need the number of retail job numbers but as you will see some of the retail jobs have the same job number so i only need to count these once.
Hope that makes it a bit clearer.
Kind regards
Kevin
Hey Kevin,
It might help if you gave us the answer to your problem, so we could understand it correctly. See if the attached gets closer to the answer you seek.
Helper Retail Unique Job Numbers.xlsx
Perhaps this in C2:C13Formula:Please Login or Register to view this content.
Dave
Also very similar to Sam's in post #4 above.
You may need to array enter this. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.Formula:Please Login or Register to view this content.
E2=SUM(IF(FREQUENCY(IF(A2:A13<>"",MATCH(A2:A13&B2:B13,A2:A13&B2:B13,0)),ROW(A2:A13)-ROW(A2)+1),1))
Control+shift+enter
Hi Marvin
Your last attachment has worked! Thanks very much. Is there a way that this can be done without the helper column?
Kind regards
Kevin
Is there a way that this can be done without the helper column?
E2=SUM(IF(FREQUENCY(IF(RIGHT(A2:A13,6)="Retail",MATCH(A2:A13&B2:B13,A2:A13&B2:B13,0)),ROW(A2:A13)-ROW(A2)+1),1))
control+shift+enter
Last edited by CARACALLA; 11-20-2019 at 02:48 PM.
Hi Caracalla
That's work! Thank you so much.
I am eternally grateful to you all for the help with this.
Kind regards
Kevin
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks