+ Reply to Thread
Results 1 to 5 of 5

Dificulty finding the right combination for a complex lookup.

  1. #1
    Registered User
    Join Date
    05-19-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    5

    Dificulty finding the right combination for a complex lookup.

    I am having a difficult time with a look up. It would be very hard to explain so I'll attach a copy of the section of the worksheet that the problem lies on with comments so you can see whats going on. The problem there is a numbered list with a reference number i can't seem to figure out a lookup that will look in the chart above and find the row associated to the reference number and according to how many before it have that reference number find a secondary reference number listed in the column above. The attachment should clear it up. Any help is appreciated!
    Attached Files Attached Files
    Last edited by jamesyoung79; 05-20-2009 at 07:13 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Problem with a difficult lookup Please Help!

    Welcome to the forum, james.

    Please take a few minutes to read the forum rules, and then edit your thread title accordingly.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-19-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Dificulty finding the right combination for a complex lookup.

    modified the title to make it more descriptive, also I put better description of problem in the post.

  4. #4
    Registered User
    Join Date
    05-19-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Dificulty finding the right combination for a complex lookup.

    Well after much work (2days on one formula) I finally figured it out. Although, I had to adjust my data to make it work. The chart I was referring to had to be spaced out with a row of the indexing in between each row of data. Also, the table had to be extended to the right to include a 0 before each data set and the index numbers below the data shifted one cell to the left. This is because hlookup dosn't have a way to specify which row to read from it chooses the first one automaticly(unless someone knows a way around it?). The formula to solve it is below(if anyone cares or has a similar problem).
    Please Login or Register  to view this content.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Dificulty finding the right combination for a complex lookup.

    It's thoughtful of you to post back with your solution, thank you.

    We'll try to do better for you next time. Looking at both your workbook and solution, though, I can't tell what the problem was, and there's no chart in it.

    Even so, I think the formula simplifies to

    =IF(A42="","", HLOOKUP(C42-1, OFFSET($E$17, 2 * (B42 - 1), 0, 2, 27) ,2)

    ... but OFFSET is volatile, so you could use

    =IF(A42="","", HLOOKUP(C42-1, INDEX($E$17:$E$36, 2 * (B42 - 1)):INDEX($AE$18:$AE$36, 2 * (B42 - 1) + 2), 2) )

+ 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