+ Reply to Thread
Results 1 to 3 of 3

Count if formula to count absent days

  1. #1
    Registered User
    Join Date
    02-20-2017
    Location
    uk
    MS-Off Ver
    office
    Posts
    1

    Question Count if formula to count absent days

    Hi, I would appreciate some help on the following problem
    I have a worker absent list for certain time. In the picture you can see absent list for 10 days.
    In the id column you can see the ID number of a particular employee and in current status , you can see 'A'. That means the worker was absent 1 day in those 10 days.
    there is a row gap between 2 information which is unnecessary but our software produces information that way.
    When a worker is absent for more than 1 day, his id, name comes in the first row, in the next record , only ID number comes. So if a worker, say, 3 days absent,his ID and name would appear in the 1st row, next 2 consecutive days , only ID would show. So from the record I can calculate manually that he was 3 days absent.
    However I need to calculate each employees total days of absent in a separate column so with each ID so that I can see how many days he was absent in a period of time.
    Your kind help needed please.
    For some reason I can't attach the picture, system shows error, so gave the link of the image
    Last edited by salsi; 02-22-2017 at 02:26 AM. Reason: wrong html

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,027

    Re: Count if formula to count absent days

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,439

    Re: Count if formula to count absent days

    Try this ...

    =Countif(RangeID,ID)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Count of Employees Absent on a Particular Date
    By Cyn1c in forum Excel General
    Replies: 15
    Last Post: 07-28-2016, 06:19 AM
  2. Trying to create a formula to count days based on 8 hour days
    By meadnl89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-03-2016, 06:41 PM
  3. Formula to count days and reset count
    By daviddelatorre in forum Excel General
    Replies: 8
    Last Post: 05-27-2015, 09:25 AM
  4. [SOLVED] Count number days absent for different employees with multiple date ranges.
    By monkeypants in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-20-2015, 08:32 PM
  5. Count for present & absent days
    By Ajit Munj in forum Excel General
    Replies: 8
    Last Post: 10-08-2013, 01:13 AM
  6. Help me! I want to count the working days of worker with count and if array.
    By tuyetngapt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2013, 12:52 AM
  7. Replies: 5
    Last Post: 08-29-2012, 05:25 PM

Tags for this Thread

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