flower8330
New Member
- Joined
- May 27, 2015
- Messages
- 2
Hi,
I want to count the unique values in column A. Column B contains various text values. I want to count all unique values of column A that have a column B that contains "2003" within the text value.
Example data:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Column A
[/TD]
[TD]Column B
[/TD]
[/TR]
[TR]
[TD]Server 1
[/TD]
[TD]Windows 2000
[/TD]
[/TR]
[TR]
[TD]Server 2
[/TD]
[TD]Windows 2003
[/TD]
[/TR]
[TR]
[TD]Server 2
[/TD]
[TD]Windows 2003
[/TD]
[/TR]
[TR]
[TD]Server 3
[/TD]
[TD]Windows 2003 enterprise server
[/TD]
[/TR]
</TBODY>[/TABLE]
I need a formula that will return the value 2 (essentially counting Server 2 and Server 3).
If have the formulas below, but don't know how to combine them.
=SUM(IF(FREQUENCY(MATCH(A1:A4,A1:A4,0),MATCH(A1:A4,A1:A4,0))>0,1))
=ISNUMBER(SEARCH("2003",A:A))
Also, I would like to know if there is a way to allow for the range to be bigger than the data since the number of rows will grow over time.
I tried using a larger end range, but the funtion threw an error.
=SUM(IF(FREQUENCY(MATCH(A1:A4,A1:A10,0),MATCH(A1:A4,A1:A10,0))>0,1))
I'm using Excel 2010 on Win 7
I want to count the unique values in column A. Column B contains various text values. I want to count all unique values of column A that have a column B that contains "2003" within the text value.
Example data:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Column A
[/TD]
[TD]Column B
[/TD]
[/TR]
[TR]
[TD]Server 1
[/TD]
[TD]Windows 2000
[/TD]
[/TR]
[TR]
[TD]Server 2
[/TD]
[TD]Windows 2003
[/TD]
[/TR]
[TR]
[TD]Server 2
[/TD]
[TD]Windows 2003
[/TD]
[/TR]
[TR]
[TD]Server 3
[/TD]
[TD]Windows 2003 enterprise server
[/TD]
[/TR]
</TBODY>[/TABLE]
I need a formula that will return the value 2 (essentially counting Server 2 and Server 3).
If have the formulas below, but don't know how to combine them.
=SUM(IF(FREQUENCY(MATCH(A1:A4,A1:A4,0),MATCH(A1:A4,A1:A4,0))>0,1))
=ISNUMBER(SEARCH("2003",A:A))
Also, I would like to know if there is a way to allow for the range to be bigger than the data since the number of rows will grow over time.
I tried using a larger end range, but the funtion threw an error.
=SUM(IF(FREQUENCY(MATCH(A1:A4,A1:A10,0),MATCH(A1:A4,A1:A10,0))>0,1))
I'm using Excel 2010 on Win 7
Last edited: