Solved

Excel: find number farthest from 0

Posted on 2011-09-02
5
363 Views
Last Modified: 2012-05-12
Hi,

I have a row of numbers in Excel, such as

       -2, -4, 0, 1 3

I need to return the value that is the farthest from 0.  In this example, -4

how?

thanks
0
Comment
Question by:caherciveen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:Cluskitt
ID: 36473951
Something like:
=MAX(ABS(A1:A10))
0
 

Author Comment

by:caherciveen
ID: 36473961
That returns 4, not -4
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 36473984
Try this

=IF(MAX(A1:A10)>MIN(A1:A10)*-1,MAX(A1,A10),MIN(A1:A10))

regards, barry
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 36473999
Sorry there's a typo in that - should be this version

=IF(MAX(A1:A10)>=MIN(A1:A10)*-1,MAX(A1:A10),MIN(A1:A10))

If you have 4 and -4 in the dataset then it will return the positive number

barry
0
 

Author Comment

by:caherciveen
ID: 36474015
ah, ok, cool
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel formula to calculate ID # 4 41
NEED LOOK FOR NUM 23 29
EXCEL String-handling question ... 7 51
Custom fill series 12 38
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question