+ Reply to Thread
Results 1 to 12 of 12

Data Validation Error Message

  1. #1
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Data Validation Error Message

    Dear Community,

    Good Evening........

    Attached is a spreadsheet. On the sheet entitled "scenario" Column B3:151 is a drop down list with a choice between the word "Removed" or leaving the cell "Blank".

    I would like to stop the user entering anything other than "Removed" or "Blank", and should the user try, I would like a msg to pop up.....

    Thanks for your time.
    Attached Files Attached Files
    Last edited by Blake 7; 11-28-2010 at 01:52 PM.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation Error Message

    In the data validation setups, turn on the STOP setting under the Error Alerts tab.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Data Validation Error Message

    Hi JB. Thanks for your response.

    I have tried > Data tab > Data Validation button >Error Alert > ticking show error alert after invalid data is entered > ok

    But I can still enter other stuff.

    Am I missing somthing obvious here!! should I be reallly embarrased!!

    Thanks for your time.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation Error Message

    What did you put for the "STYLE" option in that same window? You want STOP.

  5. #5
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Data Validation Error Message

    Hi JB,

    Quote Originally Posted by JBeaucaire View Post
    What did you put for the "STYLE" option in that same window? You want STOP.
    Thanks for your response, still not working...... Spreadsheet attached, but here are my settings....

    Settings > allow List > Source =status > Error Alert Styl > Stop > OK
    however, i can still write stuff other that the drop down list in the cells

    Any further help appreciated.

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Data Validation Error Message

    Why have you put
    Source:=
    =status
    in as your named list?

    If you change this to
    Source:=
    REMOVED

    Then all is okay
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  7. #7
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Data Validation Error Message

    Hi there, I have put source =status as that is the list name.

    When I tyed Source = Removed I got the error msg "A named range you specified cannot be found"

    anymore ideas? this is driving me to drink!!

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Data Validation Error Message

    Sheet TUS is password protected that is why I missed your named list, It didn't highlight when I called it.

    However with Sheet "Scenario Tool"

    Select B3

    Data Validation > Allow:=
    Please Login or Register  to view this content.
    Source:=
    Please Login or Register  to view this content.
    Check the box:= Apply these changes to all..........

    Seems to work for me, see the attachment.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Data Validation Error Message

    Hi mate, sorry for taking so long to respond, two children!!

    I think I see where the problem arose, my named list contained two cells - one blank and one with the word removed.......

    I have now removed the blank cell, (in fact, i got rid of the list all together) and put source= removed and it works a treat.

    so does that mean that one can't have a blank in a named list and have a data validation warning?

    Hope all well with you, thanks alot for your help. Snowing here!

  10. #10
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Data Validation Error Message

    If you want to have a blank cell as an option, then say your basing your list on what is in A1:A2 A1 being the word removed in a2 you need to have ="" so when you include that in a dropdown, you will have the word removed or a blank cell showing. If you try and put anything other than ="" in the blank option you'll get the error alert
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  11. #11
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Data Validation Error Message

    select the range you want to apply data validation rule.

    Data tab > Data validation

    On setting tab in "Allow" Drop list select "List" and in source type "Removed" without ""..

    Check ignore blank check box (on).

    On the error alert tab, Check the "Allow show error alert after invalid data is entered

    check box (on), select stop in style, Write title and error message to be displaced in the

    error alert

    You can use input message to show a tool tip about the data entry in the cell
    You are done

  12. #12
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Data Validation Error Message

    Hi ScottyLad & Mahju.

    Thanks very much for your help and taking the time to respond... really good stuff.

    Have a good one.

+ 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