Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula for counting frequency then sorting | Excel Worksheet Functions | |||
Frequency Counting | Excel Worksheet Functions | |||
word frequency counting | Excel Discussion (Misc queries) | |||
Counting Numbers of Same Frequency | Excel Discussion (Misc queries) | |||
Counting Frequency of Filtered Data | Excel Worksheet Functions |