+ Reply to Thread
Results 1 to 22 of 22

If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

Hybrid View

  1. #1
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Good day.

    Please help me if you can.

    I have a problem,

    I have a table - columns A/B/C - Column B will have YES, NO or N/A - If NO then the row below must automatically get text "Complete Reason" - if reason is typed in in Column C then the "Complete Reason" must disappear.

    That is the first part. Once that is done, I need a conditional formatting or setting that if the person did not select YES, NO or N/A then they cannot proceed completing any of the further YES/NO/N/A - This way trying to force them to complete the form properly.

    Column B currently has Data validation list to select the YES/NO/N/A

    If anybody can help me please. I have atttached a file and hope you can see it.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    A cell can contain either a formula or an entry (text/numeric etc), it cannot contain both...and DV enters text into a cell. So what you want is not possible without VBA

    There is nothing magical about a drop down (data validation), it acts in the exact same way as if you had entered the data manually, and excel formulas only see the data in the cell as if it had been entered manually.

    The only real advantages of using a DD is that it saves typing, avoids typos/spelling mistakes, restricts entry to what you specify, and maybe saves a bit of time in entering data.
    Other than that, no difference to manual entry
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Thank you Ford, the cell will only contain a formula - in the sample spreadsheet i have the formula that if B6 is "No" the message pops up in C7, so the first part is working. This message tells the person to please complete the note or reason in B7 - so the rest of the formula is what I cannot get right. I am trying to get it that if C7's text is inputted that message that popped up in B7 to tell them to complete C7 must just disappear in otherwords the first part of the formula which is working is not relevant anymore. In my mind it is something like if B6 = No then B7=complete reason, but if B6 is no and c6 is not blank then that message to complete must not pop up. Hope this makes more sense?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    OK see if this is what you want...

    =IF(C7="",IF(B6="no","Complete Reason",""))

    Note that you still have DV in B7, so you will need to adjust that to allow you to enter that formula

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Also, pleas do not post duplicate threads, I have closed your other 1, you may continue on this 1

  6. #6
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Thank you so much!!! This is working, but it is not going blank it is giving a "false" How do I get rid of the "false" please? Apologies about the second Post - I was not sure where to post.

  7. #7
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Is there some way which I can do it in Conditional Formatting that it is not a visible formula which somebody could accidently delete?

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    OK so I understand properly...

    1. we are talking about col B, correct? And in particular, B7

    2. If A6 = Yes or NA, B7 = ""

    3. If A6 = No, B7 = Complete

    4. But if A6 = NO and C7 contains anything, B7 = "" (shows nothing)

    Am I understanding you correctly?

    The best way to prevent accidental deleting is to protect the cell/s

  9. #9
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    OK so I understand properly...

    1. we are talking about col B, correct? And in particular, B7

    2. If A6 = Yes or NA, B7 = ""

    3. If A6 = No, B7 = Complete

    4. But if A6 = NO and C7 contains anything, B7 = "" (shows nothing)................ this one should be C6 and not C7

    Am I understanding you correctly?

    The best way to prevent accidental deleting is to protect the cell/s THANK YOU


    SO THE FORMULA I HAVE IS =IF(C6="",IF(B6="no","Complete Reason","")) IT IS WORKING PERFECTLY JUST RETURNING "FALSE" WHICH I WOULD THE TO HAVE JUST A BLANK CELL AND NOT "FALSE"

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    It seems to be working for me...
    Excel 2016 (Windows) 64 bit
    B
    C
    6
    No
    7
    FALSE
    xxx
    8
    Complete Reason
    Sheet: Client Care

    what have you entered/not entered, and where, that you get FALSE?

  11. #11
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    I hope you can see this?


    Attachment 828874

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    ahh OK so you want B7 to show nothing is C6 has text?

    I have...
    B6 = No
    C6 = "some text"
    B7 = ""
    C7 = ""

    B7 now =IF(C6="",IF(B6="no","Complete Reason",""))

  13. #13
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Hi - Yes, you have it perfectly. but if I add that formula exactly - the 'COMPLETE REASON' pops up, but if I then input a reason - the the 'COMPLETE REASON' changes to 'FALSE' and not only being blank.

  14. #14
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Thank you again!!! Here is a copy of the file which might be easier It might also help to see the questions I have which need to be answered in column B

    Column B is the one which I would love to get a formula added to the one that you gave me that you cannot select the answer of b7 if b6 was not answered, same going down the column so can't answer b8 if b7 wasn't answered.

    Hope this makes sense. Attachment 828882

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    huh. I dont get FALSE at all

    and everything is based on B6 (and only B6, no matter what the row is)?

    Can you upload another copy of your file showing teh FALSE plz?

  16. #16
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Thank you - It pops up when you type a reason in Column C next to "NO" in the same row as "No" So it lliterally replaces the Complete Reason. Here is a copy Thank you again.Email again New Checklist for Disclosures under the UTAA.xlsx

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,324

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    The formula that returns FALSE is this:

    =IF(C6="",IF(B6="no","Complete Reason",""))

    It returns FALSE because C6 is NOT blank, therefore it fails at the first test. What are you expecting it to to when C6 is not blank?

    You need this:

    =IF(C6="",IF(B6="no","Complete Reason",""),value_if_false)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  18. #18
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    I think the problem here lays with which cells are being referenced.

    My understanding is that the primary reference is to B6, and all subsequent formulas need to reference this, no matter which row they are in
    (confirm this please)

    Then, after that reference has been made, the formula in cell B?? then references C?? to see what to do next?

    Lets get that sorted out 1st please.

    Also, it appears as if your file is referencing an external like that we do not have access to - can you, for the sake of testing here - remove that link please.

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,324

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    You still haven't added a value_if_false!

    Try this:

    =IF(C6="","",IF(B6="no","Complete Reason","")

    You will need to remove the data validation in the cell to be able to update the formula.

  20. #20
    Registered User
    Join Date
    11-29-2022
    Location
    auckland
    MS-Off Ver
    Microsoft 365 - version 2210
    Posts
    13

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    [SOLVED] Thank you for everrybody's help

  21. #21
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Happy to help.

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,324

    Re: If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank

    Glad to have helped.

    If that takes care of your original question, please choose 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 anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) 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.

+ 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] Unable to Make FIFO Code work If I change text From "Bought" to "Buy"
    By onp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2021, 11:00 AM
  2. Requiring input by user to be either "Economy", "Business" or "Club"
    By cmurda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2014, 08:57 PM
  3. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  4. [SOLVED] Code that copies row of data to another sheet based on text "Complete"/"Delete"
    By Dremzy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-20-2014, 05:51 PM
  5. Replies: 2
    Last Post: 04-20-2014, 11:18 AM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM

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