1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

    Yours,
    Chandoo
  2. Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need desire output using Vlookup

Discussion in 'Ask an Excel Question' started by aparvez007, Nov 8, 2018.

  1. aparvez007

    aparvez007 Member

    Messages:
    171
    Hi all,
    I want desire output using vlookup for multiple value in data table.
    Sample attached.


    Thanks
    pAvi

    Attached Files:

  2. bosco_yip

    bosco_yip Excel Ninja

    Messages:
    2,005
    2 criteria Vlookup solution

    In D2, copied down :

    =IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2)=1,VLOOKUP(A2&B2,IF({1,0,0},INDEX(Sheet2!$A$4:$A$6&Sheet2!$B$4:$B$6,0),Sheet2!$A$4:$C$6),3,0),0)

    Regards
    Bosco

    Attached Files:

  3. aparvez007

    aparvez007 Member

    Messages:
    171
    =IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2)=1,VLOOKUP(A2&B2,IF({1,0,0},INDEX(Sheet2!$A$4:$A$6&Sheet2!$B$4:$B$6,0),Sheet2!$A$4:$C$6),3,0),0)

    Formula is not working for my actual data as my data have many column.
    I didn't understand the underlined IF. Please explain.
    and customer number is unique so customer name is not compulsory to concatenate.

    Regards,
    pAvi
  4. bosco_yip

    bosco_yip Excel Ninja

    Messages:
    2,005
    If the formula doesn't working with you, just disregarded it. It is no necessary to give further explanation of the formula.

    Regards
    Bosco
  5. aparvez007

    aparvez007 Member

    Messages:
    171

Share This Page