Progressive Count of values

bpiereder

New Member
Joined
Aug 26, 2013
Messages
4
Here is an example spreadsheet of what I'm trying to do. I've posted on these other forums too: OzGrid, ExcelForum


I need a way to count how many users there are with views during that or any previous week. This dataset is a typical example (though potentially hundreds of users and hundreds of weeks).


I'm not sure what formula to use here. I tried SUM with COUNT or COUNTIF, SUMPRODUCT, using array, but can't get it to work. I was able to manually create a new formula for each week that works but that's not useful for the size of the data I'm working with.


What formula should I use?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi

Try in B14:

=COUNT(1/FREQUENCY(IF($B$3:B$12<>"",ROW($B$3:B$12)),ROW($B$3:B$12)))

This is an array formula, you have to confirm it with CTRL-SHIFT-ENTER

Copy across
 
Upvote 0
:) Thank you! This worked like a charm:
=COUNT(1/FREQUENCY(IF($B$3:B$12<>"",ROW($B$3:B$12)),ROW($B$3:B$12)))

:) Another solution from @Carim on OzGrid was:
=SUM(N(MMULT(N($B$3:B12>0),TRANSPOSE(COLUMN($B$3:B12)^0))>0))

:) And another with slightly different syntax from @Bo_Ry on ExcelForum worked too:
=SUM(--(MMULT(--$B3:B12,TRANSPOSE(COLUMN($B3:B12)^0))>0))
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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