+ Reply to Thread
Results 1 to 14 of 14

Cell Entries Validation

  1. #1
    Registered User
    Join Date
    11-02-2021
    Location
    Wellingborough, England
    MS-Off Ver
    office 365
    Posts
    64

    Cell Entries Validation

    Hi All. I need to determine a YES or NO condition if Documents OK in column G, if the relevant cells coloured by filter selection in Column A are populated with data. Thanks in advance.
    Attached Files Attached Files
    Last edited by Kellyscoffee; 11-02-2021 at 11:14 AM.

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Cell Entries Validation

    Welcome to the forum.

    Based on your description and NO mocked-up results (!), try this:

    =IF(A2="","No","Yes")
    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
    11-02-2021
    Location
    Wellingborough, England
    MS-Off Ver
    office 365
    Posts
    64

    Re: Cell Entries Validation

    Sorry Ali, in the case of filtered condition cell A2, I need to determine if document details have been added to cells E2 and F2 to then state in G2 that documents are OK with a Yes. So if cell E2 is populated and F2 is not populated then documents OK is No. Hope this helps.

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Cell Entries Validation

    Yes, I suspected you had not stated the case clearly enough!

    Try this:

    =IF(A2="","",IF(AND(A2<>"",OR(E2="",F2="")),"No","Yes"))

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,528

    Re: Cell Entries Validation

    One way, G2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down.

    You can simplify your Conditional Formatting a lot. Please see the updated example.
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Registered User
    Join Date
    11-02-2021
    Location
    Wellingborough, England
    MS-Off Ver
    office 365
    Posts
    64

    Re: Cell Entries Validation

    Great that works perfectly TMS. Thanks AliGW for your assistance. Much appreciated.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,528

    Re: Cell Entries Validation

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  8. #8
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Cell Entries Validation

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

    Also, if you have not already done so, 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 all those who offered help.

  9. #9
    Registered User
    Join Date
    11-02-2021
    Location
    Wellingborough, England
    MS-Off Ver
    office 365
    Posts
    64

    Re: Cell Entries Validation

    Sorry not quite finished. If the filter cell A2 is blank and does not have any filter condition applied, how does the formula change to negate the use of Yes or No in documents ok in G2?

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,528

    Re: Cell Entries Validation

    Not sure exactly what you are looking for. If there is nothing in column A, my formula will return blank in column G. And the CF formulae will clear the formatting.

    What do you want to happen? You didn’t have any examples of "error" conditions.

  11. #11
    Registered User
    Join Date
    11-02-2021
    Location
    Wellingborough, England
    MS-Off Ver
    office 365
    Posts
    64

    Re: Cell Entries Validation

    Hi TMS, yes the formatting does clear. But lets take a cell in column A where the filter has been applied and I delete the filter so the cell is empty, the result in column G will say NO, whereas I would like this blank in this condition. Hope that helps?

  12. #12
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Cell Entries Validation

    As I suggested in my second formula:

    =IF(A2="","",your_formula)

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,528

    Re: Cell Entries Validation

    Ah, I guess you are talking about Ali's formula as that returns blank, yes or no. Mine will only return blank (if it is blank if column A is blank or the combination is not valid) or OK (if the combination is valid).

  14. #14
    Registered User
    Join Date
    11-02-2021
    Location
    Wellingborough, England
    MS-Off Ver
    office 365
    Posts
    64

    Red face Re: Cell Entries Validation

    Brilliant both options work well. I need to determine now, which one best suits the application. Many thanks for your time and support today.

+ 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] How To do data validation for matching entries between 2 cells based on input in 3rd cell
    By diddy47 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2020, 05:25 PM
  2. [SOLVED] Data Validation Rule Which Enables Entries Larger Than Previous Cell
    By zanshin777 in forum Excel General
    Replies: 7
    Last Post: 09-12-2015, 06:32 PM
  3. Multiple Data Validation entries into one cell
    By Madmaxneo in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-06-2014, 12:26 AM
  4. Data Validation and Non Repeating Entries
    By IvanStyle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2014, 12:26 PM
  5. [SOLVED] Trouble using Data Validation/Custom to prevent entries based on text in another cell
    By LSR1011 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2014, 06:04 PM
  6. validation of textbox entries
    By CG Rosén in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2006, 10:50 AM
  7. [SOLVED] Using Data Validation - how do I allow other entries
    By DianeMcP in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-19-2005, 01:05 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