Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dan dan is offline
external usenet poster
 
Posts: 866
Default Max absolute number

I am looking for the biggest absolute number in a range.
For example:
-20
3
50
40
I hope to get 20 as a result

I tried max(ABS(D2:D5)) but that does not work.
Of course I can use an intermedite range and fiirst convert all my data to
ABS then do a max - but I hope there is another way.

Many thanks.

Dan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Max absolute number

Dan,

Use your formuala, but enter it using Ctrl-Shift-Enter. And you really should hope to get 50.

But if you really want 20, then perhaps

=ABS(MIN(D2:D5))

entered as a regular formula?

HTH,
Bernie
MS Excel MVP


"Dan" wrote in message
...
I am looking for the biggest absolute number in a range.
For example:
-20
3
50
40
I hope to get 20 as a result

I tried max(ABS(D2:D5)) but that does not work.
Of course I can use an intermedite range and fiirst convert all my data to
ABS then do a max - but I hope there is another way.

Many thanks.

Dan



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Max absolute number

As Bernie said, you could use your formula provided you entered it using
Cntl+Shift+Enter instead of just Enter. If you want a formula that only uses
Enter (so you won't worry about forgetting the Cntl+Shift+Enter requirement
in future editing sessions), you could give this formula a try..

=MAX(MAX(D2:D5),-MIN(D2:D5))

Rick


"Dan" wrote in message
...
I am looking for the biggest absolute number in a range.
For example:
-20
3
50
40
I hope to get 20 as a result

I tried max(ABS(D2:D5)) but that does not work.
Of course I can use an intermedite range and fiirst convert all my data to
ABS then do a max - but I hope there is another way.

Many thanks.

Dan


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
Display absolute value of complex number GraemeD Excel Discussion (Misc queries) 1 October 31st 06 03:23 AM
HOW DO I CHANGE A FORMULA INTO AN ABSOLUTE NUMBER? sylviane Excel Discussion (Misc queries) 2 September 29th 06 06:56 AM
Convert displayed number to absolute value jmorris305 Excel Discussion (Misc queries) 3 February 28th 06 01:27 AM
How do I convert hh:mm:ss to an absolute number (26:01:32 to 26)? Fernando Excel Discussion (Misc queries) 1 December 1st 05 05:02 PM
Absolute Worksheet reference number Tony M Excel Discussion (Misc queries) 4 March 21st 05 06:10 PM


All times are GMT +1. The time now is 04:16 AM.

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

About Us

"It's about Microsoft Excel"