+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting in an Excel table

  1. #1
    Registered User
    Join Date
    01-09-2018
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2013
    Posts
    2

    Conditional Formatting in an Excel table

    Dear,

    I have an Excel table that contains data for Calories, Carbs, Protein, and Fat.

    I would like to apply a Conditional Formatting to the Calories column that would make it red and bold when the formula [(Carbs x 4) + (Protein x 4) + (Fat x 9)] result is different than the value in Calories column (see pic attached).

    Do I need to create a conditional formatting rule for EVERY row? What about the new rows when created?

    Thanks for the help,

    JW

    model.png

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting in an Excel table

    Hello and welcome to the forum. You only need to create one Conditional Formatting formula. You just have to apply it correctly.

    Click on the top of the "CALORIES" cell to highlight the entire table column > Conditional Formatting > New Rule > Use a formula

    =C2<>SUM(D2*4,E2*4,F2*9)

    Change font color to red and font style to bold.

    Note that this formula assumes that the table starts in A1.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,786

    Re: Conditional Formatting in an Excel table

    Quote Originally Posted by John_Wick View Post
    What about the new rows when created?
    If this is a true Excel Table, then the same formatting (conditional formatting plus all other formatting) will automatically be applied to new rows added to the table.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    01-09-2018
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2013
    Posts
    2

    Cool Re: Conditional Formatting in an Excel table

    Thanks! It is working 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. Excel Table, Conditional Formatting, Bottom Row
    By STBTC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2017, 02:33 PM
  2. Conditional Formatting in Excel Table - new row problem
    By GreenBoy in forum Excel General
    Replies: 2
    Last Post: 06-14-2017, 03:51 PM
  3. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  4. Replies: 9
    Last Post: 08-10-2013, 08:28 PM
  5. Replies: 3
    Last Post: 12-12-2012, 08:45 AM
  6. [SOLVED] Conditional Formatting and protection problem with a Table in Excel 2010
    By Gary Lockton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2012, 12:53 PM
  7. [SOLVED] Excel 2007 : Conditional Formatting a Date Table?
    By THORmx in forum Excel General
    Replies: 9
    Last Post: 04-20-2009, 04:51 AM

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