#1   Report Post  
Paul
 
Posts: n/a
Default #N/A

=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?


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

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)


"Paul" wrote in message
...
=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?




  #3   Report Post  
Paul
 
Posts: n/a
Default

works perfectly!!

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


-----Original Message-----
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)


"Paul" wrote in

message
...
=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?




.

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

What I know about them I have picked up from within these NGs, but here are
some links that I found

http://office.microsoft.com/en-us/as...872901033.aspx
Introducing array formulas in Excel

http://office.microsoft.com/en-us/as...872911033.aspx
More arrays: Introducing array constants in Excel.

http://www.cpearson.com/excel/array.htm

http://www.ozgrid.com/Excel/arrays.htm

Should get you started.


--

HTH

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


"Paul" wrote in message
...
works perfectly!!

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


-----Original Message-----
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)


"Paul" wrote in

message
...
=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?




.



  #5   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

A bit shorter...

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

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

Paul wrote:
=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?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"