+ Reply to Thread
Results 1 to 7 of 7

Percent problem

  1. #1
    Registered User
    Join Date
    03-14-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Percent problem

    Hey all,

    I have the following:

    Monday (1) = (A-3)
    Tuesday (1) = (A-4)
    Wednesday (1)= (A-5)
    Thursday (1) = (A-6)
    Friday (X) = (A-7)

    Each time person shows up work, he gets number "1" in cell. If he doesnt, the cell is left empty. What function do i use to get the % number and how? Obvious answer is 80% in this case, as our person showed up 4/5 times to work.

    Thanks

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Percent problem

    =countif(a2:a7;1)/counta(a2:a7)

  3. #3
    Registered User
    Join Date
    03-14-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Percent problem

    It says 0... Could you explain what that "syntax" does so i could figure the problem?

    Edit: i re-did my excel a bit, so i put:
    =COUNTIF(F3:J3;1)/COUNTA(F3:J3)

    It says: Formula omits adjacent cells
    Last edited by Atomo; 03-14-2009 at 02:17 PM.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Percent problem

    Maybe this "he gets number "1" in cell" confusing me... formula say:

    count if from F3 to J3 contains number 1 / count all cells that have data from F3 to J3

  5. #5
    Registered User
    Join Date
    03-14-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Percent problem

    I left something really important out, the cells can contain the next values:
    0, 1, 3 and -3

    Sorry

  6. #6
    Registered User
    Join Date
    03-14-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Percent problem

    I left something really important out, the cells can contain the next values:
    0, 1, 3 and -3

    Sorry

    Edit: So in other words, if the cell has values which i mentioned above, it would count as if hes working. If the cell is empty, it doesnt count as work. It would be simple if excel could detect if there is anything in cell. Is that possible?
    Last edited by Atomo; 03-14-2009 at 02:35 PM.

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Percent problem

    How about this: =COUNTIF(H6:P6;"<4")/5

    Formula would include all above values (0,1,3,-3 since they all are <4) and divided by 5 (days at week).

    If you put 0 in cell formula will count it. If you put blank, it won't.

+ 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