PC Review


Reply
Thread Tools Rate Thread

Counting frequency in unsorted data

 
 
PhilC
Guest
Posts: n/a
 
      12th Apr 2010
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

 
Reply With Quote
 
 
 
 
ozgrid.com
Guest
Posts: n/a
 
      12th Apr 2010
Do you mean?
=SUMPRODUCT((A1:A20="XA")*(B1:B20="GA")*(C1:C20>0))



--
Regards
Dave Hawley
www.ozgrid.com
"PhilC" <(E-Mail Removed)> wrote in message
news:8468856B-1E29-4025-B655-(E-Mail Removed)...
> 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
>


 
Reply With Quote
 
PhilC
Guest
Posts: n/a
 
      12th Apr 2010
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting for frequency Roxana Microsoft Excel Worksheet Functions 2 5th May 2010 03:53 PM
Frequency Counting J.Scargill Microsoft Excel Worksheet Functions 8 2nd Apr 2010 02:25 AM
Counting Numbers of Same Frequency Rothman Microsoft Excel Misc 1 22nd Feb 2008 03:12 AM
HELP: Counting frequency of a text =?Utf-8?B?amFvbmcx?= Microsoft Frontpage 2 9th Sep 2007 08:14 PM
Counting Frequency of Filtered Data =?Utf-8?B?dG9t?= Microsoft Excel Worksheet Functions 1 1st Mar 2006 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:10 PM.