ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Counting Cells, excluding those which have appeared before. (https://www.excelbanter.com/excel-discussion-misc-queries/116582-counting-cells-excluding-those-have-appeared-before.html)

BigMac

Counting Cells, excluding those which have appeared before.
 
Hi there,

I'm wondering how I'd be able to have a formula to calculate the number
of cells in a row which have appeared once and even though the value
appears many times in that row, I'd only count it as once. For
instance:

A
----
M
M
N
E
F
G
T
S
T
S

The result I'd want is 7, not taking into consideration the repeated
alphabets M, T and S. I wish to only count each alphabet once, not
matter whether if they are repeated or not.

Thanks!


Niek Otten

Counting Cells, excluding those which have appeared before.
 
http://www.cpearson.com/excel/duplic...CountingUnique

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"BigMac" wrote in message oups.com...
| Hi there,
|
| I'm wondering how I'd be able to have a formula to calculate the number
| of cells in a row which have appeared once and even though the value
| appears many times in that row, I'd only count it as once. For
| instance:
|
| A
| ----
| M
| M
| N
| E
| F
| G
| T
| S
| T
| S
|
| The result I'd want is 7, not taking into consideration the repeated
| alphabets M, T and S. I wish to only count each alphabet once, not
| matter whether if they are repeated or not.
|
| Thanks!
|



BigMac

Counting Cells, excluding those which have appeared before.
 
My god this is a godsend. I really don't know what I've done without
this. Thank you so much! It's guys like you that make EXCEL so much
easier to use. Thanks again!

Niek Otten wrote:
http://www.cpearson.com/excel/duplic...CountingUnique

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"BigMac" wrote in message oups.com...
| Hi there,
|
| I'm wondering how I'd be able to have a formula to calculate the number
| of cells in a row which have appeared once and even though the value
| appears many times in that row, I'd only count it as once. For
| instance:
|
| A
| ----
| M
| M
| N
| E
| F
| G
| T
| S
| T
| S
|
| The result I'd want is 7, not taking into consideration the repeated
| alphabets M, T and S. I wish to only count each alphabet once, not
| matter whether if they are repeated or not.
|
| Thanks!
|



Jim May

Counting Cells, excluding those which have appeared before.
 
In say cell C1 type in:
=SUM(1/COUNTIF(A1:A10,A1:A10)) <<Do Not Press Enter As Usual; Instead
Press (the 3 keys simultaneously) Ctrl + Shift + Enter -- This should
"Add" internally two { } characters - ONe at the beginng and one at the end
These {} can not be entered at the keyboard.

HTH



"BigMac" wrote:

Hi there,

I'm wondering how I'd be able to have a formula to calculate the number
of cells in a row which have appeared once and even though the value
appears many times in that row, I'd only count it as once. For
instance:

A
----
M
M
N
E
F
G
T
S
T
S

The result I'd want is 7, not taking into consideration the repeated
alphabets M, T and S. I wish to only count each alphabet once, not
matter whether if they are repeated or not.

Thanks!




All times are GMT +1. The time now is 01:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com