+ Reply to Thread
Results 1 to 8 of 8

Failed Lookup based on small function

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Failed Lookup based on small function

    G’day Excel forum having a bit of a problem performing a lookup based on the ‘SMALL’ function and could use a hand, I’ve attached an example spreadsheet so my nonsensical ramblings make more sense.

    I’m attempting to calculate the ‘point ID’ (Distance Array column B rows 10 – 17) value of the nth (Point ID lookup sheet column B) closest point (Point ID lookup column E) by finding the nth smallest value in the corresponding range (Point ID lookup column C) on the Distance Array sheet. While this works perfectly for most points some don’t seem to work at all, the values exist in the subject range so I’m not sure why the lookup keeps returning ‘#N/A’.

    Does anyone out there have any idea what’s going on here? The only thing I can think of is some kind of rounding error.

    More importantly does anyone have any idea how to resolve this issue?
    Attached Files Attached Files

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Failed Lookup based on small function

    try this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Failed Lookup based on small function

    the reason is ,for example range
    'Distance Array'!$K$10:$K$17

    12.36931688
    4.582575695
    0
    8.831760866
    13.78404875
    20.85665361
    27.22131518
    34.2928564
    for lookup to work needs to be in ascending order
    the index match will work fine
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    09-30-2013
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Failed Lookup based on small function

    how do I upload an xls here?

  5. #5
    Registered User
    Join Date
    09-30-2013
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Failed Lookup based on small function

    I can't load an attachment... anyway...
    In Point ID Lookup sheet:
    since your data is nor organized, I changed the subject range to 'Distance Array'!$I$10:$P$17 (entire C column).

    It worked for me
    Last edited by maria_valeria23; 09-30-2013 at 07:46 AM.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Failed Lookup based on small function

    @ maria_valeria23

    Welcome to the forum.

    If you want to upload a file offering one more suggestion to this, then use.

    For attaching a sample workbook.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    If you want to make a question pls start your own thread.

    My suggestion is to take a look to forum rules and you'll find answer for all youe questions.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Registered User
    Join Date
    09-30-2013
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Failed Lookup based on small function

    Hi Fotis
    I did exactely what you suggested before asking the question. I use the browser at work, and it does not allow me to upload anything. no need for a new thread I was just trying to answer the question above using an xls.
    Thank you for your help, anyway! :D

  8. #8
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Failed Lookup based on small function

    Thank you all for your prompt responses and my apologies that mine has not been, I’d have replied sooner but have been overseas, Debraj Roy can’t thank you enough for your solution mate it worked flawlessly.

    Regards
    MattRNR

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Dynamic Range For "SMALL" Function Then Offset LookUp
    By david.nicholls in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-08-2013, 07:15 AM
  2. [SOLVED] Very small AutoFill macro showing "AutoFill methode of range class failed" why ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 10:21 PM
  3. [SOLVED] Problem with a small lookup database ..... ???
    By Rokku in forum Excel General
    Replies: 1
    Last Post: 01-24-2006, 10:40 AM
  4. [SOLVED] lookup going left based on function
    By Ted Metro in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. [SOLVED] lookup going left based on function
    By bj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM

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