+ Reply to Thread
Results 1 to 14 of 14

Using INDEX + MATCH to Fill Data from one sheet to another.

  1. #1
    Registered User
    Join Date
    02-05-2015
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    27

    Using INDEX + MATCH to Fill Data from one sheet to another.

    I've done some searching around on this forum and via google to try and find a solution to my problem but I couldn't get anything I found to work with me.

    I'm very new to using INDEX + MATCH to accomplish my Excel goals, but am very quickly learning it's value, and am pretty sure it's the only way (aside from VBA, but I don't want that), to get what I want accomplished.

    I am looking to try and pull data from one worksheet into another based on the value of a single cell. This is easily accomplished using vlookup, but since the data sheet I'm pulling from has hundreds and hundreds of rows, and not everything will always be in order on the data sheet, vlookup leaves blank spaces throughout the entirety of my sheet. I want all matching data to be filled in at the top.

    Via the spreadsheet I've attached, whenever Column B on 'DataSheet' changes to "New Work", I want the Work Order number to fill in automatically in column A on the New Work. I can use vlookup from there to fill in the rest of the information. With the way I've written up the formula, it doesn't populate past the first instance of "New Work", and I'm not sure how to have it add each instance only once.

    This is my code.
    Please Login or Register  to view this content.
    What do I need to do?

    All help is appreciated.
    Attached Files Attached Files
    Last edited by SabbathXXL; 02-13-2015 at 03:19 PM. Reason: Problem was solved.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Try this regular formula in A21 on your New Work sheet and pull formula to the right and then down

    adjust ranges if need it

    =IFERROR(INDEX('Data Page'!A:A,AGGREGATE(15,6,ROW('Data Page'!$B$2:$B$100)/('Data Page'!$B$2:$B$100="New Work"),ROWS(A$1:A1))),"")
    Attached Files Attached Files
    Last edited by AlKey; 02-13-2015 at 01:01 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    02-05-2015
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Thank you! This works exactly as I needed it to. I do have one question however. It seems as though this formula takes a while for excel to figure out (I say a while, it takes like, 7 seconds). On the actual spreadsheet I use it for, I only have it populating 50 rows. Is there a reason I should expect to be experiencing this? Is there possibly a less-intensive solution?

    Just being picky at this point. Thanks a bunch for the help.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Quote Originally Posted by SabbathXXL View Post
    On the actual spreadsheet I use it for, I only have it populating 50 rows
    Hi.

    By that do you mean that you've copied the formula down to a total of 50 rows?

    And what about the references being passed to the function? How many rows' worth of data do they cover?

    Regards
    Click * below if this answer helped

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

  5. #5
    Registered User
    Join Date
    02-05-2015
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Quote Originally Posted by XOR LX View Post
    Hi.

    By that do you mean that you've copied the formula down to a total of 50 rows?

    And what about the references being passed to the function? How many rows' worth of data do they cover?

    Regards
    Yeah, I have the formula copied 50 rows down. I only use this formula to find the Work Order number for anything labelled as "New Work" on the main worksheet. For any other information, I just have vlookup pull the info using the Work Order number.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Thanks, but what about my other question?

    Regards

  7. #7
    Registered User
    Join Date
    02-05-2015
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    At the moment, 232, but this number increases by 1-15 rows nearly every week.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Thanks.

    In that case those formulas should take no time at all to calculate.

    Could you just post one of them so that I can be doubly sure?

    Regards

  9. #9
    Registered User
    Join Date
    02-05-2015
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Post one of the formulas?

    Please Login or Register  to view this content.
    That's from the actual spreadsheet I use it for in it's first instance, cell A2

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Quote Originally Posted by XOR LX View Post
    And what about the references being passed to the function? How many rows' worth of data do they cover?
    Quote Originally Posted by SabbathXXL View Post
    At the moment, 232, but this number increases by 1-15 rows nearly every week.
    Quote Originally Posted by SabbathXXL View Post
    Please Login or Register  to view this content.
    Not sure I understand. That formula is not referencing 232 rows' worth of data; it's referencing 1,048,576.

    By referencing entire columns (unlike Alkey's solution, which went up to row 100 for all but the initial range passed to INDEX, which is the only one which should be an entire column reference), you are putting an incredible amount of extra resource into calculating even just a single one of those formulas.

    Does your data really extend beyond row one million? Where did your 232 come from?

    Regards

  11. #11
    Registered User
    Join Date
    02-05-2015
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    The reason I upped it from a range of rows within a column to the entire column is because I couldn't know how large my list will be over time. I have 232 rows containing the information I want from it, but I still had it looking at the entire column. I've done this with most of the other formulas in my worksheet and it still ran beautifully. I limited the equation to 500 rows and it did work instantaneously once again, so that was a good catch. I've just never had a problem with that in the past, didn't think to approach that solution.

  12. #12
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Perhaps the other formulas you were using were not array formulas.

    Most functions can accept entire column references with no detriment to performance, including e.g. COUNTIF(S)/SUMIF(S), etc., though array formulas are forced to calculate over every single cell within the range passed, whether technically beyond the last-used cell in that range or not.

    And by array formula I mean not just those which require CTRL+SHIFT+ENTER, but also the likes of SUMPRODUCT, LOOKUP and AGGREGATE (which actually are array formulas, required keystroke combination aside).

    Regards

  13. #13
    Registered User
    Join Date
    02-05-2015
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    Yeah, that makes perfectly reasonable sense. With the performance issue settled, this thread has taken care of all of my problems. Thanks to you and AlKey for helping me out.

    Take care.

  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using INDEX + MATCH to Fill Data from one sheet to another.

    You're welcome!

+ 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. Replies: 9
    Last Post: 11-07-2014, 07:10 AM
  2. [SOLVED] How can I use VLook UP or Index to fill in data from another sheet?
    By matt323 in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 12-29-2013, 11:38 PM
  3. look up on sheet 1 match data sheet 2 and fill in cell on first sheet
    By treborharris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-28-2013, 01:01 PM
  4. index/match return data from one sheet to another
    By pauldaddyadams in forum Excel General
    Replies: 9
    Last Post: 10-08-2012, 06:12 AM
  5. Match Index from Data sheet to Individual Sheet
    By dawnmau in forum Excel General
    Replies: 5
    Last Post: 06-21-2010, 02:47 PM

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