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 :-

[TABLE="width: 169"]
<tbody>[TR]
[TD]10[/TD]
[/TR]
[TR]
[TD]8[/TD]
[/TR]
[TR]
[TD]2[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]3[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]31[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]2

The length of the column is about 500 rows.

Thanks for any support on this issue.[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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