+ Reply to Thread
Results 1 to 13 of 13

If & Vlookup in a dropdown

  1. #1
    Registered User
    Join Date
    07-29-2020
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    41

    If & Vlookup in a dropdown

    Hi,
    Is there a way we can include If and Vlookup in a drop-down list?
    Example :

    List of Roles : NA, System Eng
    Competency : List, C1/C2

    When selecting NA there should be a drop-down which give 20 different values but when there is anything else but NA, a vlookup will give an exact match to that role.

    Please help.
    Thank you!
    Last edited by RashmiD2930; 07-31-2020 at 06:32 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,454

    Re: If & Vlookup in a dropdown

    Please post a sample sheet ( see yellow banner)

  3. #3
    Registered User
    Join Date
    07-29-2020
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    41

    Re: If & Vlookup in a dropdown

    PFA a sample, thanks!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    07-29-2020
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    41

    Re: If & Vlookup in a dropdown

    Thank you for reverting.
    Couple of links are not available, may be they are country specific.
    The other two are dependent drop-downs.
    I want to add an IF and VLOOKUP functions and create a DataValidation-Drop-down.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If & Vlookup in a dropdown

    For cell C4 you want a dependent drop-downlist.

    In the link(s) is explained how you can make them.

    For the other option you can make also a dependent drop-downlist.

  7. #7
    Registered User
    Join Date
    07-29-2020
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    41

    Re: If & Vlookup in a dropdown

    I am afraid, thats not giving me the right solution.
    Could you please use my sample sheet and share your solution.
    Thanks!

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

    Re: If & Vlookup in a dropdown

    Hello Rashmi,

    I am not sure is this you needed.

    Use the below formula in the data validation Source: then apply to other cells.

    =INDEX($P:$P,MATCH(C4,$O:$O,0))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  9. #9
    Registered User
    Join Date
    07-29-2020
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    41

    Re: If & Vlookup in a dropdown

    Thanks Haseeb. But this formula I've already used in Data Validation and it gives one to one value.
    I want a drop down from Column P3:P7 when C4 is NA in Cell D4.
    Is there a way to this in Cell D4 - If(C4 = "NA", Dropdown(from col P), else vlookup(C4 in column P)

  10. #10
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,155

    Re: If & Vlookup in a dropdown

    @Haseeb;

    In case of cell C4 is "NA" then the full list must be populated. So, this may be better;

    Please Login or Register  to view this content.

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

    Re: If & Vlookup in a dropdown

    Try with IF Rashmi,

    =IF(C4="NA",P$2:P$7,INDEX($P:$P,MATCH(C4,$O:$O,0)))

  12. #12
    Registered User
    Join Date
    07-29-2020
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    41

    Re: If & Vlookup in a dropdown

    This works Haseeb!! thanks a ton!

    Best Regards,
    Rashmi

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,573

    Re: If & Vlookup in a dropdown

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Dropdown and Vlookup
    By rededdie in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-31-2019, 05:19 PM
  2. Vlookup Dropdown
    By ChristianGrant in forum Excel General
    Replies: 2
    Last Post: 07-13-2015, 05:10 PM
  3. Vlookup+Dropdown
    By beseda2004 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-30-2011, 07:24 AM
  4. vlookup from dropdown
    By jw01 in forum Excel General
    Replies: 8
    Last Post: 03-10-2011, 03:16 PM
  5. dropdown + vlookup?
    By lordbeta in forum Excel General
    Replies: 7
    Last Post: 01-13-2010, 01:44 PM
  6. Dropdown & Vlookup
    By Eagleye in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2007, 05:52 AM
  7. DropDown from vlookup
    By RobertLees in forum Excel General
    Replies: 2
    Last Post: 11-27-2005, 05:50 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