+ Reply to Thread
Results 1 to 5 of 5

Closest Value without an array formula

Hybrid View

  1. #1
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Closest Value without an array formula

    Hi, I'm having trouble figuring out how to find the closest value without an array formula.

    I assume there's a helper column involved.

    Anybody know the basic logic? must be back to Vlookup of an average or something...
    Attached Files Attached Files
    Last edited by stockgoblin42; 05-21-2013 at 06:17 PM.
    live logic & long prosper

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Closest Value without an array formula

    In this example we find the value in column A that is closest to the value in D1. We use column B as the "helper column"
    Attached Files Attached Files
    Gary's Student

  3. #3
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Re: Closest Value without an array formula

    nice! thanks, there goes my last CSE formula! Hey, in terms of speed, how big would a helper column have to be to lag like an array formula?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Closest Value without an array formula

    Quote Originally Posted by stockgoblin42 View Post
    in terms of speed, how big would a helper column have to be to lag like an array formula?
    There is calculation timer code here:

    http://msdn2.microsoft.com/en-us/library/aa730921.aspx

    Then you can do the tests and see for yourself.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Closest Value without an array formula

    The helper column is usually pretty quick.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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