IF COUNTIF & COUNTA on Filtered Visible Cells

T

Tinä

Hi Aladin,

Hope this will help.

Correction to penultimate Posting:
My Helper Column "U" increments one Row at a time and says:
Check from Row above Current Row back to beginning of my "V" Range: i
the Room was used previously give me the Last (MAX) time it was used b
returning the relevant Row Number of the (text based) Group Nam
(Executive, Trainees, Manager, Graphics, etc.) that used the Room Last


The Helper Column "U" then passes this data to the Formula in Colum
"T" - it checks for the criteria within the specified Range and doe
the COUNT calculation using the Row above Current Row where the Grou
Name appears, if at all, back to the Last (MAX) Row where it appeared
subtracts Last Row Number from the Row above Current Row Number t
return Number of Times Group Name has not used Room.


NB. ++ used to align text under relevant columns
Row Number 10 is blank / empty.
Row Number 11 is the first Row with data.
Row10-Row10 means Row Number 10 minus Row Number 10
Helper Column "U" calculates Row Number for Group Name Last Occurrence

Apart from Row 11 which is the first Row of data and returns 0 (zero
in Column "T" and 0 (zero) in Helper Column "U"; the following applie
thereafter:
A zero in Helper Column "U" is a first occurrence of the Group Name.
A zero in Column "T" means a consecutive double, triple or qua
occurrence of a Group Name using a Room.

Expected Results "No Filter Applied":
Row No.++Col "T" Results++Calculation Col "T"+Column "U" Helper++Colum
"V"
10++++++Blank++++++++Blank+++++++++Blank++++++++++ +Blank
11++++++0+++++++++++Row10-Row10++++0++++++++++++++Executive
12++++++1+++++++++++Row11-Row10++++0++++++++++++++Manager
13++++++2+++++++++++Row12-Row10++++0++++++++++++++Trainees
14++++++0+++++++++++Row13-Row13++++13+++++++++++++Trainees
15++++++0+++++++++++Row14-Row14++++14+++++++++++++Trainees
16++++++3+++++++++++Row15-Row12++++12+++++++++++++Manager
17++++++6+++++++++++Row16-Row10++++0++++++++++++++Graphics
18++++++1+++++++++++Row17-Row16++++16+++++++++++++Manager
19++++++3+++++++++++Row18-Row15++++15+++++++++++++Trainees
20++++++8+++++++++++Row19-Row11++++11+++++++++++++Executive
21++++++2+++++++++++Row20-Row18++++18+++++++++++++Manager

Expected Results "AutoFilter Applied":
Row No.++Col "T" Results++Calculation Col "T"+Column "U" Helper++Colum
"V"
10++++++Blank++++++++Blank+++++++++Blank++++++++++ +Blank
12++++++1+++++++++++Row11-Row10++++0++++++++++++++Manager
14++++++3+++++++++++Row13-Row10++++0++++++++++++++Trainees
15++++++0+++++++++++Row14-Row14++++14+++++++++++++Trainees
17++++++6+++++++++++Row16-Row10++++0++++++++++++++Graphics
18++++++5+++++++++++Row17-Row12++++12+++++++++++++Manager
20++++++9+++++++++++Row19-Row10++++0++++++++++++++Executive
27++++++11++++++++++Row26-Row15++++15+++++++++++++Trainees
28++++++0+++++++++++Row27-Row27++++27+++++++++++++Trainees
31++++++20++++++++++Row30-Row10++++0++++++++++++++Admin
36++++++17++++++++++Row35-Row18++++18+++++++++++++Manager
38++++++20++++++++++Row37-Row17++++17+++++++++++++Graphics

AutoFilter will return the correct Results if only one criteria i
Filtered using Column "V", eg: "Trainees". However, if I apply a Filte
from a different column where the Results will include a mix of Grou
Names the Results returned in Column "T" and Column "U" are calculate
using the "Non-Filtered" data in the whole column and "not the Filtere
Visible Cells" as is required.

Is there a Formula that can return AutoFiltered multiple criteri
Results for Filtered Visible Cells only based on the above sample?

Thanks
Tin
 
A

Aladin Akyurek

Tinä said:
...
Is there a Formula that can return AutoFiltered multiple criteri
Results for Filtered Visible Cells only based on the above sample?
...

Tinä,

Just picking out the above filtered out question: The answer is yes
For example,

=SUMPRODUCT(SUBTOTAL(3,OFFSET(TargetRange,ROW(TargetRange)-MIN(ROW(TargetRange)),,1)),--ISNUMBER(MATCH(TargetRange,{"Awaitin
Reply","Replied"},0)))

would produce a total count regarding the items "Awaiting Reply" an
"Replied" that occur in the target range
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top