+ Reply to Thread
Results 1 to 9 of 9

Count number of dependents per employee

  1. #1
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Count number of dependents per employee

    Hi all, I'm sure this isn't tough to do, but nothing I'm trying is working for me.

    I've received a spreadsheet of employees and their dependents (beneficiaries). I need to count how many dependents there are per each employee. I have "Position ID" in column A, which is the employee that works for the company. This employee can be listed on multiple rows, or listed multiple times. Once for each dependent, which is listed over is in column F & G, and is labeled with I have "Dep/Ben last Name" for column F and Dep/Ben First Name" for column G.

    Basically, I need something like:

    If in cell A2 through A1482, we need to count how many dependents there are in columns F & G.


    Let me know if that doesn't make any sense, and I'll try to re-write my question again.
    Last edited by Delta729; 06-26-2017 at 07:01 PM.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Count number of dependents per employee

    Hi
    are the dependents listed only once, or are they duplicated? Also, does every dependent have a first name in column G and last name in column F?
    If both are true, then counting the number of times an employee's name is in column A and there is a value in column F or G should count dependents for that employee.

    if so, a formula like this might work for the employees whose name is in A2:

    Please Login or Register  to view this content.
    If that doesn't work, could you upload a dummy approximation of your sheet with made-up names so we can see its configuration (obviously it contains confidential information so you can't share the sheet itself).

  3. #3
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Count number of dependents per employee

    Thanks for reviewing this. Yes the dependents are listed only once, but the employee (ID) will show up for each occurrence. Yes, every dependent will have a first and last name in columns F & G. The current formula only seems to look at the employee ID. Do you know how I could adjust that formula?
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Count number of dependents per employee

    Hi
    does this work better?
    Please Login or Register  to view this content.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Count number of dependents per employee

    This employee can be listed on multiple rows, or listed multiple times. Once for each dependent,
    Won't this also work?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Count number of dependents per employee

    Count of the dependent, which is in column F & G. I re-uploaded with the intended output in column C.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Count number of dependents per employee

    Hi
    if you're looking for a running total in the A column then this formula copied down should do it:

    Please Login or Register  to view this content.
    or, if there are no blank cells in column F, adapting FR's more economical formula:

    Please Login or Register  to view this content.

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

    Re: Count number of dependents per employee



    =COUNTIFS(A$2:A2,A2,F$2:F2,"<>"&"")

  9. #9
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Count number of dependents per employee

    yep thanks for the correction phuocam

+ 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] Unable to count the number of days worked by each employee using pivot!
    By EricKamei in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 08-03-2014, 02:23 PM
  2. Replies: 4
    Last Post: 01-04-2013, 02:21 PM
  3. Merge two sheets into one matching dependents to employee records
    By nabberooski in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 12-06-2012, 06:04 PM
  4. Count Number of Unique Dates For Employee Name
    By Eddiegnz1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2012, 12:20 PM
  5. [SOLVED] Highlight cells which have no dependents or duplicate dependents
    By Ali-imran in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-08-2009, 09:02 AM
  6. count the number of nulls for a specific employee
    By lb0224 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-21-2008, 11:40 AM
  7. Return employee name when the employee's number is entered
    By Mike in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-16-2005, 03:05 PM

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