Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Having troubles with this Excel formula?

I have an excel spreadsheet that lists all of my employees and their status such as full time, part time and such. I then have another column where the managers enter a 1 if that employee has perfect attendance for the week. What I need is a formula that counts how many of the part timers have perfect attendance? I have tried sumif, countif but I just can't get it to work.

4 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    Let's say that the names are in column "A", the status is in "B", and "C" was the column where the managers can put a "1". Let's also say that you're using rows 1 through 50.

    Then in D1, enter "=+IF(AND(B2="part time",C2=1),1,0)" without the quotes. Copy this same cell into D2 through D50. This puts a "1" at the end of the row if a worker is part time and has perfect attendance, and "0" otherwise. Now sum column D.

  • ?
    Lv 7
    1 decade ago

    The problem is the "if" in countif or sumif only does one test and can't test each employee seperately.

    For multiple cretiria, use

    COUNTIFS (with an "s")

    Lets suppose column a = employee and you have 10 employees

    column b = 1 for full time and 0 = for part time

    column c = 1 for perfect attendance and 0 for less than perfect.

    Your formula would look like this

    =COUNTIFS(B1:B10,0,C1:C10,1)

    This will let you calculate without adding a bunch of extra columns you don't really need or want.

  • ?
    Lv 4
    1 decade ago

    Say column B is whether they are part time, and column C is the 1 or 0 for perfect attendance.

    Set another column to have the equation =if(B1="part time",1,0)

    That will set the cell equal to 1 if they are part time. Drag that equation down to have the entire list be considered by the equations.

    Set another column to have the equation = if(C1=1,1,0)

    That will set that cell value to 1 if they have perfect attendance, and 0 if they don't.

    Then in another column, simply multiply the other 2 columns you created, thus making both have to be 1 for a 1 to appear in that column. Then sum the column to find how many people have perfect attendance and are part time.

  • Anonymous
    4 years ago

    Re the 80 hrs state of affairs: in case you multiply 80 hours by 20% and then subtract from the unique 80 hours, you're left with 80% of 80 hours. SO your formula ought to mmore only be 80 hours * 80%. HTH!

Still have questions? Get your answers by asking now.