+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting using an if function

Hybrid View

tays01s Conditional formatting using... 05-22-2013, 03:50 PM
Jonmo1 Re: Conditional formatting... 05-22-2013, 03:52 PM
tays01s Re: Conditional formatting... 05-22-2013, 04:32 PM
Jonmo1 Re: Conditional formatting... 05-22-2013, 04:48 PM
nzricky Re: Conditional formatting... 05-23-2013, 01:10 AM
FDibbins Re: Conditional formatting... 05-23-2013, 01:15 AM
  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    Bristol, UK
    MS-Off Ver
    Excel 16.94
    Posts
    48

    Conditional formatting using an if function

    I'd like eg. cell A1 to change colour if its value is NOT equal to A2. I've tried the syntax I'd use withing a normal cell but failed.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional formatting using an if function

    Try this as A1's conditional formatting formula

    =NOT(A1=A2)

  3. #3
    Registered User
    Join Date
    05-08-2013
    Location
    Bristol, UK
    MS-Off Ver
    Excel 16.94
    Posts
    48

    Re: Conditional formatting using an if function

    Jonmo1: Thanks, I'm duff!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional formatting using an if function

    Glad to help,
    Nice to meet you duff, I'm Jon!

  5. #5
    Registered User
    Join Date
    05-23-2013
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Conditional formatting using an if function

    Was wondering if someone may be able to help me, I think I am in a similar situation.

    - I have a percentage value in X3, I have obtained that value via a formula =V3/U3
    - I have a percentage value in W3, I have obtained that value via a formula =IF(P3=1,"0%",IF(P3=2,"20%",IF(P3=3,"30%",IF(P3=4,"50%",IF(P3=5,"100%",IF(P3>5,"100%","N/A"))))))
    - I want to conditionally format X3 so that if X3 is equal to or greater than W3 then it fills Green AND if X3 is less than W3 then it fills Red.

    I have tried Conditional formatting exactly what I said using cell value = or < or > then fill appropriate colour. But it just fills red no matter what the values are.

    hmmm... I am stuck.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional formatting using an if function

    Welcome to the Forum, nzricky

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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