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.
 
what happened when you tried this formula in cell B1:
Excel Formula:
=MAX(INDEX($A$1:$A$500,((ROW(A1)-1)*50)+1,1):INDEX($A$1:$A$500,((ROW(A1))*50),1))
?

If you put it in other rows, you must subract the appropriate row number, so if you put it in B3, the row statement should be ROW(A3)-3.
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
What language version do you use?
 
Upvote 0
So I tried to use this by adapting the formula to column B but the software gives me an error on the first "$B$1:$B$500".

Same here, I have an error that I don't know how to solve :(
what was the error? Did you put each of the 4 formulas in cells to test them out?
 
Upvote 0
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")
 
Upvote 0
what happened when you tried this formula in cell B1:
Excel Formula:
=MAX(INDEX($A$1:$A$500,((ROW(A1)-1)*50)+1,1):INDEX($A$1:$A$500,((ROW(A1))*50),1))
?

If you put it in other rows, you must subract the appropriate row number, so if you put it in B3, the row statement should be ROW(A3)-3.
I tried that by modifying according to your indication the values (see image), the values indeed start at B3 so I modified as you indicated.

I still have an error and the software highlights the area that causes it problems (see image).
excel-3-png.87091
 
Upvote 0
I tried that by modifying according to your indication the values (see image), the values indeed start at B3 so I modified as you indicated.

I still have an error and the software highlights the area that causes it problems (see image).
excel-3-png.87091
I do not see png3 what post number is it in?
 
Upvote 0
In that case try
Excel Formula:
=MAX(INDEX(A:A;LIGNES(A$1:A1)*100-99):INDEX(A:A;LIGNES(A$1:A1)*100-50))
Good news, there are no more mistakes, I have figures! However, they are not the right ones. I had started to type the formulas by hand for the first cells (the cells with the little green triangle) but the values don't match:
Excel .png
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,204
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