+ Reply to Thread
Results 1 to 5 of 5

Want to pull value from one sheet to another in matrix with multiple values

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    30

    Want to pull value from one sheet to another in matrix with multiple values

    I have attached a sample file that shows what type of data I am working with.

    I am looking for a way to pull the POSITION values (in column C) from the DATA sheet over to the MATRIX sheet and have POSITION value display in the correct cell based on the ROW (Level) and COLUMN (Function) values from the DATA sheet.

    I have 500 data lines to work with and want to have the Matrix show lists of multiple positions that correspond with each Function and Level. Some cells will have multiple positons which have the same Function and Level combination

    Can anyone let me know a good way to display this and which formulas to use?
    Attached Files Attached Files

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Want to pull value from one sheet to another in matrix with multiple values

    Hi joliver,

    A VLOOKUP will do it.

    In order to have the Formula accept 2 values, I've added the 2 values together with an '&' & have the VLOOKUP look for that.

    The grey shaded Columns have the values I've created for the VLOOKUP & should be hidden once you've had a look at them to see how this works.

    So the values are matched by the Formula & added to the MATRIX sheet.

    Let me know if there's anything else.
    Attached Files Attached Files
    Remember you are unique, like everyone else

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Want to pull value from one sheet to another in matrix with multiple values

    Hello noboffinme,

    This is great. But what if there are multiple values for one combination? For example in my data there are two values for HR 56 and Finance 60. Is it possible to pull multiple values into the one cell in the matrix using the vlookup? Having it pull any POSITION value that has the same FUNCTION and LEVEL values?

  4. #4
    Registered User
    Join Date
    09-11-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Want to pull value from one sheet to another in matrix with multiple values

    I found this link today that has a VBA macro that when added to the spreadsheet allows me to run =multivlookup formula to pull multiple values in to one cell.

    http://bals-brain.com/Multi_vlookup.htm

    However it currently puts " , " in between each value that it returns in the cell.

    Does anyone know how to alter the VBA coding so that it will put the next value in the same cell but below (ie: Alt+enter)

  5. #5
    Registered User
    Join Date
    09-11-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Want to pull value from one sheet to another in matrix with multiple values

    Currently the values show like this in one cell:

    jjjjjjjjjjj, kkkkkkkkkkkk, mmmmmmmm, ooooooooo

    I would like them to show like this in one cell:

    jjjjjjjjjj
    kkkkkk
    mmmm
    ooooooo

    Does anyone have any suggestions? I know the VBA macro if I edit the ", " it will put a different symbol inbetween the values but can't figure out how to make it go down one line. Any suggestions?


    Please Login or Register  to view this content.
    Last edited by Fotis1991; 10-23-2013 at 10:14 AM. Reason: pls use code tags around your codes as per forum rules.

+ 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. [SOLVED] Formula to pull values from one sheet to another
    By HAHOWE88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2013, 12:34 PM
  2. Filling a matrix from paired values in another sheet
    By guest2013 in forum Excel General
    Replies: 2
    Last Post: 08-17-2013, 12:02 PM
  3. Need to pull non-zero values from one sheet to another in a list
    By povictory in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2012, 01:15 PM
  4. [SOLVED] How to pull multiple values
    By sandman85 in forum Excel General
    Replies: 5
    Last Post: 04-15-2012, 10:00 PM
  5. Replies: 8
    Last Post: 02-21-2010, 11:33 AM

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