Finding the Max number in a filtered list.

Graham C1600

Board Regular
Joined
Feb 17, 2018
Messages
96
Office Version
  1. 365
Hi,

Can somebody confirm the easiest way to find the maximum number in an excel column. The data in the column is filtered and there are also some Vlookup returns in the column so the columns will look something like this :-

10
8
2
#N/A
5
3
#N/A
3
#N/A
#N/A
1
2
#N/A
31
#N/A
2

The length of the column is about 500 rows.

Thanks for any support on this issue.

<tbody>
</tbody><colgroup><col></colgroup>
 

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.
are you on XL2010 or later? then try



Excel 2010
ABC
1numbers31
210
38
42
5#N/A
65
73
8#N/A
93
10#N/A
11#N/A
121
132
14#N/A
1531
16#N/A
172
Sheet30
Cell Formulas
RangeFormula
C1=AGGREGATE(14,7,A2:A17,1)
 
Upvote 0
you can try the subtotal() function that ignore hidden cells

=SUBTOTAL(104,A:A)
 
Last edited:
Upvote 0
Thanks for this it worked a treat. However is it possible to do this count based on certain criteria on other columns ? Say i had data in column D but not in all the cells, let's say cells D6 through to D13 had the word Yes in there. Can i get the max number in column A if column D=Yes ?

Thanks
 
Upvote 0
Thanks for this it worked a treat. However is it possible to do this count based on certain criteria on other columns ? Say i had data in column D but not in all the cells, let's say cells D6 through to D13 had the word Yes in there. Can i get the max number in column A if column D=Yes ?

Thanks
 
Upvote 0
Thanks for this it worked a treat. However is it possible to do this count based on certain criteria on other columns ? Say i had data in column D but not in all the cells, let's say cells D6 through to D13 had the word Yes in there. Can i get the max number in column A if column D=Yes ?

Thanks



Excel 2010
ABCDEF
1numberscondition10
210yes
38
42
5#N/A
65yes
73yes
8#N/Ayes
93yes
10#N/Ayes
11#N/Ayes
121yes
132yes
14#N/A
1531
16#N/A
172
Sheet6
Cell Formulas
RangeFormula
F1{=MAX(IFERROR(SUBTOTAL(109,OFFSET(A2,ROW(A2:A17)-ROW(A2),0)),0)*(D2:D17="yes"))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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