+ Reply to Thread
Results 1 to 4 of 4

Percentages

Hybrid View

  1. #1
    Registered User
    Join Date
    09-13-2005
    Posts
    8

    Percentages

    I need to set up a sheet whose columns will show red when cells between .005 and 6.99, green when >=7 and white when 0. I used conditional formatting to achieve these results.<br><br>

    However, I also need a column that will take the number of green cells and determine what percentage they constitute of the total of red and green cells. I used COUNTIF and divided it by number of columns to arrive at percentage, but this is a rigid formula. I need a formula which calculates the percentage of green cells (>=7) but which adjusts according to the number of blank cells(0).<br><br>

    I want a formula which is flexible in the number of columns by which it divides the total of green cells. Basically, the number of columns with data varies from row to row. I have a total of 23 columns, but given rows may contain 16, 19, or 23 cells of info. As such, I need to determine the percentage of green according to a number of cells with changeable data. The same row that has 14 cells of data now, may have 19 later and possibly 16 later still.<br><br>

    If this isn't clear enough, please let me know. I GREATLY appreciate any help.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,380
    How about =countif(rng,">=7")/countif(rng,">=.005")? Any blank cells will be treated as 0 and will not be counted in the denominator.

  3. #3
    Registered User
    Join Date
    09-13-2005
    Posts
    8

    I'll try it

    Thanks for the suggestion. I'm kind of a novice/intermediate with Excel. Lots to learn.

  4. #4
    Registered User
    Join Date
    09-13-2005
    Posts
    8

    Worked perfectly

    Outstanding, thanks for your help!

+ 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