Help with IF MIN and MAX with #N/A

rdriver1

New Member
Joined
Jul 12, 2016
Messages
5
So I need to find the min and max for a column where #N/A will be present. So far i have tried
=MIN(IF(A:A="",0,A:A))
=MIN(IF(NOT(ISNA(A:A)),A:A))
=MIN(IF(ISNUMBER(A:A),A:A))

My outputs keep coming back as #N/A

I need to use the column not specific cell ranges because the data is being brought in from text files of various sizes before filtering

Example:

588690.1116.30.7
588776.31120.7
588864.4111.30.7
588976.3#N/A0.8XYZ
589081#N/A0.8Min#N/A#N/A#N/A
589190.3116.30.8Max#N/A#N/A#N/A
589282.8#N/A0.8
589389.7106.90.8
589486.3#N/A0.8
589585.5126.10.8

<tbody>
</tbody>
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
=MIN(IF(ISNUMBER(A:A),A:A))

should work...

Are you confirming it with CONTRTOL+SHIFT+ENTER (it should be an array formula)?
 
Upvote 0
I strongly recommend that you don't use entire column references within an array formula. Unlike COUNTIF, SUMIF, COUNTIFS or SUMIFS, for example, array formulas calculate over all cells passed to them, whether technically beyond the last-used cells in those ranges or not.

So if, for example, you only have data extending as far as row 1000, then, by referencing an entire column's worth of rows, you are effectively forcing Excel to calculate more than one million rows than are actually necessary, resulting in an astonishingly resource-heavy formula. And that's just for one instance of that formula.

I know you think you're "hedging your bets" by setting such an upper reference, but you're actually doing far more harm than good. Either choose a suitably low, though sufficient, upper bound for the end row being referenced or, even better, makes your ranges dynamic, such that they automatically adjust as your data expands/contracts.

Regards
 
Upvote 0
Hi, if you have XL2010+ you could try the normally entered:

Max: =AGGREGATE(4,6,A:A)
Min: =AGGREGATE(5,6,A:A)
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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