+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting a Fraction??

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    escernme 196
    MS-Off Ver
    Excel 2010
    Posts
    49

    Conditional Formatting a Fraction??

    Hello again! I am trying to use conditional formatting to highlight a cell in yellow with bold black text where the value is less than 5/32 of an inch, orange text if it falls between 5/32 and 7/32, and bold green text if it is over 7/32.

    Anybody???

  2. #2
    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 a Fraction??

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =AND(E1>0,E1<5/32) format fill Yellow/Black

    Repeat 3 and 4...
    =E1>=5/32 formay fill Orange

    repeat 3 and 4...
    =E1>7/32 format fill GREEN
    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

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting a Fraction??

    These three rules should accomplish what you want.
    Select the cells that you want conditionally formatted. I used column A. Go to Conditional Formatting, New Rule, Use Formula... and enter these formula and apply the appropriate formatting.

    1. =AND(A1<>"",A1<5/32)

    2. =AND(A1<>"",A1>4/32,A1<8/32)

    3. =AND(A1<>"",A1>7/32)
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    07-15-2013
    Location
    escernme 196
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Conditional Formatting a Fraction??

    Thanks FDibbins, but the orange didn't work. Doesn't it need to be something like greater than 4/32 but less than 7/32? [Maybe... =AND(E1>4/32,E1<7/32) ?]

  5. #5
    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 a Fraction??

    oops forgot to say to check the "Stop if True" box

  6. #6
    Registered User
    Join Date
    07-15-2013
    Location
    escernme 196
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Conditional Formatting a Fraction??

    Got it. They work great! Thank you both!!!

    DG

  7. #7
    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 a Fraction??

    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. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  2. Replies: 5
    Last Post: 11-03-2013, 04:12 PM
  3. Replies: 3
    Last Post: 09-04-2013, 01:56 AM
  4. Replies: 10
    Last Post: 06-11-2013, 06:11 PM
  5. Replies: 7
    Last Post: 12-17-2010, 04:23 PM
  6. conditional fraction - sumif?
    By Lee Harris in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2005, 01:45 AM
  7. [SOLVED] Fraction Formatting
    By Knoxi in forum Excel General
    Replies: 0
    Last Post: 04-13-2005, 05:06 PM
  8. [SOLVED] Fraction Formatting
    By David Rose in forum Excel General
    Replies: 3
    Last Post: 04-13-2005, 02:06 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