Dynamic Array for Count

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,168
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I am looking for a dynamic array for this count, any help would be appreciated! Thanks in advance!!!
VBA Top 50.xlsm
AB
1Dynamic Array
21274395
32245000
43175000
54172910
64172910
75169480
86167833
96167833
106167833
117164762
127164762
138161762
148161762
158161762
168161762
178161762
188161762
199159168
209159168
219159168
229159168
2310156399
2410156399
2510156399
2611155804
2711155804
2811155804
2911155804
3011155804
3111155804
3211155804
3311155804
3411155804
3511155804
3611155804
3711155804
3811155804
3911155804
4011155804
4111155804
4211155804
4311155804
4411155804
4511155804
4612153038
4712153038
4812153038
4912153038
5013149803
5114149725
5214149725
5314149725
5414149725
5514149725
5614149725
5714149725
Sheet2
Cell Formulas
RangeFormula
A2:A57A2=SUM(IF(B2<$B$2:$B$57,1/COUNTIF($B$2:$B$57,$B$2:$B$57)))+1
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about this?

SIV
ABCD
1OriginalDynamic ArrayLambda
2127439511
3224500022
4317500033
5417291044
6417291044
7516948055
8616783366
9616783366
10616783366
11716476277
12716476277
13816176288
14816176288
15816176288
16816176288
17816176288
18816176288
19915916899
20915916899
21915916899
22915916899
23101563991010
24101563991010
25101563991010
26111558041111
27111558041111
28111558041111
29111558041111
30111558041111
31111558041111
32111558041111
33111558041111
34111558041111
35111558041111
36111558041111
37111558041111
38111558041111
39111558041111
40111558041111
41111558041111
42111558041111
43111558041111
44111558041111
45111558041111
46121530381212
47121530381212
48121530381212
49121530381212
50131498031313
51141497251414
52141497251414
53141497251414
54141497251414
55141497251414
56141497251414
57141497251414
Sheet2
Cell Formulas
RangeFormula
C2:C57C2=SCAN(0,SEQUENCE(ROWS(B2:B57)),LAMBDA(s,c,IF(c=1,1,IF(INDEX(B2:B57,c-1)<>INDEX(B2:B57,c),s+1,s))))
D2:D57D2=SIV(B2:B57)
A2:A57A2=SUM(IF(B2<$B$2:$B$57,1/COUNTIF($B$2:$B$57,$B$2:$B$57)))+1
Dynamic array formulas.
 
Upvote 0
What exactly is SIV?
 
Upvote 0
It was the dynamic array formula wrapped in a lambda
 
Upvote 0

Forum statistics

Threads
1,215,236
Messages
6,123,799
Members
449,127
Latest member
Cyko

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