+ Reply to Thread
Results 1 to 2 of 2

conditional formatting based on PART of a cell value

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    15

    conditional formatting based on PART of a cell value

    I have a series of cells that contain fractions such as 5/24 or 7/18. I need to be able to turn those cells into "progress bars" with conditional formatting, with the low number being 0 and the high number being 24, or 18, etc. The 5 or 7 is obtained with the formula =COUNTIF(A1:A25,"Y"), but the second number (24 or 18, etc) is manually written in. So the actual formula in the cells that display "5/24" is actually =COUNTIF(A1:A25,"Y")&"/24". Is there any way to use the denominator ONLY when doing conditional formatting? Or if this isn't possible, is there a way to do it in VBA?

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: conditional formatting based on PART of a cell value

    Why not change the formula to

    =COUNTIF(A1:A25,"Y")/24
    format as # ?/24

    Then in CF use Data Bars
    Minimum : 0
    Maximum : 1
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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