Is there a way to use the countif function like you would use the “count” function in the “subtotal” option in excel?
I have a list of data (over 10 columns and over 2000 rows) that I need to test a condition in “one column” and count those cells that meet that condition within each primary group which as an example I would use “state” as the primary group and “Days on Market” as the test column. My criteria for Days on the Market would change from state to state and that criteria is listed on another sheet.
A written explanation of the formula I would like to use is as follows:
>> At each change in “STATE” count the number of rows that have data in column titled “DAYS ON MARKET” less than a number on data sheet ABC in cell A1. notetest field may be a different number for each state as noted in the example below)
An example of test data would be as follows:
“State” Sales Price “Days on Market”
FLA 100000 100
FLA 200000 20
FLA 100000 20
FLA 200000 20
FLA 100000 100
FLA 200000 100
FLA 100000 100
FLA 200000 100
CA 100000 100
CA 200000 50
CA 100000 50
CA 200000 50
CA 100000 50
CA 200000 100
CA 100000 100
CA 200000 100
Results should be
“FLA” “3” (if test field is set as “ below 30)
“CA” “4” (if test field is set as “below 60)
Note: I would ask that any solution not be VBA coding
Thanks !
I have a list of data (over 10 columns and over 2000 rows) that I need to test a condition in “one column” and count those cells that meet that condition within each primary group which as an example I would use “state” as the primary group and “Days on Market” as the test column. My criteria for Days on the Market would change from state to state and that criteria is listed on another sheet.
A written explanation of the formula I would like to use is as follows:
>> At each change in “STATE” count the number of rows that have data in column titled “DAYS ON MARKET” less than a number on data sheet ABC in cell A1. notetest field may be a different number for each state as noted in the example below)
An example of test data would be as follows:
“State” Sales Price “Days on Market”
FLA 100000 100
FLA 200000 20
FLA 100000 20
FLA 200000 20
FLA 100000 100
FLA 200000 100
FLA 100000 100
FLA 200000 100
CA 100000 100
CA 200000 50
CA 100000 50
CA 200000 50
CA 100000 50
CA 200000 100
CA 100000 100
CA 200000 100
Results should be
“FLA” “3” (if test field is set as “ below 30)
“CA” “4” (if test field is set as “below 60)
Note: I would ask that any solution not be VBA coding
Thanks !