Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAX function 1

Status
Not open for further replies.

ab123456

Chemical
Mar 18, 2003
58
ES
I have a sheet that performs calculations on a series of data and then uses the MAX function to identify the highest result.

My problem is that in the range of data in which im trying to find the max I have cells containing #value and #ref. Is there any way that i canignore (or treat as zero) these cells and return the highest value in the other cells?
 
Replies continue below

Recommended for you

You can create a surrogate column that only contains valid numbers, filled with something like:
=IF(ISNUMBER(D17),D17,0)

TTFN

FAQ731-376
 
Thanks for the speedy reply.

Its a sheet that will be used by others in the company so i want to make it as simple to look at and understand as possible so i want to avoid unnecessary columns if i can.

I could always hide the surrogate column but is there a more elegant solution that anybody knows of?
 
Use a array function, it allows to enter neccessary conditions inside. Like:

=MAX(IF(ISNUMBER(B6:B10),B6:B10,0))

Enter it by finishing with ctr-shift-enter key.
 
Thats what im looking for.

I think i need to do a bit of research about array functions.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top