Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default count unique values if 2 variables

I have 2 columns of data, 1 numeric (maybe with "" due to formula) and 1
text. I need to count any rows with numeric values in column 1 with the same
text values (unique records) in column 2. Any ideas? Thanks!

Tony.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count unique values if 2 variables

A1:A20 = numbers
B1:B20 = text entries

Try this array formula** :

=SUM(--(FREQUENCY(IF(ISNUMBER(A1:A20)*(B1:B20<""),MATCH( B1:B20,B1:B20,0)),ROW(B1:B20)-ROW(B1)+1)0))

--
Biff
Microsoft Excel MVP


"Tony7659" wrote in message
...
I have 2 columns of data, 1 numeric (maybe with "" due to formula) and 1
text. I need to count any rows with numeric values in column 1 with the
same
text values (unique records) in column 2. Any ideas? Thanks!

Tony.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count unique values if 2 variables

Oops!

Left out something important.

Try this array formula** :


** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
A1:A20 = numbers
B1:B20 = text entries

Try this array formula** :

=SUM(--(FREQUENCY(IF(ISNUMBER(A1:A20)*(B1:B20<""),MATCH( B1:B20,B1:B20,0)),ROW(B1:B20)-ROW(B1)+1)0))

--
Biff
Microsoft Excel MVP


"Tony7659" wrote in message
...
I have 2 columns of data, 1 numeric (maybe with "" due to formula) and 1
text. I need to count any rows with numeric values in column 1 with the
same
text values (unique records) in column 2. Any ideas? Thanks!

Tony.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default count unique values if 2 variables

Hello Tony,

I suggest to use my UDF Pfreq which you can find he
www.sulprobil.com

Regards,
Bernd
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Unique Values Joe Gieder Excel Worksheet Functions 4 February 18th 09 05:01 PM
Count Unique Values Dave Excel Worksheet Functions 5 December 4th 08 10:20 PM
Count unique values fsfiligoi Excel Discussion (Misc queries) 5 June 4th 08 08:48 PM
count unique values, if ... Averitt Engineer[_2_] Excel Worksheet Functions 2 February 15th 07 06:41 PM
Count unique values and create list based on these values vipa2000 Excel Worksheet Functions 7 August 5th 05 01:17 AM


All times are GMT +1. The time now is 03:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"