Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Maximum negative number

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Maximum negative number

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

"Tigerxxx" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Maximum negative number

thanks a lot!

"Mike H" wrote:

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

"Tigerxxx" wrote:

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.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
finding maximum, minimum in a range consists both Positive and Negative numbers Praveen Excel Worksheet Functions 3 May 4th 23 07:45 PM
Maximum length of a number Pé Excel Worksheet Functions 1 October 31st 06 11:42 AM
How can I show a maximum number? JoeD Excel Discussion (Misc queries) 6 February 24th 06 01:48 PM
getting the number of the row with the maximum value hilbert Excel Discussion (Misc queries) 3 April 5th 05 01:06 PM
2003= negative number&2004= negative number How Do I Calculate gro Jason Excel Worksheet Functions 1 January 14th 05 05:24 PM


All times are GMT +1. The time now is 01:35 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"