+ Reply to Thread
Results 1 to 5 of 5

Return the tables column for given row and approx. value

  1. #1
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Return the tables column for given row and approx. value

    Hi,

    I have got a formula in C13 which returns the requested col. number - however, I have a feeling that you will probably find a simple and maybe shorter one.

    As usually, no VBA nor Helper column, please.

    Thanks, Elm
    Attached Files Attached Files
    Last edited by ElmerS; 05-05-2010 at 02:09 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Return the tables column for given row and approx. value

    You could avoid the Volatility and shorten slightly by using INDEX

    =SUM((ABS(INDEX(C4:G8;G12;0)-G11)=MIN(ABS(INDEX(C4:G8;G12;0)-G11)))*C3:G3)
    confirmed with CTRL + SHIFT + ENTER

    The above should also work even if the value is lower than 1st value or greater than last value unlike the present version.

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

    Re: Return the tables column for given row and approx. value

    How about:

    =MATCH(MIN(ABS(INDEX(C4:G8,G12,0)-G11)),ABS(INDEX(C4:G8,G12,0)-G11),0)

    confirmed with CSE
    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.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Return the tables column for given row and approx. value

    Much better - not sure why I didn't think of that - that's 1 oversight each of late I think - your Evaluate to my Array

  5. #5
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Return the tables column for given row and approx. value

    Thank you both.

+ 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