PC Review


Reply
Thread Tools Rate Thread

Calculating Max & Min in a negative numbes

 
 
srpavar
Guest
Posts: n/a
 
      30th Jun 2008
i Have a worksheet with these number, when i select maximum from this list
below it give -40.34, i want to -55.25 as maximum and the same for Minimum,
how to get with the formula, can anyone pl help.
-48.94
-53.39
-54.54
-55.25
-49.52
-40.34
Max -40.34
Min -55.25

 
Reply With Quote
 
 
 
 
Jarek Kujawa
Guest
Posts: n/a
 
      30th Jun 2008
=MAX(ABS(A1:A6))

HIH
 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      30th Jun 2008
=MAX(ABS(A1:A6))
=MIN(ABS(A1:A6))

Both of which must be array entered with
Ctrl+Shift+Enter

Mike

"srpavar" wrote:

> i Have a worksheet with these number, when i select maximum from this list
> below it give -40.34, i want to -55.25 as maximum and the same for Minimum,
> how to get with the formula, can anyone pl help.
> -48.94
> -53.39
> -54.54
> -55.25
> -49.52
> -40.34
> Max -40.34
> Min -55.25
>

 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      30th Jun 2008
Max: =MAX(ABS(A1:A6)) as an array formula confirmed with Ctrl+Shift+Enter
Min: =MIN(A1:A6) as a normal formula
Regards,
Stefi


„srpavar” ezt *rta:

> i Have a worksheet with these number, when i select maximum from this list
> below it give -40.34, i want to -55.25 as maximum and the same for Minimum,
> how to get with the formula, can anyone pl help.
> -48.94
> -53.39
> -54.54
> -55.25
> -49.52
> -40.34
> Max -40.34
> Min -55.25
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      30th Jun 2008
That changes the number to absolute so use this instead

=MIN(ABS(A1:A6))*-1
=MAX(ABS(A1:A6))*-1

Once again array entered

Mike

"Mike H" wrote:

> =MAX(ABS(A1:A6))
> =MIN(ABS(A1:A6))
>
> Both of which must be array entered with
> Ctrl+Shift+Enter
>
> Mike
>
> "srpavar" wrote:
>
> > i Have a worksheet with these number, when i select maximum from this list
> > below it give -40.34, i want to -55.25 as maximum and the same for Minimum,
> > how to get with the formula, can anyone pl help.
> > -48.94
> > -53.39
> > -54.54
> > -55.25
> > -49.52
> > -40.34
> > Max -40.34
> > Min -55.25
> >

 
Reply With Quote
 
Spiky
Guest
Posts: n/a
 
      30th Jun 2008
On Jun 30, 4:08 am, srpavar <srpa...@discussions.microsoft.com> wrote:
> i Have a worksheet with these number, when i select maximum from this list
> below it give -40.34, i want to -55.25 as maximum and the same for Minimum,
> how to get with the formula, can anyone pl help.
> -48.94
> -53.39
> -54.54
> -55.25
> -49.52
> -40.34
> Max -40.34
> Min -55.25


Nobody else asked.

Why do you want a simple MIN and MAX to be the same? That has got to
be incorrect no matter what field you are in. If you want to reverse
them to show the ABS of the number as MIN/MAX, then Mike's formulas
are good. But they shouldn't be the same.
 
Reply With Quote
 
joeu2004
Guest
Posts: n/a
 
      30th Jun 2008
On Jun 30, 2:33*am, Mike H <Mi...@discussions.microsoft.com> wrote:
> That changes the number to absolute so use this instead
> =MIN(ABS(A1:A6))*-1
> =MAX(ABS(A1:A6))*-1
> Once again array entered


That presumes that you know you want a negative result. If that's the
case, you might as well simply reverse MIN and MAX. That is, for
negative numbers, the "largest" number (magnitude) is simply
MIN(A1:A6), and the "smallest" number (magnitude) is MAX(A1:A6). No
array-entry required.

What you might have had in mind was something like the following
(committed with ctrl-shift-Enter):

=min(abs(A1:A6))*sign(A1)
=max(abs(A1:A6))*sign(A1)

That persumes that all the signs of A1:A6 are the same, so it does no
matter which one we look at. Of course, the OP's question makes
little sense if we don't make this assumption in the first place.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating % based on negative divisor Alisheba Microsoft Access Reports 1 8th Aug 2008 07:39 AM
Calculating and posting when a qty will go negative. Gene Haines Microsoft Excel Worksheet Functions 0 5th Nov 2007 05:54 PM
Calculating negative time. =?Utf-8?B?QnJpYW4=?= Microsoft Excel Misc 4 7th Apr 2005 08:37 PM
Calculating growth with negative numbers =?Utf-8?B?VHNpcGk0bWU=?= Microsoft Excel Worksheet Functions 2 29th Dec 2004 05:17 PM
Re: Calculating right placed negative signs Frank Kabel Microsoft Excel Worksheet Functions 9 24th Mar 2004 11:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:51 AM.