+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting - colour both cells when they don't equal another cell

Hybrid View

  1. #1
    Registered User
    Join Date
    04-30-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    28

    Conditional formatting - colour both cells when they don't equal another cell

    I have a daily balancing sheet for our receptionist to use at the end of day to balance the money taken for the day.

    I have added a new section so she can enter how much goes into our Municipal account and how much goes into the Trust account.

    I need both G28 and J28 to BOTH turn red the added together they don't equal G24.

    I have trying to use =SUM($G$28:$J$28)<>G24 but its only changing the colour of one cell, not both.

    The purpose is so if they put in the amount for each bank but it doesn't equal the total amount we took for the day it alerts them that there is an error.

  2. #2
    Registered User
    Join Date
    12-06-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    72

    Re: Conditional formatting - colour both cells when they don't equal another cell

    To color both when the value is not matching

    select these cells go to - conditional formatting - choose new rule - formula to determine which cell and put below code

    =g2<>j2 set the conditional format you want

  3. #3
    Registered User
    Join Date
    04-30-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Conditional formatting - colour both cells when they don't equal another cell

    Sorry but I don't understand how that will work. I would have thought the start of the formula would include adding G28 & J28?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: Conditional formatting - colour both cells when they don't equal another cell

    The formula, =SUM($G$28:$J$28), sums four cells g, h, i & j

    Select G28 & J28 and apply CFF:
    =AND($G$28<>($G$24-$J$28),$J$28<>($G$24-$G$28))
    Last edited by protonLeah; 12-06-2016 at 11:41 PM.
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    12-06-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    72

    Re: Conditional formatting - colour both cells when they don't equal another cell

    use in formula (G28+J28)<>G24 in this case

    Sum(G28:J28) will sum g28+h28+i28+j28 i.e. will include all 4 columns

  6. #6
    Registered User
    Join Date
    04-30-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Conditional formatting - colour both cells when they don't equal another cell

    This is the formula I has originally using but it is only changing the colour of one of the two cells I want to change. I need it to change both cells if they don't both equal G24

    I have attached my spreadsheet.
    Attached Files Attached Files

+ 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 Formatting - If three cells are equal
    By per11 in forum Excel General
    Replies: 8
    Last Post: 08-23-2016, 02:09 PM
  2. [SOLVED] Conditional Formatting - If three cells are equal but not 0
    By per11 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-23-2016, 01:53 PM
  3. Replies: 6
    Last Post: 04-11-2016, 09:48 AM
  4. Help doing conditional formatting based on size cell to colour other cells
    By Craigsim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2015, 06:09 AM
  5. Replies: 5
    Last Post: 06-25-2015, 12:05 PM
  6. [SOLVED] Conditional Formatting Formula - Chang color of cells is other cell is equal to..
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 6
    Last Post: 09-29-2013, 11:00 PM
  7. Replies: 13
    Last Post: 04-25-2013, 12:23 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