+ Reply to Thread
Results 1 to 6 of 6

IF function result and conditional formatting

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    IF function result and conditional formatting

    Hi guys,

    I have a column A2:A20 where I have the values Yes or No listed. If I have a 'Yes' in A2, I want cell B2 to be 'red' if it is blank and has no value (Column B2:B20 is where I will input something if someone has said yes). How can I write an IF statement to do this?

    I hope I`m on the right track!

    Thank you
    Thanks,

    R.



  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: IF function result and conditional formatting

    Formula for conditional formatting:
    =AND(A1="Yes",B1="")

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: IF function result and conditional formatting

    Thank you Paul.

    Is it possible to write a rule for the same range to say if B1 is not blank, format it in a different colour?

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: IF function result and conditional formatting

    =AND(A1="Yes",B1<>"") and select another colour in conditional formatting rule

  5. #5
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: IF function result and conditional formatting

    Hi Paul

    I am seeing '0' appear in B2 when I input the formula. Should this be the case?

    Please see attached.

    Thank you
    Attached Files Attached Files

  6. #6
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: IF function result and conditional formatting

    That's not how you apply conditional formatting. Check the link below on how to set it up. At step 4 add the formula from above.
    https://support.office.com/en-us/art...b-f1951ff89d7f

+ 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. Nested IF result colors with Conditional formatting
    By troywinston in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2017, 03:05 PM
  2. Conditional formatting - result depends on value of two cells
    By osbertdebroilg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-29-2017, 03:31 PM
  3. [SOLVED] Conditional Formatting with a formula's result
    By rcanpolat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2016, 02:15 AM
  4. [SOLVED] conditional formatting from formula result
    By gz3s36 in forum Excel General
    Replies: 4
    Last Post: 09-24-2014, 02:14 PM
  5. [SOLVED] Inconsistent Conditional Formatting result
    By JohnWS in forum Excel General
    Replies: 6
    Last Post: 08-20-2013, 01:09 PM
  6. [SOLVED] Conditional formatting not copied as a result of macro fix?
    By ad9051 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 07:00 AM
  7. [SOLVED] Conditional Formatting Against a Formula - not it's result
    By Mike The Newb in forum Excel General
    Replies: 3
    Last Post: 08-10-2006, 05:40 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