Link to home
Start Free TrialLog in
Avatar of Saqib Husain
Saqib HusainFlag for Pakistan

asked on

Max() function to circumvent error condition

I need to get the maximum of A1:C1. One or more of the values could be text or error condition. Please give me a formula to ignore the error cells and if all three are error then return a blank.
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

You may try this Array Formula...

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

Open in new window

Avatar of Saqib Husain

ASKER

Cannot without array or VBA?
Can you use IFERROR on the entries in A1:C1 to return zero?

I'm sure that MAX ignores Text entries
No, has to remain as-is
ASKER CERTIFIED SOLUTION
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks both

Roy,

I was going to post this formula as it did the job for me

MAX(IFERROR(A1,0),IFERROR(B1,0),IFERROR(C1,0))

but now I have replaced it with your formula.
Pleased to help. I remembered using AGGREGATE in the past for ignoring hidden rows, but it is a very useful Function.
Thumbs up!