+ Reply to Thread
Results 1 to 4 of 4

Conditional Vlookup

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2016
    Posts
    1

    Conditional Vlookup

    Good day,

    I have a table containing a field with two values or conditions. I want to create a conditional vlookup to return only names based on one of the two conditions like the last column (Out_Call_Type) on the attached.

    Anyone with an idea on how to go about this?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Conditional Vlookup

    How about including some example data in your file, along with an indication of what you want to get from it?

    Pete

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Conditional Vlookup

    Have you tried a pivot table?
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    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: Conditional Vlookup

    For "P" criteria

    =IFERROR(INDIRECT("B"&SMALL(IF($D$3:$D$14="P",ROW($B$3:$B$14),""),ROW(A1))),"")

    For "T" criteria

    =IFERROR(INDIRECT("B"&SMALL(IF($D$3:$D$14="T",ROW($B$3:$B$14),""),ROW(A1))),"")

    Both are array formulas and must be confirmed with Ctrl+Shift and ENTER

    You also need to remove spaces from D column in order for formulas to work

    B
    C
    D
    E
    F
    G
    2
    Name_Surname
    Dialled_DIGITS
    Out_Call_Type
    3
    Lorna
    453236458
    P
    Lorna Kelly
    4
    ISAAC
    453005468
    P
    ISAAC Chad
    5
    MELISSA
    453639940
    P
    MELISSA Lucy
    6
    Kelly
    462569801
    T
    Whitey Cindy
    7
    Whitey
    534589378
    P
    SYDWELL
    8
    SYDWELL
    167093464
    P
    Kim
    9
    Chad
    237643982
    T
    Cenotia
    10
    Kim
    936945357
    P
    Samantha
    11
    Lucy
    166795646
    T
    12
    Cenotia
    704694128
    P
    13
    Cindy
    644597318
    T
    14
    Samantha
    234236497
    P
    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

+ 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. Conditional Vlookup
    By mido609 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2013, 06:04 AM
  2. [SOLVED] conditional vlookup
    By qwhisper in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 04:30 AM
  3. Conditional Vlookup in VBA
    By Mattxxxxx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2011, 12:28 PM
  4. Conditional VLookup?
    By arun.sharma in forum Excel General
    Replies: 5
    Last Post: 01-19-2007, 01:10 PM
  5. Conditional Vlookup
    By RICKY in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2006, 07:20 PM

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