+ Reply to Thread
Results 1 to 12 of 12

How to incorporate validation list in custom validation?

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Question How to incorporate validation list in custom validation?

    I have an excel file, I want to prompt user that the cell B7 is not available while value of cell B4 is "N/A", cell B7 is a drop down list.

    I want to add =ISERROR(SEARCH("N/A",$B$7)) to custom validation in cell B7 but meanwhile I need B7 as a drop down list. How can I make that?

    is there any formula like =if(ISERROR(SEARCH("N/A",$B$7)), prompt error, else let user choose from drop down ?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to incorporate validation list in custom validation?

    hi there. you can try going to B7 & change your Data Validation formula to:
    =IF($B$4="N/A","",transport)

    and in another tab in Data Validation is "Input Message". in there you can type a message that shows when they click on B7. so you can type in the Input Message something like:
    If you select "N/A" in B4, you will not be able to select anything here

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: How to incorporate validation list in custom validation?

    Thanks! but B7 no longer becomes a drop down list. I want it to be a drop down list but also have that "if statement".

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to incorporate validation list in custom validation?

    hmmm what do you mean? B7 is still a dropdown, but you cannot select anything if B4 is "N/A". if you move to B7, you should still see that dropdown icon.

    so what do you want to see in B7 if B4 is "N/A"? "N/A" too?

    your IF statement is incomplete. it is saying if it cannot search for "N/A" in B7.... then what?

  5. #5
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: How to incorporate validation list in custom validation?

    I will be prompted a warning and not able to choose anything in B7 if B4 is "N/A".

  6. #6
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: How to incorporate validation list in custom validation?

    anyone can help plz? tks!

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to incorporate validation list in custom validation?

    Hi

    See if this can helps you.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  8. #8
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: How to incorporate validation list in custom validation?

    Hi Fortis,

    Thanks. I want to allow user manual enter value in B7, but when B4 is "N/A" I want a prompt when entering any value in B7 and not able to select from drop down. but when B4 is not "N/A", user is allowed to choose from drop down in B7 and is able to enter any value in B7.

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to incorporate validation list in custom validation?

    Fotis..Not Fortis..

    1) Manual enter in a validation lisr, cell??
    2)In my suggestion, YES, user is allowed to choose ONLY an option that inform him(her) that can not choose anything..as B4 is N/A.

    See this option. Not allowed to choose anything..
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: How to incorporate validation list in custom validation?

    Thanks again Fotis!

    When B4 is "N/A", user is not allowed to choose anything in B7 and not allowed to enter anything manually in B7.
    When B4 is not "N/A", user is allow to choose from drop down and manually enter any value in B7.
    Last edited by ohlalayeah; 08-07-2012 at 06:01 AM.

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to incorporate validation list in custom validation?

    Sorry. This was my best....I am quit.

  12. #12
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: How to incorporate validation list in custom validation?

    i have corrected my statements in #11

+ 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