+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Help in writing formula to return value closest to a specified value for a horizontal arry

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    1

    Help in writing formula to return value closest to a specified value for a horizontal arry

    Hi,

    I have tried to use the following formula to return a value from a horizontal array closest to a specified value:

    =INDEX(CMTable,MATCH(MIN(ABS(CMTable-E111)),ABS(CMTable-E111),0),1)

    However, this function only works for certain horizontal array. Any way to ensure that this works for any horizontal array?

    Thanks so much!

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

    Re: Help in writing formula to return value closest to a specified value for a horizontal

    Can you elaborate on what you mean by:
    Any way to ensure that this works for any horizontal array?
    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.

+ 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