My entire database is filtered several times. In one of the last steps I need to hide all data from companies who are not providing at least 5 datasets (5 years of data). So I used "countif" to see how many times a company is featured in my database. But only those companies who remain after the previous filters are relevant to me.
So some companies, before applying a filter, are featured 5 times or more, but after applying all filters they are no longer and therefore have to be dismissed. However, "countif" always counts all data, also those which are hidden because of the filters.
I tried a weird function that I found in a german forum via google, which btw was the only one i found, but that one didn't work out for me: =SUMPRODUCT(PARTIALRESULT(3;INDIRECT("C"&ROW(2:999)))*(C2:C999="X"))
I attached an extract of my list of companies and the 2 functions i used. (which are "countif" for the frequency and "if" for the company name output column)
I applied a filter to "Assets" which only leaves 2 observations for "Steyr-Daimler-Puch-AG", but the frequency still says 9 because it still considers the hidden data. I need it to update though after applying the filter, so that it will show an empty cell in the "Company Name*" column.
So some companies, before applying a filter, are featured 5 times or more, but after applying all filters they are no longer and therefore have to be dismissed. However, "countif" always counts all data, also those which are hidden because of the filters.
I tried a weird function that I found in a german forum via google, which btw was the only one i found, but that one didn't work out for me: =SUMPRODUCT(PARTIALRESULT(3;INDIRECT("C"&ROW(2:999)))*(C2:C999="X"))
I attached an extract of my list of companies and the 2 functions i used. (which are "countif" for the frequency and "if" for the company name output column)
I applied a filter to "Assets" which only leaves 2 observations for "Steyr-Daimler-Puch-AG", but the frequency still says 9 because it still considers the hidden data. I need it to update though after applying the filter, so that it will show an empty cell in the "Company Name*" column.