Hi Excel Experts,
I found this awesome formula from below URL:-
http://www.mrexcel.com/forum/excel-...e-non-error-non-blank-values-range-cells.html
The contributed formula counts how many unique values in rows and omits errors and blanks. However, this only applicable for one column. What I'm trying to achieve is something extra. I need to calculate how many Users (based on User ID) that access a system on the same date. So, my count must consider the date as well before populates output. Below is my data:-
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]UserID[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]V03751X[/TD]
[TD]14/3/2016[/TD]
[/TR]
[TR]
[TD]V03751X[/TD]
[TD]15/3/2016[/TD]
[/TR]
[TR]
[TD]V04046X[/TD]
[TD]14/3/2016[/TD]
[/TR]
[TR]
[TD]V03658X[/TD]
[TD]15/3/2016[/TD]
[/TR]
[TR]
[TD]V03751X[/TD]
[TD]14/3/2016[/TD]
[/TR]
[TR]
[TD]V03752X[/TD]
[TD]14/3/2016[/TD]
[/TR]
</tbody>[/TABLE]
So, on date 14/3/2016, the result should be 3 and on 15/3/2016 should be 2.
I tried below, but returned error or '0' :-
=SUM(IF(1-ISERROR($J$16:$J$21),IF($J$16:$J$21<>"",1))/COUNTIFS($K$16:$K$21,$K21,$J$16:$J$21,$J$16:$J$21&""))
with Ctrl+Shift+Enter
=SUM(IF(FREQUENCY(IF(1-ISERROR($J$16:$J$21),IF($J$16:$J$21<>"",AND(MATCH(K16,$K$16:$K$21,0),MATCH("~"&$J$16:$J$21,$J$16:$J$21&"",0)))),ROW($J$16:$J$21)-ROW($J$16)+1),1))
with Ctrl+Shift+Enter
Appreciate your expertise.
Thank you in advance.
DZ
I found this awesome formula from below URL:-
http://www.mrexcel.com/forum/excel-...e-non-error-non-blank-values-range-cells.html
The contributed formula counts how many unique values in rows and omits errors and blanks. However, this only applicable for one column. What I'm trying to achieve is something extra. I need to calculate how many Users (based on User ID) that access a system on the same date. So, my count must consider the date as well before populates output. Below is my data:-
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]UserID[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]V03751X[/TD]
[TD]14/3/2016[/TD]
[/TR]
[TR]
[TD]V03751X[/TD]
[TD]15/3/2016[/TD]
[/TR]
[TR]
[TD]V04046X[/TD]
[TD]14/3/2016[/TD]
[/TR]
[TR]
[TD]V03658X[/TD]
[TD]15/3/2016[/TD]
[/TR]
[TR]
[TD]V03751X[/TD]
[TD]14/3/2016[/TD]
[/TR]
[TR]
[TD]V03752X[/TD]
[TD]14/3/2016[/TD]
[/TR]
</tbody>[/TABLE]
So, on date 14/3/2016, the result should be 3 and on 15/3/2016 should be 2.
I tried below, but returned error or '0' :-
=SUM(IF(1-ISERROR($J$16:$J$21),IF($J$16:$J$21<>"",1))/COUNTIFS($K$16:$K$21,$K21,$J$16:$J$21,$J$16:$J$21&""))
with Ctrl+Shift+Enter
=SUM(IF(FREQUENCY(IF(1-ISERROR($J$16:$J$21),IF($J$16:$J$21<>"",AND(MATCH(K16,$K$16:$K$21,0),MATCH("~"&$J$16:$J$21,$J$16:$J$21&"",0)))),ROW($J$16:$J$21)-ROW($J$16)+1),1))
with Ctrl+Shift+Enter
Appreciate your expertise.
Thank you in advance.
DZ
Last edited: