#N/A

P

Paul

=Max(A1:A20) returns #N/A when one or more of the cells in
the series contains #N/A.

Is there a way to cause the formula to overlook the #N/A
and return the maximum value? Or, is there another
function that would accomplish this?
 
B

Bob Phillips

Paul,

This is an array variation of the formula

=MAX(IF(NOT(ISNA(A1:A20)),A1:A20))

commit it with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
P

Paul

works perfectly!!

where can i learn about writing array formulas - have no
clue about that realm of excel.
 
B

Bob Phillips

A

Aladin Akyurek

A bit shorter...

=MAX(IF(ISNUMBER(A1:A20),A1:A20))

which you need to confirm to control+shift+enter instead of just with enter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

wdActiveEndSectionNumber 1
Help With VLOOKUP 2
match formula 2
Multiple VLOOKUP in an IF statement 2
Newbie Help - IF Yes No Function 0
Bugs in Office 2019 0
Adding a big matrix in Word 2013 5
ISERROR on VLOOKUP 3

Top