+ Reply to Thread
Results 1 to 7 of 7

Return a value based on multiple references in the row

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Return a value based on multiple references in the row

    In the attached spreadsheet I have data from survey respondents that is all included in one row for each respondent. So for some data I can simply use a VLOOKUP to find because the value is in one unique column. However, for others I need to find the respondent (column A), then find the question description for that respondent (example is column E), topic matching that question description (example is column F), and actual score matching that question description (example is column H).

    I am guessing that I need to use an Index and Match combination but I'm not sure how to structure yet.
    Attached Files Attached Files
    Last edited by Lexshea; 03-28-2013 at 05:06 PM.

  2. #2
    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,933

    Re: Return a value based on multiple references in the row

    Hi and welcome to the forum

    You didnt provide much of a sample to work with (1 record?), nor did you supply any examples of what your expected outcome would be? It would be easier to help if you could provide this for us?

    Im thinking you may be able to do what you want by using a helper(s) to combine the different bits of info and base the search off that?

    index/match syntax is...
    =index(range,row,column)

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Registered User
    Join Date
    03-26-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Return a value based on multiple references in the row

    Sorry I don't have a lot of work sample, it's just that we are trying to design this prior to releasing the survey so this is all I have.

    In the second tab of the attached workbook, I have added a few lines that might help to show the outcome I need. In the first row I inserted the correct value along with a comment showing where that value should come from.

    The struggle is that I will have hundreds of rows for the complete survey and they won't have unique column headers and the data won't always be in the same order in the rows. So I can use a VLOOKUP to find the name but I won't know which column to reference. However, the results for each question will always be in sequential columns so I know that when I find the topic I will want a specific number of rows to the right as the value.

    I hope that makes at least a little sense.
    Attached Files Attached Files

  4. #4
    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,933

    Re: Return a value based on multiple references in the row

    Hi. Thanks for the additional info. I will see if some-one can help with this, maybe you need VBA

    good luck

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Return a value based on multiple references in the row

    1) remove the extra space after "Skill Level" in cell F1.
    2) Put this formula in D2 and copy down and across

    =INDEX(OFFSET('export (45)'!$A$1, MATCH(Output!$A2, 'export (45)'!$A:$A, 0)-1, , , 50), MATCH($C2&" - "&D$1, OFFSET('export (45)'!$A$1, MATCH(Output!$A2, 'export (45)'!$A:$A, 0)-1, , , 50), 0)+3)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  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,933

    Re: Return a value based on multiple references in the row

    Thanks Jerry

  7. #7
    Registered User
    Join Date
    03-26-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Return a value based on multiple references in the row

    Wow, THANK YOU

+ 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