Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Counting frequency in unsorted data

hi...I'm looking for a function that will count frequency using multiple
variables in an unsorted data set using two variables. I can get the
information that I need by sorting the data and then using Data-Autofilter
and using the countif function ti isolate the variables individual. However,
this is problematic if the data gets re-sorted.

Data example

A B C
XA GM 125
XC BA 34
XA GM 23
XC NY 19
XA GM (blank)

I'm looking to count the number of occurrences of XA where the value of GM
is greater than zero, skipping blank entries. I've tried a number of
different functions but haven't had any luck so far.

any help would be appreciated.

thank you

phil

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 464
Default Counting frequency in unsorted data

Do you mean?
=SUMPRODUCT((A1:A20="XA")*(B1:B20="GA")*(C1:C200) )



--
Regards
Dave Hawley
www.ozgrid.com
"PhilC" wrote in message
...
hi...I'm looking for a function that will count frequency using multiple
variables in an unsorted data set using two variables. I can get the
information that I need by sorting the data and then using
Data-Autofilter
and using the countif function ti isolate the variables individual.
However,
this is problematic if the data gets re-sorted.

Data example

A B C
XA GM 125
XC BA 34
XA GM 23
XC NY 19
XA GM (blank)

I'm looking to count the number of occurrences of XA where the value of GM
is greater than zero, skipping blank entries. I've tried a number of
different functions but haven't had any luck so far.

any help would be appreciated.

thank you

phil


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Counting frequency in unsorted data

Dave,
thank you, yes that did the trick...I had the sumproduct function wrong, I
was using "=XA" not ="XA" - an important difference.


The solution you provided works provided I subtract for blank spaces. I have
to treat 0 and blank cells separately ( 0 is a possible outcome whereis blank
is no data available).

Thanks very much

Phil
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
Formula for counting frequency then sorting J.Scargill[_2_] Excel Worksheet Functions 5 April 7th 10 04:34 PM
Frequency Counting J.Scargill[_2_] Excel Worksheet Functions 8 April 2nd 10 02:25 AM
word frequency counting LAN MIND Excel Discussion (Misc queries) 16 March 11th 08 06:50 PM
Counting Numbers of Same Frequency Rothman Excel Discussion (Misc queries) 1 February 22nd 08 03:12 AM
Counting Frequency of Filtered Data tom Excel Worksheet Functions 1 March 1st 06 08:31 PM


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

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"