+ Reply to Thread
Results 1 to 6 of 6

Closest value to Cells

  1. #1
    Registered User
    Join Date
    04-24-2007
    Posts
    3

    Closest value to Cells

    Can anyone help with a formula that would go in Cell E to find the value that is closest to Cell A from the results in Cells B:D? Thanks in advance.


    A B C D E
    33446 33641 33624 33400

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try

    =INDEX($B$1:$D$1,MATCH(MIN(ABS($B$1:$D$1-$A$1)),ABS($B$1:$D$1-$A$1),0))

    above assumes data in A1:D1, adjust to suit.

    Formula must be confirmed with CTRL+SHIFT+ENTER not just ENTER
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-24-2007
    Posts
    3
    A=33446 B=33641 C=33624 D=33400 E=___?___

    Sorry didn't paste as I expected.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by r2d2
    A=33446 B=33641 C=33624 D=33400 E=___?___

    Sorry didn't paste as I expected.
    See my suggestion above.

  5. #5
    Registered User
    Join Date
    04-24-2007
    Posts
    3
    Brilliant, thanks very much.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1