Counting the number of User Logins per Each Month

Simbiose

New Member
Joined
Oct 15, 2015
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello there,
I can't seem to find or even know what to search for to find a solution to my problem, so I went with creating this thread.
If it's a duplicate, I'm sorry about this and you can point me to a thread that already has the solution and I'll get rid of this one.

I'm trying to find the number of logged users on a ranged date by month, here's a simple example of a table:

1710410075189.png


So, I need a formula that will calculate the number of login attempts, for instance, of user A for each month and then for user B and each month and so on.
These results would need to be displayed on a 3rd column along the table according the user and month.

Is this even doable without using VBA?

Thanks in advance.

P.S. I forgot to mention that I'm using Office 365, which is equivalent for Excel 2016 if not mistaken.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi,

welcome.. so as some simple formulas, you could use something like this :

Book1
DEF
1ABC
2521
32
41
Sheet1
Cell Formulas
RangeFormula
E2E2=COUNTIFS($A$2:$A$21,"1",$B$2:$B$21,"B")
F2F2=COUNTIFS($A$2:$A$21,"1",$B$2:$B$21,"C")
D2D2=COUNTIFS($A$2:$A$21,"1",$B$2:$B$21,"A")
D3D3=COUNTIFS($A$2:$A$21,"2",$B$2:$B$21,"A")
D4D4=COUNTIFS($A$2:$A$21,"3",$B$2:$B$21,"A")


As you have to display (and select 2 criteria each time, its a little unwieldly, but as long as you know the size of your range, and the criteria, you can pretty much copy the formula down.

(and BTW, O365 .. is a whole load more exciting than Xl2016 .. lots of new additions, rather than equivalent....)
cheers
Rob
 
Upvote 0
quite a few ways to do that

are the months - just numbers 1 , 2 , 3 etc or based on a date
anyway
somehting like this

Book10
ABCDEFGHIJ
1monthUser123456
21aa211000
31bb101000
41cc110100
52af010000
62cg001000
72fe000100
83gt000100
93a
103b
114c
124e
134t
141a
151b
162c
172f
183g
193a
Sheet1
Cell Formulas
RangeFormula
D2:D8D2=UNIQUE(B2:B13)
E2E2=COUNTIFS($A$2:$A$100,E$1,$B$2:$B$100,$D2)
F2:J2,E3:J8F2=COUNTIFS($A$2:$A$13,F$1,$B$2:$B$13,$D2)
Dynamic array formulas.
 
Upvote 0
Solution
Thank you both for the time dedicated to investigate and answer my question.
This will surely help.
As both answers work, I've decided to mark etaf's post as the answer as it's a bit more detailed.
 
Upvote 0
Hi, as mentioned earlier - there are many ways. I spent some time on this way, to give just 1 column of output. How does that look for you ?

Book1
ABCD
1monthUserResults
21a1a = 2
31b1b = 2
41e1e = 1
52a2a = 1
62c2c = 2
72f2f = 2
83g3g = 2
93a3a = 2
103b3b = 1
114c4c = 1
124e4e = 1
134t4t = 1
141a
151b
162c
172f
183g
193a
Sheet1
Cell Formulas
RangeFormula
D2:D13D2=LET(data,BYROW(A2:B19,LAMBDA(a,TEXTJOIN("",TRUE,a))),uniqval,UNIQUE(data),results,BYROW(uniqval,LAMBDA(row,SUM(--(row=data)))),UNIQUE(data)&" = "&results)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,984
Members
449,092
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top