+ Reply to Thread
Results 1 to 3 of 3

IF conditions can or cannot be cross-formatted?

  1. #1
    Registered User
    Join Date
    01-10-2019
    Location
    Auckland, New Zealand
    MS-Off Ver
    2013 home
    Posts
    79

    IF conditions can or cannot be cross-formatted?

    Hello, I am trying to create a cell to add 'no' automatically from non-blank cell. but i also want to add 'yes' without upsetting the 'no' condition. I have started with a IF(ISBLANK) but if i put a yes instead into the same cell[in red], i loose the original condition of the 'no' if blank. Yes is only provided as an add-on as required. If I am incorrect with the IF(BLANK) function, I would be grateful for a solution. PLease Help me find a working formula.
    Attached Files Attached Files
    Last edited by Por2gal; 09-27-2019 at 09:07 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: conditional formatting a cell with 'IF' functions

    A cell can contain a formula or a value - it cannot contain both. If you type Yes into the cell it will overwrite the formula.

    You can amend your formula like this:

    =IF(ISBLANK(C4),"",IF(R4="","no","yes"))

    so that you use a different cell to indicate Yes (e.g. in column R). Copy the formula down then put anything in R6 (like "x") to see the effect.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-10-2019
    Location
    Auckland, New Zealand
    MS-Off Ver
    2013 home
    Posts
    79

    Re: conditional formatting a cell with 'IF' functions

    Thank you for your quick reply Pete_UK, essentially I have formatted any 'yes' that shows in cell D4 to turn red. I have also conditioned cell C4 to turn red if no text is in cell D4. If I was to put text into cell C4, cell D4 would automatically state 'no'. I have copied the formula as have shown, however it will not keep the formula true if I type 'yes' into D4. should I be using another function to perform this difficult task?

+ 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. Conditional Formatting or Functions
    By Shabir in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-24-2014, 01:33 PM
  2. If functions and Conditional formatting
    By stpeter in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2013, 11:03 AM
  3. Conditional Formatting/Functions
    By JessicaB517 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-21-2012, 02:22 PM
  4. IF Functions, Conditional Formatting
    By argegg26 in forum Excel General
    Replies: 3
    Last Post: 03-30-2010, 09:17 AM
  5. conditional formatting using IF with MID functions
    By jdubwelch in forum Excel General
    Replies: 6
    Last Post: 11-20-2007, 12:07 PM
  6. conditional formatting using IF with MID functions
    By jdubwelch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2007, 01:46 AM
  7. Conditional Formatting- Functions
    By jbroad in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-17-2007, 09:24 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