+ Reply to Thread
Results 1 to 14 of 14

Data Validation In formula cells

  1. #1
    Registered User
    Join Date
    03-02-2021
    Location
    Johore
    MS-Off Ver
    Pro Plus 2019
    Posts
    17

    Data Validation In formula cells

    good day

    Is it possible to apply a Data Validation in formulated cells?

    Let say cell F4 mine contained below formula

    =IF(D4&E4="","",IF(E4="","",IF(ISNUMBER(SEARCH(D4,E4)),"PASS","NG")))

    How can i stop via validation data if "NG" is the answer?

    thanks

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Data Validation In formula cells

    ??? What do you mean by "stop"? What do you want to happen if NG IS the formula result?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    03-02-2021
    Location
    Johore
    MS-Off Ver
    Pro Plus 2019
    Posts
    17

    Re: Data Validation In formula cells

    hi

    in result column F4 have a formula as i mentioned before how i can practice validation data?

    data.png

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Data Validation In formula cells

    AS previously asked - what do you mean by STOP ?

    You cannot change Data Validation (if understand what you need?)
    Last edited by JohnTopley; 03-05-2021 at 04:37 AM.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Data Validation In formula cells

    Please read the yellow banner at the top of this page on how to attach a file.

    And clear explanation of what is required.

  6. #6
    Registered User
    Join Date
    03-02-2021
    Location
    Johore
    MS-Off Ver
    Pro Plus 2019
    Posts
    17

    Re: Data Validation In formula cells

    ok.

    How can we stop someone who are entering a data when they enter specific text such as "NG" in the cell.
    Before i have using a validation data. Or i have any options to do that.

    thanks
    Last edited by h4ndr1; 03-05-2021 at 05:26 AM.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Data Validation In formula cells

    I THINK (!) the answer is no but you still have not explained what data entry is to be stopped so until you provide a file with clear explanation of "stopped" the question cannot be answered.

  8. #8
    Registered User
    Join Date
    03-02-2021
    Location
    Johore
    MS-Off Ver
    Pro Plus 2019
    Posts
    17

    Re: Data Validation In formula cells

    OK Noted

    i had upload the data. Need a validation data to stop NG in result. Than before need to make sure item is match.

    thanks
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Data Validation In formula cells

    Sorry but I still do not see anything to do with data validation: the cell is either NG, PASS or could be blank

    Repeating post #2: What do you want to happen if NG IS the formula result?

  10. #10
    Registered User
    Join Date
    03-02-2021
    Location
    Johore
    MS-Off Ver
    Pro Plus 2019
    Posts
    17

    Re: Data Validation In formula cells

    Quote Originally Posted by JohnTopley View Post
    Sorry but I still do not see anything to do with data validation: the cell is either NG, PASS or could be blank

    Repeating post #2: What do you want to happen if NG IS the formula result?
    yes there is nothing validation data there. But if NG is the formula result. I want to make people enter back the same item. which mean PASS.
    Before that excel will warn and stop them by pop up message and THEY enter back the right item till PASS.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Data Validation In formula cells

    You will need VBA to do this.

  12. #12
    Registered User
    Join Date
    03-02-2021
    Location
    Johore
    MS-Off Ver
    Pro Plus 2019
    Posts
    17

    Re: Data Validation In formula cells

    Quote Originally Posted by JohnTopley View Post
    You will need VBA to do this.
    thanks

    if you have a code can assist me.

    thanks

  13. #13
    Registered User
    Join Date
    03-02-2021
    Location
    Johore
    MS-Off Ver
    Pro Plus 2019
    Posts
    17

    Re: Data Validation In formula cells

    Quote Originally Posted by h4ndr1 View Post
    thanks

    if you have a code can assist me.

    thanks
    OK resolved

    i am using below code in vba

    Please Login or Register  to view this content.
    all now work as need

    thank you

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Data Validation In formula cells

    Well done!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Formula clears in the data validation cells
    By dineshsachidananda in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-07-2018, 04:53 PM
  2. Data validation to allow blank cells with formula
    By tbrooksy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2017, 12:09 PM
  3. [SOLVED] Table cells data validation with formula and list
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2017, 04:41 PM
  4. Replies: 7
    Last Post: 02-12-2016, 01:54 PM
  5. Replies: 4
    Last Post: 07-03-2014, 02:37 AM
  6. Replies: 0
    Last Post: 02-28-2014, 04:55 PM
  7. Data Validation Formula to compare groups of cells
    By slaro in forum Excel General
    Replies: 5
    Last Post: 01-14-2012, 08:01 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