G
Glenn Mulno
Hi All,
I am trying to do some calculations on some data that is auto filtered. I
tried using the SUBTOTAL function but it is limiting what I need to do.
For example - my spread sheet is has around 9000 rows of data in it.
I have auto filtering on which reduces this to around 50 rows of relevant
data.
Within the data that is left I am trying to do the following:
Count the number to entries that are >= 8. I had this prior to auto
filtering:
=COUNTIF(Sheet1!T2:Sheet1!T25000,">=8")
Count the number of entries that are below 8. I had this prior to auto
filtering:
=COUNTIF(Sheet1!T2:Sheet1!T25000,"<8")
What the above are doing is ignoring the filtered data and counting within
all 9000 rows. I tried the SUBTOTAL function but it only has a limited
number of functions that it works with and COUNTIF is not one of them.
I tried this wacky code:
=SUBTOTAL(2,IF(Sheet1!T2:Sheet1!T25000 >=8,1,0))
But the cell only displays #VALUE!
Out of desperation I tried playing with the two functions :
=SUBTOTAL(2, COUNTIF(Sheet1!T2:Sheet1!T25000,"<8"))
=COUNTIF(SUBTOTAL(2, Sheet1!T2:Sheet1!T25000),"<8")
but excel just won't use it's powers of mind reading to properly interpret
what I am trying to do.
Any thoughts on getting around this? I could get the data by customer
filtering a couple times but I was hoping to get it to display all at the
same time. Also - I have a few other things I am trying to do with the
filtered data and that solution would not work well. If I can get around
this issue then I can work out all else.
Thanks,
Glenn
I am trying to do some calculations on some data that is auto filtered. I
tried using the SUBTOTAL function but it is limiting what I need to do.
For example - my spread sheet is has around 9000 rows of data in it.
I have auto filtering on which reduces this to around 50 rows of relevant
data.
Within the data that is left I am trying to do the following:
Count the number to entries that are >= 8. I had this prior to auto
filtering:
=COUNTIF(Sheet1!T2:Sheet1!T25000,">=8")
Count the number of entries that are below 8. I had this prior to auto
filtering:
=COUNTIF(Sheet1!T2:Sheet1!T25000,"<8")
What the above are doing is ignoring the filtered data and counting within
all 9000 rows. I tried the SUBTOTAL function but it only has a limited
number of functions that it works with and COUNTIF is not one of them.
I tried this wacky code:
=SUBTOTAL(2,IF(Sheet1!T2:Sheet1!T25000 >=8,1,0))
But the cell only displays #VALUE!
Out of desperation I tried playing with the two functions :
=SUBTOTAL(2, COUNTIF(Sheet1!T2:Sheet1!T25000,"<8"))
=COUNTIF(SUBTOTAL(2, Sheet1!T2:Sheet1!T25000),"<8")
but excel just won't use it's powers of mind reading to properly interpret
what I am trying to do.
Any thoughts on getting around this? I could get the data by customer
filtering a couple times but I was hoping to get it to display all at the
same time. Also - I have a few other things I am trying to do with the
filtered data and that solution would not work well. If I can get around
this issue then I can work out all else.
Thanks,
Glenn