+ Reply to Thread
Results 1 to 5 of 5

Getting cell content based on multiple columns of data (Vlookup? IndexMatch?)

  1. #1
    Registered User
    Join Date
    07-29-2016
    Location
    Oklahoma City, OK
    MS-Off Ver
    2010
    Posts
    11

    Getting cell content based on multiple columns of data (Vlookup? IndexMatch?)

    I have a spreadsheet that has 4 basic row entries, but duplicated across thousands of users. Each row entry has the name of training they need to take (or have taken) and a date of last completion (or blank cell if not completed).

    I need to move those dates to a new worksheet, with the corresponding column for the training title and in the same row as the user they belong to.

    A mockup spreadsheet is here: http://www.disabledveteran.net/sampl...gworksheet.xls

    I've read through the other posts on this topic, but am having trouble understanding how to do this.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Getting cell content based on multiple columns of data (Vlookup? IndexMatch?)

    You can do this with a pivot table built on the source data. Take a look at Sheet1. I suggest you reconstruct the pivot table yourself to see how it's put together. Do a web search on tabular formats. I think 2010 has that as an option although you will have to go through and turn off subtotals under Field Values.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    07-29-2016
    Location
    Oklahoma City, OK
    MS-Off Ver
    2010
    Posts
    11

    Re: Getting cell content based on multiple columns of data (Vlookup? IndexMatch?)

    Right - except I then need to use the results in a VLOOKUP formula on a different worksheet. Can you VLOOKUP a Pivot table?

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Getting cell content based on multiple columns of data (Vlookup? IndexMatch?)

    You can use a pivot table for VLOOKUP. You can define it as a named dynamic range. In this case, I created a name Lookup_Source =OFFSET(Sheet1!$A$4,0,0,COUNTA(Sheet1!$A:$A)-1,COUNTA(Sheet1!$4:$4))

    Here is more information about how to make a named dynamic range: http://www.utteraccess.com/wiki/Offs...Dynamic_Ranges.

    Then you can do things like =VLOOKUP(Value,Lookup_Source,2,False)

    BTW: I managed to cut the size of the workbook from 5.5 MB to 18 KB. You got something ugly after row 49. I deleted all those rows and the workbook shrunk dramatically.
    Attached Files Attached Files

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Getting cell content based on multiple columns of data (Vlookup? IndexMatch?)

    The other option, depending on what you are doing is to use INDEX and MATCH against the original source data.

+ 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. Formula to show content in a cell based on criteria in multiple columns
    By thesmallwonder in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-15-2015, 06:31 PM
  2. vlookup and sumif - based on cell content
    By ln2012 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2013, 06:25 PM
  3. [SOLVED] Fetch Data: Return Multiple Rows based on Cell Content
    By pdreyest in forum Excel General
    Replies: 8
    Last Post: 09-24-2012, 12:43 AM
  4. VLOOKUP based on cell content
    By garyi in forum Excel General
    Replies: 17
    Last Post: 02-27-2012, 09:44 PM
  5. Average IF two columns (based on content of another cell)
    By garwil in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2011, 12:21 PM
  6. Replies: 5
    Last Post: 10-01-2010, 05:00 AM
  7. Replies: 2
    Last Post: 12-19-2006, 10:50 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