+ Reply to Thread
Results 1 to 14 of 14

Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    20

    Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    I am working with a datasheet that is essentially a combination of multiple tables (about 75) with different column headers pasted into the same table. I am trying to pull the data over to another spreadsheet and have not had much luck with vlookup and index match due to the structure of the file I am working with. Here is an example of what I am working with.

    Oldsheet

    a b c d
    1 item-no Width Weight Speed
    2 555555 5 20 20
    3 444444 5 22 22
    4 333333 4 25 25
    5 item no Width Height Weight
    6 111111 5 35 55
    7 666555 5 35 44
    8 777888 3 20 22
    9 555444 4 20 30

    I am reorganizing the data on a new sheet with all column headers in row 1 as such:

    newsheet

    a b c d e
    1 item-no width weight height speed
    2 555555 5 20 20
    3 444444
    4 333333

    I need a formula for my newsheet that will look up an item number from the oldsheet. The formula need to return the value from an array at the intersection of the corresponding item number row and a column where "Width" exists for example.

    I need to be able to fill the formula down in each column on my new sheet.

    I have been trying different formulas including index match match, index sumproduct, and index sumproduct row to no avail.

    Any advice with examples would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    Probably you get better help, if you add an excel file, without confidentional information.

    Please also add the desired result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    you have a 2nd set of "headings" 1/2 way down your data, and none of teh item-no's match anything on the newsheet. what is your expectation for that?.

    as suggested, upload a sample work book, (all sensitive data removed), showing what data you are working with, what your expected outcome is, and how you arrived at that

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    chicolocal,

    An index/match/match should work just fine for that. I know you said you tried it already, but can you upload an example workbook so we can see what's going on?

    [EDIT]: I really need to refresh the page before I post, lol
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    09-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    I have attached a sample file. I am not worried about the blanks where the data was not provided, essentially I need all of the spec titles in row 1 and item numbers in column A.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    take your pick...

    =VLOOKUP($A2,oldsheet!$A$2:$M$19,COLUMN(B1),FALSE)
    =INDEX(oldsheet!$A$1:$M$19,MATCH(newsheet!$A2,oldsheet!$A$1:$A$19,0),MATCH(newsheet!B$1,oldsheet!$A$1:$M$1,0))

  7. #7
    Registered User
    Join Date
    09-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    FDibbins, you sir are brilliant! Thank you much!!!!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    lol not really, but thanks though. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

  9. #9
    Registered User
    Join Date
    09-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    20

    Talking Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    Quote Originally Posted by FDibbins View Post
    take your pick...

    =VLOOKUP($A2,oldsheet!$A$2:$M$19,COLUMN(B1),FALSE)
    =INDEX(oldsheet!$A$1:$M$19,MATCH(newsheet!$A2,oldsheet!$A$1:$A$19,0),MATCH(newsheet!B$1,oldsheet!$A$1:$M$1,0))
    FDibbins, thanks again for your reply. I have attached an additional file using the formulas you suggested. The formulas are highlighted in yellow on the 'newsheet' table. Unfortunately it isn't working how I need it to, notice how on the oldsheet table, the spec titles are not all in the same column. For example column M on 'oldsheet' has both headstroke and piston stroke titles. As I fill down the formula, on my newsheet, it pulls the wrong data from the old sheet as it is referencing the column itself, not the intersection point where the item number matches the column containing the text "headscrew".

    As far as I can tell the formula I am looking for might incorporate the sumproduct and or offset formulas, maybe a vlookup/match...

    Thanks again for your help!
    Last edited by chicolocal; 12-10-2012 at 09:00 PM.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    you essentially have 4 different tables there, and I am assuming that you have far more rows in each 1 than you have in the sample you provided?

  11. #11
    Registered User
    Join Date
    09-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    Correct, the attachment is just a sample of what I am working with. I have a couple hundred rows and over 100 columns. The tricky part is that the columns from which I am pulling my data not in order, so column c could have weight, and for other items column c could height.

    Fortunately most of the data is in bunches as you can see on the oldsheet. So far as I can tell I will have to change the array for each "bunch" of data by selecting the data and their headings. I think I can make it work... Was just hoping there would be an easier solution.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    having different headings in different places is not a problem if you use the index/match option - it matches headings no matter what order they are in

    however, having different headings in the different tables IS a problem, because the index/match is based on the very 1st row of headings. is there a way that you can add spaces in the other tables, then add the extra headings to the 1st row so that the data matches up downwards? (if that made sense lol). so in other words can you change I17 to just "capacity", or move that data to N17, move "Max Handle Effort" data to O etc?

    if you can do that, the index/match will work. failing that, maybe we need to look at using named ranges instead, but i dont know how that will work if your data ranges will be increasing over time

  13. #13
    Registered User
    Join Date
    09-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    I ended up appending all the tables into one large table using DigDB, now I am able to sort/filter column data. Thanks again for your help!

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help! Vlookup, Index Match match, sumproduct? Matching text with multiple conditions

    awesome, glad it worked out for you, and happy to help - thanks for the rep too

+ 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