+ Reply to Thread
Results 1 to 4 of 4

2010 Conditional Formatting: Cell Color Change, Based on Ratio (1:1)

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Smile 2010 Conditional Formatting: Cell Color Change, Based on Ratio (1:1)

    Greetings!

    Newbie here, been reading this site for the past two days hoping to find the right answer, ohh soo close..
    I did find several threads that came pretty close, but nothing specifically related to 2010 Conditional Formatting: Cell Color Change, Based on Ratio (1:1).

    Simply put, I would like to change the cell color to red, if the ratio falls below 1:1 (i.e. 1:3) and green if the ratio is above 1:1 (i.e. 3:1).

    Much appreciated, thank you!

    J
    Last edited by James_D; 01-29-2013 at 09:08 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: 2010 Conditional Formatting: Cell Color Change, Based on Ratio (1:1)

    Hello James_D welcome to Excel Forum

    If your values are actually like 3:1 and 1:3 in a single cell then try using SUBSTITUTE function to replace ":" with "/" to create a fraction, then you can test if it's greater than 1 or not, e.g. for data in column A select that column and use this formula in conditional formatting for red condition

    =AND(("0 "&SUBSTITUTE(A1,":","/"))+0<1,A1<>"")

    and this one for green

    =("0 "&SUBSTITUTE(A1,":","/"))+0>1
    Audere est facere

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: 2010 Conditional Formatting: Cell Color Change, Based on Ratio (1:1)

    Oh Thank You!

    This is so cool, really appreciate your quick and detailed response. I will give it a shot and reply back with results...

    Thanks again!

    j

  4. #4
    Registered User
    Join Date
    01-28-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: 2010 Conditional Formatting: Cell Color Change, Based on Ratio (1:1)

    IT WORKS!!!!!

    Outstanding! I am genuinely grateful, thank you kindly.

    j

+ 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