+ Reply to Thread
Results 1 to 3 of 3

'If' statement in Conditional Formatting

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    Ottawa, Ontario
    MS-Off Ver
    2013
    Posts
    3

    'If' statement in Conditional Formatting

    I am trying to create a cell with conditional formatting, however, the conditions depend on the value of another cell.

    Example:
    A1: Type of Exposure (Exterior or Interior)
    A2: Equation

    For exposure type 'Exterior' the value of A2 must be lower or equal to 10. If true, cell turns green, if false red.
    However, if exposure type changes to 'Interior', the new condition states that the value of A2 must be lower or equal to 5.

    Is there a way to insert a 'If' statement into a conditional formatting rule, or to do something equivalent?

    Thanks!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: 'If' statement in Conditional Formatting

    Set defaul A2 back colour as "green".

    CF formula for A2:

    =OR(AND(A1="Exterior",B1<=10),AND(A1="Interior",B1<=5))

    Set back colour format as "red"
    Quang PT

  3. #3
    Registered User
    Join Date
    04-14-2015
    Location
    Ottawa, Ontario
    MS-Off Ver
    2013
    Posts
    3

    Re: 'If' statement in Conditional Formatting

    That worked!

    Thanks, very helpful!

+ 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 with if statement
    By kisboros in forum Excel General
    Replies: 8
    Last Post: 09-13-2013, 01:27 PM
  2. IF statement with Conditional Formatting.
    By Annisha in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2011, 07:14 AM
  3. IF statement using formatting criteria (NOT conditional formatting)
    By chelseasikoebs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2009, 01:57 AM
  4. Help with AND statement in conditional formatting
    By jpruffle in forum Excel General
    Replies: 2
    Last Post: 03-30-2009, 06:08 AM
  5. [SOLVED] If Statement/Conditional Formatting
    By JS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2006, 11:55 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