Maximum negative number

T

Tigerxxx

Hello,

In Excel 2007, I have a range of positive and negative numbers:
Example: -5,-4,-3,-2,0,1,4,6,7....etc.
I want to select the maximum of the negative numbers i.e. "-2" in the above
example using a formula. How should I write the formula?

Please advise.
 
T

Tigerxxx

thanks a lot!

Mike H said:
Hi,

Try this array formula

=MAX(IF(A1:A20<0,A1:A20))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike
 

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

Top