Hi, I am trying to count unique values in a column depending on the values in another column. I have tried with countifs but struggeling.
The answer is in column G
Would be great to get some help
Many thanks in advance
Hi, I am trying to count unique values in a column depending on the values in another column. I have tried with countifs but struggeling.
The answer is in column G
Would be great to get some help
Many thanks in advance
Please try at G2
=COUNT(1/FREQUENCY(IF(F3=$C$2&" "&$C$3:$C$16,MATCH($B$3:$B$16,$B$3:$B$16)),ROW($C$3:$C$16)-ROW($C$2)))
**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
That works perfect Thanks for the quick reply
Try this:
=SUM(IF(--RIGHT(F3,1)=$C$3:$C$16,1/(COUNTIFS($C$3:$C$16,--RIGHT(F3,1),$B$3:$B$16,$B$3:$B$16)),0))
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks