Looking for a way to count the number of unique values. Note that some cells have multiple entries. Need to ignore the text and dates and just count the number of “numbers” even though they themselves are in a text field. So for the example below, the number of unique values is 12. Note: need to ignore letters after the “numbers” as that is referring to the same value just amended - in this case the "A".</SPAN>
[TABLE="class: grid, width: 201"]
<TBODY>[TR]
[TD]FOT A52281
[/TD]
[/TR]
[TR]
[TD]POL A46168
[/TD]
[/TR]
[TR]
[TD]KUY A46159 (3/2&3/3/04)</SPAN>
[/TD]
[/TR]
[TR]
[TD]WEV A46159 (3/2&3/3/04) </SPAN>
IOV A46170</SPAN> (1/31/2005)</SPAN>
[/TD]
[/TR]
[TR]
[TD]WEV A46159
IOV A46170 (1/31/2005)</SPAN>
[/TD]
[/TR]
[TR]
[TD]NOV A46159
[/TD]
[/TR]
[TR]
[TD]TIM A46175H
[/TD]
[/TR]
[TR]
[TD]SAM A46175
[/TD]
[/TR]
[TR]
[TD]DTO A46174
[/TD]
[/TR]
[TR]
[TD]UAL A48207
[/TD]
[/TR]
[TR]
[TD]PIR A46070
[/TD]
[/TR]
[TR]
[TD]RTE A46070
[/TD]
[/TR]
[TR]
[TD]TX A46072
[/TD]
[/TR]
[TR]
[TD]Y A52283
NV A52284
[/TD]
[/TR]
[TR]
[TD]PQW A52283
O A52284
[/TD]
[/TR]
[TR]
[TD]ZRR A52283
ZRR A52284
[/TD]
[/TR]
[TR]
[TD]FOT A52281A
[/TD]
[/TR]
[TR]
[TD]FOT A52281A
[/TD]
[/TR]
[TR]
[TD]TIM A52283
TIM A52284
[/TD]
[/TR]
</TBODY>[/TABLE]
I tried using:</SPAN>
=COUNTIF(D10:D28,"*A*") but results in 19</SPAN>
=SUM(IF(COUNTIF(D9:D28,D9:D28)=0,"",1/COUNTIF(D9:D28,D9:D28))) results in 18</SPAN>
=SUM(IF(FREQUENCY(MATCH(D10:D28,D10:D28,0),MATCH(D10:D28,D10:D28,0))>0,1)) Also results in 18</SPAN>
and</SPAN>
=SUMPRODUCT((D10:D28<>"")*(1/COUNTIF(D10:D28,D10:D28&""))) results in 18</SPAN>
While there is always an “A” before the number, it may not show up. Also, there are blank rows in my real data, so I need to ignore those. If this helps, the number of digits are always 5 (i.e., 52283).</SPAN>
Excel 2003.</SPAN>
[TABLE="class: grid, width: 201"]
<TBODY>[TR]
[TD]FOT A52281
[/TD]
[/TR]
[TR]
[TD]POL A46168
[/TD]
[/TR]
[TR]
[TD]KUY A46159 (3/2&3/3/04)</SPAN>
[/TD]
[/TR]
[TR]
[TD]WEV A46159 (3/2&3/3/04) </SPAN>
IOV A46170</SPAN> (1/31/2005)</SPAN>
[/TD]
[/TR]
[TR]
[TD]WEV A46159
IOV A46170 (1/31/2005)</SPAN>
[/TD]
[/TR]
[TR]
[TD]NOV A46159
[/TD]
[/TR]
[TR]
[TD]TIM A46175H
[/TD]
[/TR]
[TR]
[TD]SAM A46175
[/TD]
[/TR]
[TR]
[TD]DTO A46174
[/TD]
[/TR]
[TR]
[TD]UAL A48207
[/TD]
[/TR]
[TR]
[TD]PIR A46070
[/TD]
[/TR]
[TR]
[TD]RTE A46070
[/TD]
[/TR]
[TR]
[TD]TX A46072
[/TD]
[/TR]
[TR]
[TD]Y A52283
NV A52284
[/TD]
[/TR]
[TR]
[TD]PQW A52283
O A52284
[/TD]
[/TR]
[TR]
[TD]ZRR A52283
ZRR A52284
[/TD]
[/TR]
[TR]
[TD]FOT A52281A
[/TD]
[/TR]
[TR]
[TD]FOT A52281A
[/TD]
[/TR]
[TR]
[TD]TIM A52283
TIM A52284
[/TD]
[/TR]
</TBODY>[/TABLE]
I tried using:</SPAN>
=COUNTIF(D10:D28,"*A*") but results in 19</SPAN>
=SUM(IF(COUNTIF(D9:D28,D9:D28)=0,"",1/COUNTIF(D9:D28,D9:D28))) results in 18</SPAN>
=SUM(IF(FREQUENCY(MATCH(D10:D28,D10:D28,0),MATCH(D10:D28,D10:D28,0))>0,1)) Also results in 18</SPAN>
and</SPAN>
=SUMPRODUCT((D10:D28<>"")*(1/COUNTIF(D10:D28,D10:D28&""))) results in 18</SPAN>
While there is always an “A” before the number, it may not show up. Also, there are blank rows in my real data, so I need to ignore those. If this helps, the number of digits are always 5 (i.e., 52283).</SPAN>
Excel 2003.</SPAN>