A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Counting frequency in unsorted data



 
 
Thread Tools Display Modes
  #1  
Old April 12th, 2010, 04:54 AM posted to microsoft.public.excel.worksheet.functions
PhilC
external usenet poster
 
Posts: 4
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  
Old April 12th, 2010, 05:15 AM posted to microsoft.public.excel.worksheet.functions
ozgrid.com
external usenet poster
 
Posts: 328
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  
Old April 12th, 2010, 06:31 AM posted to microsoft.public.excel.worksheet.functions
PhilC
external usenet poster
 
Posts: 4
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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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