+ Reply to Thread
Results 1 to 3 of 3

Return Multiple Values with multiple rows & multiple columns

  1. #1
    Registered User
    Join Date
    07-07-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    18

    Return Multiple Values with multiple rows & multiple columns

    Hi Experts,

    I would like to get multiple values from multiple rows & multiple columns. I try to get multiple values from Vlookup but it will work only with one column. Even same with Hlookup, I can get multiple value from Hlookup but only with single row. I would like to get multiple values with multiple rows & multiple columns.

    I have more than 1000 employees monthly data which gives "P" Present, "A" Absent, "L" Late, "H" Holiday against each date of month. All these data i have on one sheet. On another sheet i have all list of employees and three more column represent "Absent", "Late", "Holiday", now i would like to see on which date such employee was "Absent", "Late", "Holiday".

    for example :

    A B C D E F
    EMP CODE NAME DESG ABSENT LATE HOLIDAY
    100001 X OFFICER 2,8,19 17,22,29 15,30
    100002 Y SUPERVISOR 6,24 10,15,17,20 26
    100003 Z OFFICER 4 11,27 10,19

    I try so many ways, but not success, please assist to solve this problem.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Return Multiple Values with multiple rows & multiple columns

    Hello Sachin,

    That will require VBA. Insert this code in a Module,

    Please Login or Register  to view this content.
    Then use,

    =CONCATIF(INDEX(Sheet1!$E:$AI,MATCH($A2,Sheet1!$A:$A,0),0),"L",Sheet1!$E$1:$AI$1,", ")

    Change "L" for "A" & "H" then copy down & across.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    07-07-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Return Multiple Values with multiple rows & multiple columns

    Hi Haseeb A

    you are talented person .....

    This work perfect...... you solve my problem ... thanks in ton.....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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