+ Reply to Thread
Results 1 to 8 of 8

Multi input lookup?

  1. #1
    Registered User
    Join Date
    09-20-2010
    Location
    Springfield, Mo
    MS-Off Ver
    Excel 2003
    Posts
    4

    Multi input lookup?

    Hey guys,
    I'm sure this issues has been discussed before but I'm not really sure what to look for. I have a large file of 6000+ rows and need to be able to transpose the data for the use that I need. I attached a file with a small section of the data that I'll be working with

    I have three columns. The first two I need to use as the inputs and the third is result.

    Base Example Example.
    Model+componentDesc=component

    In use example
    5SME39CQLB001+PM MAGNET=24A103280-P02

    I'll have 800+ model numbers and 65 different componentDesc. Sorry for how simple this is... I've just never had to use this information before.
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Multi input lookup?

    5SME39CQLB001+PM MAGNET=24A103280-P02
    What is the logic here? Can you describe why adding the first to results in the third? I see no connection, really.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Multi input lookup?

    Welcome to the Forum,

    Your example needs more clarification on what you desired results should be.

  4. #4
    Registered User
    Join Date
    09-20-2010
    Location
    Springfield, Mo
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multi input lookup?

    Sorry,
    I'm not really adding them. I just didn't have another way of explaining it.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Multi input lookup?

    I think I see what you mean now, although you don't describe it. You want to lookup the component based on the user entering Model and componentDesc.

    With F3 holding Model and G3 holding componentDesc, you can retrieve the component with this formula

    =INDEX(C:C,MATCH(F3&G3,INDEX(A:A&B:B,0),0))

  6. #6
    Registered User
    Join Date
    09-20-2010
    Location
    Springfield, Mo
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multi input lookup?

    teylyn,
    You're exactly right. Again, sorry for my ignorance in being able to describe my issue, this isn't my field of expertise.

    I entered the formula that you mentioned and I’m not getting component result that I’m looking for. Am I entering something incorrectly?

    I attached two files. The first titled “simple example” is the example I posted with the initial post with the formula and the #NUM! result.

    The second file titled “building material level one(small)” is the file I’ll be using for work with all my data. I’ll be entering the formula in cell B3 which will reference the model from A3 and componentDesc from B2. The array will be located in the DATA sheet.

    Any help is greatly appreciated
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-20-2010
    Location
    Springfield, Mo
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multi input lookup?

    Second file won't upload..."Database error" I'll try again later.

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Multi input lookup?

    If you use this formula across sheets, i.e. with the formula in one sheet and the table in another, you need to assign range names to the data in columns A and B. Two range names

    model =Data!$A$1:$A$1000
    componentDesc =Data!$B$1:$B$1000

    then use something like

    =INDEX(Data!$C$1:$C$1000,MATCH(F3&G3,INDEX(model&componentDesc,0),0))

    where F3 and G3 are in the same sheet as the formula and are the cells where you enter model number and description.

+ 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