+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting to highlight a ratio of 1:3 or higher

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    8

    Conditional formatting to highlight a ratio of 1:3 or higher

    I’m looking to use conditional formatting to highlight a ratio of 1:3 or higher to me. In the attached speadsheet, I have 3 possible instances across 4 accounts. If the ratio of instances 2 and 3 is higher than 1:3 for a particular account then I need to be able to see this quickly in red. Likewise if the instance is equal to or lower than 1:3 then I want the ratio to be highlighted green.

    I thought this may be a simple case of using >= than 1:3. But this just highlighted all the ratios.
    Attached Files Attached Files
    - RAS 2112

  2. #2
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: Conditional formatting to highlight a ratio of 1:3 or higher

    The heart of the problem is that your ratios in Column E are text strings rather than numerical values -- so a 'greater than' or 'less than' using those ratios will fail.

    You can mimic the formula from cell E2 in your conditional formatting as a workaround:

    =(C2/GCD(C2,D2))/(D2/GCD(C2,D2))>=(1/3)

    However, you have a secondary problem, I think. 1:0 is undefined...so I don't know whether you want it green or red...so...I didn't do anything with it...
    Attached Files Attached Files
    Last edited by eibi; 03-25-2016 at 10:22 AM.

  3. #3
    Registered User
    Join Date
    03-04-2013
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    8

    Re: Conditional formatting to highlight a ratio of 1:3 or higher

    I applied the formatting to my main sheet and it did the trick. I am seeing the 1:0 issue you mentioned, but these scenarios happen so rarely in my sheet that it's not really an issue. Thanks eibi!

+ 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. Highlight if Cell is Higher/Lower Than above
    By bambinn in forum Excel General
    Replies: 8
    Last Post: 07-21-2015, 05:31 PM
  2. How to highlight a cell automatically if it is higher than X number
    By ginerr163 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-17-2013, 08:17 PM
  3. [SOLVED] 2010 Conditional Formatting: Cell Color Change, Based on Ratio (1:1)
    By James_D in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-29-2013, 09:02 PM
  4. Conditional formatting no higher than 6
    By troysie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2011, 01:42 AM
  5. Conditional Formatting based on a ratio
    By kmlloyd in forum Excel General
    Replies: 2
    Last Post: 02-24-2010, 03:16 PM
  6. Replies: 2
    Last Post: 08-16-2009, 06:16 PM
  7. Replies: 4
    Last Post: 07-23-2009, 03:18 PM

Tags for this Thread

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