+ Reply to Thread
Results 1 to 5 of 5

Broken Lookup

  1. #1
    Registered User
    Join Date
    08-09-2014
    Location
    Florida, USA
    MS-Off Ver
    2003
    Posts
    3

    Broken Lookup

    I have a sheet that is a revolving database. I am using multiple lookup values and look up values based off that. My question is, why is this formula breaking at names that are AB-AM (Beginning)

    =IF(ISERROR(HLOOKUP($A6,Definitions!$A$14:$A$426,MATCH(A$6,Definitions!$A$14:$A$426,0)+1,1)),"",HLOOKUP($A6,Definitions!$A$14:$A$426,MATCH(A$6,Definitions!$A$14:$A$426,0)+1,1))

    This formula works fine on names that are AN or later in order. But it constantly breaks on names that are AM and before that.

    For frame of Reference A6 is the name of the person, and the chart is a list of all names sorted alphabetically by manager.

    Any Idea's please let me know

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Broken lookup

    You are using the final parameter of 1 in your MATCH() functions. This is a fuzzy match, not exact, and can thus have untoward results on data that isn't exactly what it appears to be.

    =IF(ISERROR(HLOOKUP($A6,Definitions!$A$14:$A$426,MATCH(A$6,Definitions!$A$14:$A$426,0)+1,1)),"",HLOOKUP($A6,Definitions!$A$14:$A$426,MATCH(A$6,Definitions!$A$14:$A$426,0)+1,1))



    If this isn't the issue, I'd have to see your formula failing in your workbook to see the problem. You can do what I would do, click on the cell with the formula in it and use the Evaluate Formula feature. I can't tell you where that is in Excel 2003, but it's there.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-09-2014
    Location
    Florida, USA
    MS-Off Ver
    2003
    Posts
    3

    Re: Broken lookup

    Quote Originally Posted by JBeaucaire View Post
    You are using the final parameter of 1 in your MATCH() functions. This is a fuzzy match, not exact, and can thus have untoward results on data that isn't exactly what it appears to be.

    =IF(ISERROR(HLOOKUP($A6,Definitions!$A$14:$A$426,MATCH(A$6,Definitions!$A$14:$A$426,0)+1,1)),"",HLOOKUP($A6,Definitions!$A$14:$A$426,MATCH(A$6,Definitions!$A$14:$A$426,0)+1,1))


    If this isn't the issue, I'd have to see your formula failing in your workbook to see the problem. You can do what I would do, click on the cell with the formula in it and use the Evaluate Formula feature. I can't tell you where that is in Excel 2003, but it's there.
    Went through the tracing of the formula on both the pages it works on, as well as the broken ones. (This formula has worked on 35 pages, and failed on 6) The names are the one consistent link between the working and non functioning names.

    Through the first part is recognizing the name, even the match, and row number of the match. But it is not defining the result as False even though it is finding the data.

  4. #4
    Registered User
    Join Date
    08-09-2014
    Location
    Florida, USA
    MS-Off Ver
    2003
    Posts
    3

    Re: Broken Lookup

    Figured out a way to work around the issue, thx for the idea's

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Broken Lookup

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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. The broken Hyperlink
    By ScoGeosan in forum Excel General
    Replies: 2
    Last Post: 01-17-2014, 10:26 AM
  2. Broken in, In Just Two Weeks
    By Doc Snowfox in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 07-11-2013, 03:31 PM
  3. [SOLVED] Broken Limks
    By Minitman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2005, 12:10 AM
  4. Broken Links....
    By J Hotch in forum Excel General
    Replies: 0
    Last Post: 10-18-2005, 10:05 AM
  5. [SOLVED] i think its broken
    By littlemcl in forum Excel General
    Replies: 1
    Last Post: 10-07-2005, 09:05 AM

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