+ Reply to Thread
Results 1 to 7 of 7

IF and AND with conditional formatting

  1. #1
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    IF and AND with conditional formatting

    Hi,

    I'm having a bit of a trouble with this one...

    So I'm formatting cell F4 and I would like it to turn red, if C4 = or greater than 1 and if F4 =0 otherwise, don't do anything!

    Can someone help please?

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: IF and AND with conditional formatting

    Ok, go into conditional formatting and you have a couple options, the one I used is use a formula to determine which cells to format. then enter =C4>1 and then click the format button and select the fill tab then select the color you want and hit ok and ok and it should be good to go.
    Sorry, didn't see the second part, will get back to you.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: IF and AND with conditional formatting

    ok, to complete both conditions, go same route and for the formula this time enter =AND(C4>1,F4=0) and hit ok and ok. NOW, it will fail because the formatting function will automatically insert " at the beginning and end of the formula. You'll have to go into it and remove them, it will look like this ="AND(C4>1,F4=0)", remove the quote marks and then hit ok again and it will then work.

  4. #4
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: IF and AND with conditional formatting

    Super that works, and how can I make it applicable to each row? (Without adding it one by one if possible) so for F5 its C5 and F5 for F6 its C6 and F6 etc?

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: IF and AND with conditional formatting

    use the format painter (paintbrush on the home tab) and format "paint" it over the area you want it to apply to.

  6. #6
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: IF and AND with conditional formatting

    Ah okay, I thought that applies the first row changes only. Super thank you a lot!!

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: IF and AND with conditional formatting

    You're welcome, and thank you for the rep!

+ 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. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  2. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  3. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  4. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  5. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  6. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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