+ Reply to Thread
Results 1 to 6 of 6

Data validation to enter specific numbers

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Data validation to enter specific numbers

    Hello everyone
    I have columns E:N and I need to add Data validation to ensure that in E just 1 is accepted & F just 2 is accepted and so on
    I tried this custom formula in DV
    =Column()-4<>E$3

    But it seems not to work as expected
    Thanks advanced for help
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Data validation to enter specific numbers

    What I did was select the entire range
    E4:N39
    Selected data Validation
    Whole number
    equal to
    =column()-4
    then okay.

    Enter something into that range, if is the incorrect number, msg will pop up.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Data validation to enter specific numbers

    That's great Mr. Daves
    I need to prevent the user to enter any value if there is a value in the same row in addition to that

    In other words, if there is a value 5 in I4 then no way to enter another value in the same row (E4:N4) .. Just one entry for that range and so on
    Thanks a lot for help

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Data validation to enter specific numbers

    Good question,
    Obvious VBA, I am not sure how to do that with Data VAlidation.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Data validation to enter specific numbers

    Thanks a lot for the code
    I was imagining it would be possible using Conditional Formatting
    Generally, I liked your solution a lot
    Thank you very much for great help

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Data validation to enter specific numbers

    Thanks a lot for the code
    I was imagining it would be possible using Conditional Formatting
    Generally, I liked your solution a lot
    Thank you very much for great help

+ 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: 11
    Last Post: 12-14-2020, 09:46 AM
  2. [SOLVED] Enter data into a userform text box to show in a specific cell in a specific worksheet
    By Stevecraig211 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2016, 10:02 AM
  3. How to enter specific data.
    By mye_witch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2016, 06:48 PM
  4. Replies: 6
    Last Post: 08-19-2013, 01:00 PM
  5. I need a macro to enter data based on data validation lists.
    By DorothyFan1 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-30-2012, 08:58 AM
  6. [SOLVED] How do i set up data validation to only enter yes or no?
    By renee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2005, 09:05 AM
  7. Replies: 1
    Last Post: 02-01-2005, 01:06 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