Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Excel Question - Please Help!!

  • 31-08-2010 04:22PM
    #1
    Registered Users, Registered Users 2 Posts: 214 ✭✭


    I have =Sheet1!E20=Sheet2!E20 to compare two cells. if the cells are different i want to change the = to a - to get the difference and then if the difference is greater than one i want to make it red

    Anyone know if this is possible?

    Thanks a million.


Comments

  • Registered Users, Registered Users 2 Posts: 2,947 ✭✭✭D-Generate


    Choose your range where this will be happening

    With this range highlighted go to Format -> Conditional Formatting -> Formula Is

    Enter: =IF(Sheet1!E20>Sheet2!E20,TRUE,FALSE)

    Click Format -> Font Tab -> Color and then choose red.

    Then click the Okay buttons. Should do the trick.

    TRUE and FALSE are whatever statements you want in there. I imagine you are copying a cell value in there and since you just want the colour to change then have
    =IF(Sheet1!E20>Sheet2!E20,Sheet1!E20,Sheet1!E20)


Advertisement