+ Reply to Thread
Results 1 to 6 of 6

Converting Text Fraction to Percentage; Conditional Formatting Not Cooperating; Excel 2007

Hybrid View

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    11

    Question Converting Text Fraction to Percentage; Conditional Formatting Not Cooperating; Excel 2007

    Hello,

    As part of an Excel workbook for my job, I have created a section whereby a user can input a fraction, as text so it does not automatically convert, and then a formula will convert that fraction to a percentage.

    That part of the formula appears to work just fine. However, I am having an issue with the conditional formatting I have applied to the percentage cell, which is supposed to color-code the cell based on the percentage that is calculated.

    In the attached example, you can see that the percentage cell has been color-coded properly based on the data that has been entered in the fraction cell.

    But if you change this fraction to 25/42, which calculates the percentage as 60%, the cell remains white, without any fill formatting.

    Some fractions seem to work fine with the formatting, some do not. I have no idea why it likes some and why it doesn't like others.

    Please advise as to how this can be fixed so that every fraction that falls within the established percentages shows up color-coded for ease of use.

    Thank you!WorkExample1.xlsx

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: Converting Text Fraction to Percentage; Conditional Formatting Not Cooperating; Excel

    That is because 0,6 is not in one of the ranges
    It colors between 0,6 and 0,69 and the previous one between 0,5 and 0,59. There is no room for 0.6 :-)
    It would be better to use conditions as follows and respect decreasing order
    >=0.9
    >=0.8

    etc..

  3. #3
    Registered User
    Join Date
    08-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    11

    Re: Converting Text Fraction to Percentage; Conditional Formatting Not Cooperating; Excel

    So you're saying if I tell it to color "Between 0.60-0.69", it is not including "0.60" in that range? It's coloring, basically, 0.61-0.69?

    If that's true, and I just basically need to make sure that I ask it to color the "ten" ranges (.5, .6, .7, etc) specifically...I will, once I get back to the office tomorrow.

    Thank you for the reply.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: Converting Text Fraction to Percentage; Conditional Formatting Not Cooperating; Excel

    Basically, it would color starting at 0.600000000000000000000000000001 or something like that.
    No need to use ranges just use "Greater or equal then and start with the highest values

  5. #5
    Registered User
    Join Date
    08-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    11

    Re: Converting Text Fraction to Percentage; Conditional Formatting Not Cooperating; Excel

    I Googled an article that suggested that using the ranges was how I had to do it, but if that's not true, I'll certainly implement your method and see if better results are obtained!

  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,050

    Re: Converting Text Fraction to Percentage; Conditional Formatting Not Cooperating; Excel

    The difference is that 1 is "between this and that", andthe other is "from this to that", if that mades sense?
    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)

Similar Threads

  1. Excel 2007 "If" function not cooperating
    By acroley1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2012, 01:24 PM
  2. [SOLVED] Date expiry conditional formatting in Excel 2007 (I think it is the 2007 version anyway)
    By nico.base@live.com in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-20-2012, 08:41 AM
  3. conditional formatting not cooperating
    By pleasehelp in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 03-15-2012, 12:58 PM
  4. Show percentage as fraction in Excel 2003
    By cch70 in forum Excel General
    Replies: 2
    Last Post: 01-04-2012, 01:08 PM
  5. [SOLVED] Extract fraction from text without converting to date serial number
    By adam2308 in forum Excel General
    Replies: 4
    Last Post: 10-04-2011, 07:29 AM

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