dgd1212
asked on
Changing formula to work with visible (non-filtered) cells only
Below are two formulas that work but unsure how to change these so they do the same thing to only visible cells:
=SUM(IF(FREQUENCY(O10:O201 0,O10:O201 0)>0,1))
=SUMPRODUCT((AD10:AD2010<> "")/COUNTI F(AD10:AD2 010,AD10:A D2010&""))
Thanks in advance
=SUM(IF(FREQUENCY(O10:O201
=SUMPRODUCT((AD10:AD2010<>
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
HI,
it's an array formula
Use Ctrl-Shift-Enter
it's an array formula
Use Ctrl-Shift-Enter
I don't think the SUMPRODUCT version suggested by Rgonzo1971 will be guaranteed to work in all circumstances. It only works if each set of duplicates is either completely hidden or completely visible, if not you may get fractional results which obviously don't make sense, e.g. if the whole range AD10:AD2010 is empty except for "x" in the first two rows.....and one of those rows is visible and the other is not you will get the result 0.5 rather than 1
I suggest this version to count the number of different and visible
=SUM(IF(FREQUENCY(IF(SUBTO TAL(103,OF FSET(AD10, ROW(AD10:A D2010)-ROW (AD10),0)) *(AD10:AD2 010<>""),M ATCH(AD10: AD2010,AD1 0:AD2010,0 )),ROW(AD1 0:AD2010)- ROW(AD10)+ 1),1))
confirmed with CTRL+SHIFT+ENTER
regards, barry
I suggest this version to count the number of different and visible
=SUM(IF(FREQUENCY(IF(SUBTO
confirmed with CTRL+SHIFT+ENTER
regards, barry
ASKER
Both of these when I paste into the cell cause a #Value! msg to appear in the cell :
=SUM(IF(FREQUENCY(IF(SUBTO TAL(103,OF FSET(O10,R OW(O10:O20 10)-ROW(O1 0),)),O10: O2010),O10 :O2010)>0, 1,0))
=SUM(IF(FREQUENCY(IF(SUBTO TAL(103,OF FSET(AD10, ROW(AD10:A D2010)-ROW (AD10),0)) *(AD10:AD2 010<>""),M ATCH(AD10: AD2010,AD1 0:AD2010,0 )),ROW(AD1 0:AD2010)- ROW(AD10)+ 1),1))
=SUM(IF(FREQUENCY(IF(SUBTO
=SUM(IF(FREQUENCY(IF(SUBTO
entered with CTRL+SHIFT+ENTER?
the formula should be afterwards between curly braces (do not try to type them)
the formula should be afterwards between curly braces (do not try to type them)
ASKER
Rgonzo1971,
It finally dawned on me what/how to do that CTRL+SHIFT+ENTER. It Works!! Thank you!!
It finally dawned on me what/how to do that CTRL+SHIFT+ENTER. It Works!! Thank you!!
ASKER
=SUM(IF(FREQUENCY(IF(SUBTO
Has a error of #Value!
The first one works perfect!, Thanks!