+ Reply to Thread
Results 1 to 10 of 10

Need help on Data Validation

  1. #1
    Registered User
    Join Date
    07-12-2021
    Location
    Ohio
    MS-Off Ver
    MS365
    Posts
    4

    Need help on Data Validation

    Hello all,

    I will not be adding all of the details to save time but if anything more is needed, please let me know. So here is my issue: I am creating a mixing schedule for my Cosmetics Department. The headers I am stuck on are the "Status" column and the "Stop Time" column. The status column will show where in the mixing process the mixer is at. The Stop time column will show what time the mix was completed at.

    I would like to have a drop down list, using data validation, to the "Status" column with the following options: Scheduled, Pending, Delayed, Running, Finished. (Finished my change to "Completed". Still undecided) <-This is completed.

    I would like to have the "Finished" option, only able to be selected if the "Stop Time" column has a time inputted. Otherwise, I would like an error to pop up say "Finished option only available if "Stop Time" has value" or something along those lines.


    Is this possible?

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,244

    Re: Need help on Data Validation

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    Please update your forum profile: your Excel version is MS365.
    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.

  3. #3
    Registered User
    Join Date
    07-12-2021
    Location
    Ohio
    MS-Off Ver
    MS365
    Posts
    4

    Re: Need help on Data Validation

    Thank you! I've updated the Excel version on my profile!

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,244

    Re: Need help on Data Validation

    Great. Can you now attach a sample workbook?

  5. #5
    Registered User
    Join Date
    07-12-2021
    Location
    Ohio
    MS-Off Ver
    MS365
    Posts
    4

    Re: Need help on Data Validation

    Is the sample workbook a requirement?

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,244

    Re: Need help on Data Validation

    No, but having dummy data to work with makes it much easier for your helpers, who are giving freely of their time. It saves them having to create their own dummy data in order to help you.

    It's up to you - you are likely to get help faster with one. I rarely help without one unless it's something very basic, because I may well interpret the description of the workbook incorrectly.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,662

    Re: Need help on Data Validation

    Because the question was simple I spent a minute to mock up a file for you, but usually you will save everybody time by attaching your own file, since it already exists. This shows you how to do it, now you will need to adapt it to your actual file.

    This rule refers to a list of status values, and uses an IF to determine whether Finished should be included.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  8. #8
    Registered User
    Join Date
    07-12-2021
    Location
    Ohio
    MS-Off Ver
    MS365
    Posts
    4

    Re: Need help on Data Validation

    Oh wow...HAHA a simple IF with true and false. I appreciate it. My issue was I was trying to include All of the options in the dropdown list with an error showing if finished was selected without a value in the Stop column but I see, why over-complicate things. Thank you very much!


    This will work. I am still curious though about the method I was asking about. Maybe I could just have an error box pop up when the cell is clicked on? I think that would accomplish the same thing.

    Thanks again!

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,662

    Re: Need help on Data Validation

    To have an error pop up if the cell is clicked on would probably require VBA. I can show you that if you want but I don't think you need to get that complicated for the problem you described. The rule of thumb for user interfaces is to put controls in as early in the process as possible, to prevent the user from entering the wrong thing in the first place.

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,034

    Re: Need help on Data Validation

    Create named range for "Finished" and "List", then in the Data Validation, use "List" and put formula under "Source": =IF(B2<>"",Finished,List)
    Attached Files Attached Files

+ 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. [SOLVED] VBA to Prevent Data Entry in Cell with Data Validation List - Two Criteria Validation
    By AliGW in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-25-2019, 11:48 AM
  2. Replies: 1
    Last Post: 01-14-2018, 11:04 AM
  3. Multi-select from data validation isn't working with auto-assigning data validation
    By iPenguin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2017, 12:37 PM
  4. Replies: 3
    Last Post: 06-04-2015, 02:27 PM
  5. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  6. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  7. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 PM

Tags for this Thread

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