+ Reply to Thread
Results 1 to 9 of 9

Conditional Formating

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Conditional Formating

    Evening,

    Any help would be appreciated; I know the very basics about conditional formatting through the wizard, but haven't got a clue how to do this one. I've attached the sheet to help explain.

    (I'm using Excel:Mac 2011, but can access the MS version if needed)

    I would like to colour format columns D and E against column C. So for D if the value is above C it would turn green, equal to C turn orange, and below C it would turn red. However, I want it to ignore the decimal point, so if target was 3.4, then a value in the English column of 3.5 or 3.3 would turn orange, and only a value of 2.99 or lower would turn red, and only a value of 4.0 would turn green. Unfortunately I need to keep the decimal points in the column, so I can't just change it into whole numbers.

    Any help would be awesome.

    Thanks
    Attached Files Attached Files
    Last edited by Cmorgan; 08-11-2015 at 04:22 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Conditional Formating

    Maybe use INT(...) in your comparison.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Conditional Formating

    Sorry, I'm pretty clueless at Excel, what/how do you do that?

    Thanks

  4. #4
    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
    52,936

    Re: Conditional Formating

    1. highlight the range you want to apply the conditional formatting to (D2:D16)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =INT($C2)>INT($D2) Format Fill the color you want

    Repeat 3 and 4 for the other 2 rules
    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

  5. #5
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Conditional Formating

    This is great, thanks.

    I need one small tweak though, when I use =INT($C2)>INT($D2) I need to ignore blank cells. I have a very very limited understanding of Excel and tried to amend it to =INT($C2)>INT($D2)*(D2:D6<>"")) hoping this would work, but no joy.

    Regards

  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
    52,936

    Re: Conditional Formating

    =and($e2<>"",int($c2)>int($e2))

  7. #7
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Conditional Formating

    Many thanks.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Conditional Formating

    You're welcome. Thanks for the rep.

  9. #9
    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
    52,936

    Re: Conditional Formating

    Happy to help, thanks for the feedback

+ 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. Conditional formating based on other conditional formating?
    By OldManExcellor in forum Excel General
    Replies: 11
    Last Post: 09-14-2014, 02:20 PM
  2. Replies: 5
    Last Post: 03-14-2014, 04:03 AM
  3. Replies: 4
    Last Post: 01-23-2014, 10:14 AM
  4. Conditional formating-What formula do i need to use in conditional formating
    By warrima in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2009, 12:33 AM
  5. Replies: 6
    Last Post: 08-14-2006, 05:00 PM
  6. Replies: 2
    Last Post: 03-27-2006, 12:10 PM
  7. Install dates formating using conditional formating?
    By Jerry Eggleston in forum Excel General
    Replies: 2
    Last Post: 11-09-2005, 01:49 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