+ Reply to Thread
Results 1 to 4 of 4

Data validation help

  1. #1
    Registered User
    Join Date
    11-07-2019
    Location
    Liverpool
    MS-Off Ver
    365
    Posts
    11

    Data validation help

    Hi

    I would like to prevent users from being enter specific values through data validation.

    The current formula is “=OR(AND(E2="Reference Pressure",OR(J2<0,J2="STD")),AND(E2="Flame Transmission",J2>0))”

    I would like to expand on this so that when “Reference Pressure” is selected in column E, you can either enter “STD” or a value between -20 °C to -60 ° C (Not possible to enter say -10 °C for example)

    Similarly if “Flame transmission” is selected in column D you can either enter “STD” or a value between 60 °C to 220 °C


    Thanks!
    Last edited by Boyley; 11-15-2019 at 04:12 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,453

    Re: Data validation help

    See the yellow banner?
    Then please post a sheet as described

  3. #3
    Registered User
    Join Date
    11-07-2019
    Location
    Liverpool
    MS-Off Ver
    365
    Posts
    11

    Re: Data validation help

    Apologies - i have added a watered down version of the spreadsheet.

    Column D is a drop down box and column J is what i am trying to change to reflect the original post
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-07-2019
    Location
    Liverpool
    MS-Off Ver
    365
    Posts
    11

    Re: Data validation help

    I think i managed it for anybody interested..

    =OR(AND(E2="Reference Pressure",J2<-19,J2>=-80),(AND(E2="Reference Pressure",(EXACT(J2,"STD")))),(AND(E2="Flame Transmission",J2<221,J2>=60)),(AND(E2="Flame Transmission",(EXACT(J2,"STD")))))

    now.. does anybody know how i can make it CAPS only? i.e. unable to enter "std".

    The only text you should be enter in this cell is "STD"



    edit: Nope not managed it. if E2 is blank i can enter whatever text i like in J2!
    Last edited by Boyley; 11-15-2019 at 08:55 AM.

+ 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

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