+ Reply to Thread
Results 1 to 6 of 6

Dividing populated cells against unpopulated cells in data set

  1. #1
    Registered User
    Join Date
    01-13-2010
    Location
    ohio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Dividing populated cells against unpopulated cells in data set

    Hi, I am trying to figure out how to divide populated cells against unpopulated cells in data set. Example: J3:J10 has 4 X's in it (X being a letter to indicate that a task has been completed). I have a % complete column (which is a merge of J3:J10) and I am trying to find a function to show me how far complete I am in a project that has multiple tasks. Is there a way to divide X by blank cells?

    Thanks in advance,
    Matt

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,443

    Re: Dividing populated cells against unpopulated cells in data set

    Hi.

    Does this work for you?

    =COUNTIF(J3:J10,X")/COUNTBLANK(J3:J10)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    01-13-2010
    Location
    ohio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Dividing populated cells against unpopulated cells in data set

    Hi, thanks for your help! That formula is giving me a result of 60%, whereas I have 3/8 of my cells populated or 38%. I'm looking into seeing if I can figure it out but if you can offer any more advice I'd greatly appreciate it. Thanks!

  4. #4
    Registered User
    Join Date
    01-13-2010
    Location
    ohio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Dividing populated cells against unpopulated cells in data set

    I think I figured out the issue(s), the first is the title of my thread - it's misleading and I apologize for that - I am looking for the populated cells divided against the total number of cells in the cell set. The formula that you gave is correct but it unfortunately only divides against the populated cells, instead of the total cells, which is giving me 60% instead of the goal of 38%. Is there a function to accompany all cells (blank and nonblank) in the set?
    Last edited by gerst0230; 02-23-2012 at 02:34 PM.

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,443

    Re: Dividing populated cells against unpopulated cells in data set

    OK, so does this do it for you?

    =COUNTIF(J3:J10,X")/(COUNTA(J3:J10)+COUNTBLANK(J3:J10))

  6. #6
    Registered User
    Join Date
    01-13-2010
    Location
    ohio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Dividing populated cells against unpopulated cells in data set

    Yes! Thank you!! Your help is greatly appreciated.

+ 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