Increment cells in a specific way

Nathaaan30

New Member
Joined
Mar 8, 2023
Messages
15
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. MacOS
  3. Web
Hello, I have a fairly specific question and not knowing how to formulate it, I did not find an answer on the internet.

Let's take a B1 cell, I want in this box B1 to have the maximum value among the values of A1:A50, so I write =MAX(A1:A50).

Now in my next box (B2), this time I want to have the maximum value of boxes A100:A150.

The problem is that by using autofill, the software writes =MAX(A2:A51) and not =MAX(A100:A150).

I tried to "fix" the dozens and units of my colones with a $ (with =MAX(A0$1:A0$50) but it doesn't work, so I rely on you.

Thank you in advance.
 
Here is a worksheet with every other row being MIN or MAX, I stopped the copy at 250 rows, but you can take it for as many rows as you need.

mr excel questions 13.xlsm
ABCDEFG
1765014MIN$A$1$A$50
212950245MAX$A$51$A$100
31635023MIN$A$101$A$150
410650250MAX$A$151$A$200
5195014MIN$A$201$A$250
624950249MAX$A$251$A$300
72275010MIN$A$301$A$350
87950248MAX$A$351$A$400
91395012MIN$A$401$A$450
1023550250MAX$A$451$A$500
11365016MIN$A$501$A$550
122650241MAX$A$551$A$600
13835011MIN$A$601$A$650
1418850241MAX$A$651$A$700
152165017MIN$A$701$A$750
161450242MAX$A$751$A$800
172175016MIN$A$801$A$850
1816050248MAX$A$851$A$900
192445017MIN$A$901$A$950
2016450250MAX$A$951$A$1000
21165MIN
22207MAX
2398MIN
2425MAX
25176MIN
26156MAX
27112MIN
28132MAX
2996MIN
30104MAX
31166MIN
32138MAX
33193MIN
34109MAX
35108MIN
36231MAX
37248MIN
38144MAX
3980MIN
40147MAX
41237MIN
42188MAX
43151MIN
44126MAX
45233MIN
4642MAX
4765MIN
48130MAX
49100MIN
50200MAX
51106MIN
5266MAX
53171MIN
5493MAX
5531MIN
5691MAX
57245MIN
5871MAX
5946MIN
60180MAX
61202MIN
62223MAX
6325MIN
6439MAX
6590MIN
66139MAX
67196MIN
6881MAX
69234MIN
70139MAX
7196MIN
72200MAX
73223MIN
74165MAX
75143MIN
76161MAX
7776MIN
78211MAX
7913MIN
80208MAX
8164MIN
82178MAX
83161MIN
8487MAX
85211MIN
86209MAX
87107MIN
88141MAX
8924MIN
9025MAX
91106MIN
92180MAX
93162MIN
94240MAX
95175MIN
96102MAX
97235MIN
98214MAX
99194MIN
100221MAX
101191MIN
102218MAX
103101MIN
10469MAX
105219MIN
106121MAX
10734MIN
108172MAX
109137MIN
110174MAX
111129MIN
112239MAX
11323MIN
11454MAX
115153MIN
116229MAX
11798MIN
118209MAX
119113MIN
12064MAX
121189MIN
122217MAX
123207MIN
124222MAX
125229MIN
126148MAX
127119MIN
128226MAX
129244MIN
130147MAX
131216MIN
132129MAX
133208MIN
13470MAX
135106MIN
136151MAX
13779MIN
138223MAX
139164MIN
140205MAX
141130MIN
142191MAX
143199MIN
14497MAX
145117MIN
14646MAX
14740MIN
14834MAX
149183MIN
150206MAX
151167MIN
15287MAX
153227MIN
154102MAX
155140MIN
156174MAX
15763MIN
158147MAX
159250MIN
160139MAX
16165MIN
162142MAX
163162MIN
164175MAX
165149MIN
166120MAX
167120MIN
168175MAX
169241MIN
17024MAX
171132MIN
172214MAX
173162MIN
174160MAX
175178MIN
17682MAX
17718MIN
17884MAX
179242MIN
18073MAX
18148MIN
182115MAX
18335MIN
184168MAX
185145MIN
186116MAX
187120MIN
188154MAX
189244MIN
190224MAX
191234MIN
192143MAX
19351MIN
194140MAX
19571MIN
196220MAX
197107MIN
198199MAX
199145MIN
20081MAX
201186MIN
20277MAX
203238MIN
204249MAX
20523MIN
20644MAX
20724MIN
208133MAX
209178MIN
210107MAX
211187MIN
212250MAX
213197MIN
21466MAX
215198MIN
216126MAX
217178MIN
218200MAX
219171MIN
22030MAX
221121MIN
22251MAX
22396MIN
22441MAX
225170MIN
226229MAX
22782MIN
22843MAX
229234MIN
23097MAX
23144MIN
23215MAX
233191MIN
234240MAX
23586MIN
23692MAX
23757MIN
238129MAX
239188MIN
240219MAX
241229MIN
242210MAX
243167MIN
244229MAX
24514MIN
24673MAX
24760MIN
248218MAX
24986MIN
250139MAX
Sheet9
Cell Formulas
RangeFormula
B1:B20B1=COUNT(INDEX($A$1:$A$1000,((ROW(A1)-1)*50)+1,1):INDEX($A$1:$A$1000,((ROW(A1))*50),1))
C1:C20C1=IF(ISEVEN(ROW(A1)-1),MIN(INDEX($A$1:$A$1000,((ROW(A1)-1)*50)+1,1):INDEX($A$1:$A$1000,((ROW(A1))*50),1)), MAX(INDEX($A$1:$A$1000,((ROW(A1)-1)*50)+1,1):INDEX($A$1:$A$1000,((ROW(A1))*50),1)))
E1:E20E1=CELL("address",(INDEX($A$1:$A$1000,((ROW(A1)-1)*50)+1,1)))
F1:F20F1=CELL("address",INDEX($A$1:$A$1000,((ROW(A1))*50),1))
D1:D250D1=IF(ISEVEN(ROW(A1)-1),"MIN","MAX")
From what I see on your document, this is more or less what I want to achieve, the only difference being that the values are in column B (from B3). I will try to transpose this to my document but I still wonder if there is a way to avoid using so many columns.
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Here it is according to your images:
It is only 250 rows but the formula is for 1000.
I've also changed the formula to an aggregate function, which is less typing.
But it is still MIN and MAX formulas. (Odd Rows are MIN, Even Rows are MAX)

mr excel questions 13.xlsm
ABC
1Masse A
2tx(t)
39413MIN
4215441MAX
516429MIN
613441MAX
78115MIN
8279431MAX
939817MIN
10166450MAX
1126115MIN
12388441MAX
137916MIN
14291445MAX
1523911MIN
1614448MAX
174124MIN
18331439MAX
194311MIN
20127428MAX
21158
22279
23358
24190
2599
26370
2725
28206
29277
30195
31205
32414
33171
3491
3519
36152
37417
3887
3933
40227
4135
42252
43272
44250
45187
46101
47144
48217
49290
50399
51161
52111
53424
54315
5564
56397
57358
58162
59352
60208
6170
62423
63426
64203
65246
66351
67406
68339
6955
70437
7195
72336
73214
74247
75435
76305
77441
78187
79156
80420
81382
82228
83160
84418
85356
86154
87305
88167
89109
90102
91249
92257
9373
94421
95159
96306
97149
98375
99330
100387
101196
10249
103387
104138
105388
106446
10729
10854
109384
110375
111409
112392
113304
11453
11541
116227
117413
118145
119254
120338
121340
12269
123424
124148
125326
126346
12756
12835
12951
13049
131420
132353
13386
134348
135264
136169
137112
138240
13953
140313
141330
142447
143147
14495
145240
146381
147315
148126
149231
150288
151176
152336
15355
15474
155318
156374
15724
158176
15931
16058
161370
162118
163171
164233
165259
166143
16744
168403
169131
17086
17130
172339
173344
174170
175386
176379
177344
178308
179111
180297
181441
18210
183341
184321
185197
18629
18740
188430
189235
19087
19136
19296
193437
194289
19524
196392
197401
198365
199397
200362
201134
20295
203313
204241
205201
206310
20729
208193
209428
210184
211361
212224
213308
21450
215210
216139
217226
218371
21915
220183
221104
222332
223145
224404
225237
226186
227427
228278
22998
230155
23130
232200
233261
234379
235123
236282
237326
238448
23987
240245
241300
242122
243408
244161
245340
246195
247371
248235
249133
250435
251192
252186
Sheet9
Cell Formulas
RangeFormula
A3:A1002A3=RANDARRAY(1000,1,10,450,1)
B3:B20B3=AGGREGATE(IF(ISEVEN(ROW(B3)),4,5),4, INDEX($A$3:$A$1002,((ROW(B3)-3)*50)+1,1):INDEX($A$3:$A$1002,((ROW(B3)-2)*50),1) )
C3:C20C3=IF(ISEVEN(ROW(A3)-1),"MIN","MAX")
Dynamic array formulas.
 
Last edited:
Upvote 0
Can you post some sample data?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

The formula I supplied works for me.
Fluff.xlsm
ABCDE
1
2
3183243243
4184248248
5102250250
6174239
732243
89372
9660
101420
112270
12181
13218
14191
1559
1619
17243
1849
19224
20197
21234
22130
2381
2436
25241
2682
2761
28164
29121
3033
31151
32222
33173
34124
3543
36146
3779
3823
39181
4062
41120
4289
4328
44184
45195
46146
4796
48159
4968
50142
51195
52220
5339
54175
55107
5684
5730
5843
59222
60211
6111
62215
6360
64154
65159
66107
67248
68107
69176
70130
7152
72205
73133
74226
7585
76162
77116
78206
79134
80128
81119
8259
83177
84125
8522
86215
87157
88211
89193
9019
91177
9224
9385
94101
9550
96118
97246
9825
99218
10063
10186
102205
10321
104230
105117
10615
107241
108181
109211
110131
11117
11269
113207
114194
115225
116105
117239
11810
11950
120173
12144
122118
12398
124153
125130
12656
127140
12825
12956
130168
131174
13235
133237
134184
135195
136159
137248
13839
139103
14093
14145
14283
14371
144185
145240
14670
14724
148170
149210
150191
151110
15213
153101
15452
15586
156248
157243
158230
159135
16082
161239
16216
163100
16460
16597
166211
16717
168211
16958
170198
171143
172241
173168
174166
175157
176173
17756
178112
17967
18046
181208
18225
183235
18423
18554
186114
187247
188132
189156
190210
19177
19228
19350
19472
19560
19613
197138
198217
199192
200173
201163
202203
20365
204193
205171
206218
20718
208170
209206
210241
21112
212227
213157
214202
21559
216119
21736
218220
21930
220103
221186
222136
22378
224203
225179
226182
227182
228245
22953
230129
23158
232250
233214
23484
23577
23692
237118
238195
23990
24087
24135
242213
24358
24432
245137
246217
24776
248229
249152
250214
Main
Cell Formulas
RangeFormula
D3D3=MAX(B1:B50)
D4D4=MAX(B101:B150)
D5D5=MAX(B201:B250)
E3:E11E3=MAX(INDEX(B:B,ROWS(B$3:B3)*100-99):INDEX(B:B,ROWS(B$3:B3)*100-50))
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,206
Members
453,022
Latest member
RobertV1609

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