Closed Thread
Results 1 to 10 of 10

Conditional Formatting with If Statement

Hybrid View

  1. #1
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hi Merlin,

    You can do this a couple ways using conditional formatting as shown below. Also, when using conditional formatting, you're already using an IF (hence the "conditional"), so it's usually not necessary to have an IF within the formula.

    1. Using "Cell Value Is"
    a. In C.F. window, choose 'Cell Value Is'
    b. Then choose 'Greater than or equal to'
    c. In the textbox, type: =H26*1.8
    d. Set a format, click OK

    2. Using "Formula Is"
    a. In C.F. window, choose 'Formula Is'
    b. In formula textbox, type: =I26>=H26*1.8
    c. Set a format, click OK

    If nothing happens, go back into conditional formatting and check to see if Excel put quotation marks around your formulas. If so, remove them.

  2. #2
    Forum Contributor
    Join Date
    06-07-2006
    Posts
    121
    Thank you so much for your assistance.

    What can I do when K21 is zero? Multplying it by J21*1.8 would format a cell in red as per the conditional formatting when it shouldn't.

    Cell J21 has $500
    Cell K21 has $0


    =IF(K21>J21,(IF(J21>0,K21>=J21*1.8)))

Closed 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 statement
    By thomas.szwed.uk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2008, 10:23 AM
  2. Excel 2007 conditional formatting bug
    By jmessina in forum Excel General
    Replies: 0
    Last Post: 04-28-2008, 09:09 AM
  3. Conditional Formatting with an If statement
    By Shirley Munro in forum Excel General
    Replies: 3
    Last Post: 10-25-2007, 10:11 PM
  4. Conditional Formatting - IF Statement
    By todd.debacker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-27-2007, 03:39 PM
  5. Simplifying a Conditional Formatting Statement
    By ChemistB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-03-2007, 03:43 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