+ Reply to Thread
Results 1 to 7 of 7

Return Column Number Based on Two Criterias

  1. #1
    Registered User
    Join Date
    07-19-2010
    Location
    Bucharest
    MS-Off Ver
    Office 2007
    Posts
    29

    Return Column Number Based on Two Criterias

    Hi All;

    I'm stuck again. What I'm trying to do is to write a formula which will return column number of a specific value by matching two criteria.

    On Sheet2 I have employee name and their test results next to them (C12:D93)

    On Sheet1 I have their names and the results of their 5 tests (G12:L62)

    Now, what I need to see on Sheet2 E12 is the result in cell D12 belongs to which test. I hope I was able to describe it sufficiently.

    I've tried VLOOKUP, INDEX and MATCH with no success and I'm totally lost now.

    My last try was the following with no success;

    Please Login or Register  to view this content.
    Thanks a lot in advance for your help.

    Regards

    tac

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Return Column Number Based on Two Criterias

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-19-2010
    Location
    Bucharest
    MS-Off Ver
    Office 2007
    Posts
    29

    Re: Return Column Number Based on Two Criterias

    Hi Sir;

    Thanks a lot for the prompt answer. Please find here attached the sample workbook. Hope it's the way you've asked.

    Regards;

    tac
    Attached Files Attached Files

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: Return Column Number Based on Two Criterias

    Try this:
    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Registered User
    Join Date
    07-19-2010
    Location
    Bucharest
    MS-Off Ver
    Office 2007
    Posts
    29

    Re: Return Column Number Based on Two Criterias

    Dear Sir bebo;

    Works like a charm! Thanks a lot for the help, really appreciated. You're great

    Regards;

    tac

  6. #6
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Return Column Number Based on Two Criterias

    hi
    =INDEX(Tests!$I$12:$L$61,MATCH(Finals!C12,Tests!$G$12:$G$61,0),Finals!E12)
    Appreciate the help? CLICK *

  7. #7
    Registered User
    Join Date
    07-19-2010
    Location
    Bucharest
    MS-Off Ver
    Office 2007
    Posts
    29

    Re: Return Column Number Based on Two Criterias

    Thanks a lot for your time and answer AZ-XL.

    Solution you've offered gives circular reference. I think because of the usage of "E12". bebo's solution works.

    Thanks a lot anyway. Appreciate it.

    Regards;

    tac

+ 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. Return column header based on column criteria and number value
    By bwill22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2014, 07:33 PM
  2. [SOLVED] Return first value (duplicates) based on multiple criterias
    By krdka in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-15-2013, 06:11 PM
  3. Return first value (duplicates) based on multiple criterias
    By krdka in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2013, 04:46 PM
  4. [SOLVED] Return MAX date based on two criterias
    By cedequ in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-04-2013, 05:11 AM
  5. Replies: 4
    Last Post: 07-24-2008, 11:41 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