+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP Help

  1. #1
    Registered User
    Join Date
    06-22-2010
    Location
    Indonesian
    MS-Off Ver
    Excel 2013
    Posts
    5

    Exclamation VLOOKUP Help

    Dear excel master...

    I have data like this :
    -------------
    Name | Agree
    -------------
    Apri | YES
    Budi | YES
    Candra | NO
    Doni | YES
    Edi | NO
    -------------

    I want to recap that data like this :
    -------------
    OK | NO
    -------------
    Apri | Candra
    Budi | Edi
    Doni |
    -------------

    I'm using
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    this the result :
    -------------
    OK | NO
    -------------
    Apri | Candra
    Apri | Candra
    Apri | Candra
    -------------

    Help me, and sorry for my bad english... Thank you for help..

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: VLOOKUP Help

    Try this array formula
    Pull formula down and across

    =IF(ROWS($A$1:A1)>COUNTIF($B$2:$B$6,D$1),"",INDEX($A:$A,SMALL(IF($B$2:$B$6=D$1,ROW($B$2:$B$6)),ROWS($A$1:A1))))

    A
    B
    C
    D
    E
    1
    Name Agree YES NO
    2
    April YES April Candra
    3
    Budi YES Budi Edi
    4
    Candra NO Doni
    5
    Doni YES
    6
    Edi NO



    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Lightbulb Re: VLOOKUP Help

    If you are looking to sort names into YES/NO, VLOOKUP won't be very helpful.
    (see attached example)Sort Names.xlsx
    Notes:
    • I've used Text-To-Columns to split the "Name" and "Agree"; and then
    • use IF formula to do the sorting.
    Hope this works for you.

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: VLOOKUP Help

    ... or use the "Expert" Array Formula.

  5. #5
    Registered User
    Join Date
    06-22-2010
    Location
    Indonesian
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: VLOOKUP Help

    Thank you for reply Mr. jewelsharma

    It works!!
    You give me the wonderful answer , from newbie to expert, I prefer to use your second answer, on the first answer i still confuse using array.
    Many thanks to you. And sorry for mt bad english...

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: VLOOKUP Help

    Happy to help mate! Trust you have a desired solution. Kindly mark the thread as SOLVED

    Warm regards,
    Jewel

+ 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. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  2. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  3. [SOLVED] Vlookup is not working and giving =vlookup(B2,$T$2:$U$135,2,false) this kind of values.
    By yogeshsharma1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 04:08 PM
  4. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  5. Replies: 5
    Last Post: 07-29-2009, 07:53 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