+ Reply to Thread
Results 1 to 3 of 3

How to add If statement to Conditional Format

Hybrid View

  1. #1
    Registered User
    Join Date
    08-11-2016
    Location
    Dallas
    MS-Off Ver
    10
    Posts
    4

    How to add If statement to Conditional Format

    I'm using 1 cell to enter a code (1 or 2) to identify excused or unexcused absence. I have 2 other cells pulling from this with the hours used for either vacation or sick time.

    Col A....Col B....Col C
    Sick......Vac......Code
    8............0.........2


    I want the conditional format to say: =If(A3>0,(If(C3=2),(conditional format fill red),(no fill))).

    How do I do this correctly?
    Thanks!
    Last edited by CindyPauls; 08-11-2016 at 12:04 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to add If statement to Conditional Format

    Hi there. use this as your CF formula...

    =(AND($A$3>0,$C$3=2))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    08-11-2016
    Location
    Dallas
    MS-Off Ver
    10
    Posts
    4

    Re: How to add If statement to Conditional Format

    Cool! Thanks! That worked perfectly

+ 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] Conditional Statement for Negative Numbers inside a Conditional Formula
    By kuzniak in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 12-18-2015, 11:17 PM
  2. conditional format with if statement
    By kisanvikas2015 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2015, 03:38 AM
  3. Replies: 3
    Last Post: 02-24-2015, 02:58 AM
  4. Conditional Format If and statement
    By SSgtJ in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-17-2014, 04:18 PM
  5. Replies: 3
    Last Post: 05-15-2013, 12:16 AM
  6. Replies: 0
    Last Post: 05-20-2011, 02:33 PM
  7. Use Conditional Format with Match Statement
    By battlek in forum Excel General
    Replies: 4
    Last Post: 12-30-2009, 09:52 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