Return maximum whole number from column of data

Frog1

New Member
Joined
Dec 31, 2024
Messages
3
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Greetings All!

I have a column of data (column A) in which there are whole numbers (1,2,3...etc) and other numbers that may be negative and contain decimal points. I attach a sample of the data. Can someone help with an excel formula that would return the maximum whole number and NOT to include any negative number or that contains a decimal point and then add '1' to this maximum number and paste it below the data column of interest. eg from the sample data the maximum whole number value is '7' [from row 53] -- therefore I wish to insert the number '8' into cell A61. One may notice that the data column follows a similar pattern: there is a 'blank' cell followed by a whole number then three more 'blank' cells then a varying number of cells that contain negative numbers and/or numbers with decimal points, then a blank cell and the pattern is repeated. NB these are blank cells are not empty but contain a formula. I hope I have managed to explain the question clearly and....oh yes "A Happy New Year"


A
1
21
3
4
5
63.26
77.806
8
92
10
11
12
13-0.74
142.413
1513.04
1610.72
17
183
19
20
21
2213.98
23-0.08
246.376
2516.54
2611.94
27
284
29
30
31
3210.05
33
345
35
36
37
3824.93
399.227
405.226
41-1.7
42
436
44
45
46
47-2.94
483.71
496.15
503.744
515.092
52
537
54
55
56
579.77
586.466
5911.36
60
61
 
Hello Kaper and Hagia (hope I got that right)

The "all in one" formula didnt work as I kept on getting a '#value' error. However the 'Aggregate' formula with a subtle adjustment worked well. I should have mentioned when I posted the question that the data in the column A was related to other cells with specific formula (a bit too complicated to fully explain). Also, though I had only illustrated one column of data with 7 similar patterns (as in the column A) there were other columns of data with 12 and 16 similar patterns. So it was a generic formula that I was after. As In said the Aggregate formula was fine.....thank you all for the help.

Frog1
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,225,316
Messages
6,184,245
Members
453,223
Latest member
Ignition04

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