Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ianthow
 
Posts: n/a
Default Function to lookup largest value

I am looking for a fucntion to lookup the largest value in a bunch of cells
(disregarding whether the value is +ve or -ve) then use the largest value
with its sign (+ve or -ve) and multiply by another cell.

Example:

Value 1 = 34
Value 2 = -38
Value 3 = 0
Value 4 = 12

Value A = 10
Value B = -380

The largest value disregarding the sign is -38 which is Value 2, Value 2 is
then required to multiply by Value 5 which is 10 to get Value 6 which -380.

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Function to lookup largest value

to get the largest sign irrespective of sign

=MAX(ABS(A1:A20))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ianthow" wrote in message
...
I am looking for a fucntion to lookup the largest value in a bunch of

cells
(disregarding whether the value is +ve or -ve) then use the largest value
with its sign (+ve or -ve) and multiply by another cell.

Example:

Value 1 = 34
Value 2 = -38
Value 3 = 0
Value 4 = 12

Value A = 10
Value B = -380

The largest value disregarding the sign is -38 which is Value 2, Value 2

is
then required to multiply by Value 5 which is 10 to get Value 6

which -380.

Thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default Function to lookup largest value

On Fri, 28 Apr 2006 02:05:02 -0700, ianthow
wrote:

I am looking for a fucntion to lookup the largest value in a bunch of cells
(disregarding whether the value is +ve or -ve) then use the largest value
with its sign (+ve or -ve) and multiply by another cell.

Example:

Value 1 = 34
Value 2 = -38
Value 3 = 0
Value 4 = 12

Value A = 10
Value B = -380

The largest value disregarding the sign is -38 which is Value 2, Value 2 is
then required to multiply by Value 5 which is 10 to get Value 6 which -380.

Thanks in advance!



With your values in A1:A4,
and with Value A in A10,

The formula for value B would be:

=INDEX(A1:A4,MATCH(MAX(ABS(A1:A4)),ABS(A1:A4),0))* A10

This is an **array** formula so must be entered by holding down <ctrl<shift
while you hit <enter. Excel will place braces {...} around the formula.

Also, this will use the "first" highest absolute value. So if you have a
positive and a negative value of equal magnitude, the formula will use the one
that occurs first in the list.


--ron
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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Lookup Function Problems FFW Excel Worksheet Functions 2 August 21st 05 04:22 PM
How to overcome LOOKUP function problems? Wendy Excel Worksheet Functions 8 August 9th 05 01:56 PM
lookup function 1 Colboyfx Excel Worksheet Functions 4 July 15th 05 09:15 AM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM


All times are GMT +1. The time now is 01:27 AM.

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"