+ Reply to Thread
Results 1 to 5 of 5

Count occurences based on name

  1. #1
    Registered User
    Join Date
    08-22-2011
    Location
    Laval quebec
    MS-Off Ver
    Excel 2007
    Posts
    93

    Count occurences based on name

    Hi Team,

    I need some help with a formula.

    I have a workbook where employees enter their activities throughout the day with other employees.

    In my workbook i have 2 sheets. in sheet 2 I need a formula that counts the number of times an employee has done a specific activity.

    The name of the employee is in Sheet1 Column A and the activity they do is in Sheet1 column D.

    I tried to use the SUMIF formula but winding up with a result of 0 every time..I think it's because the activities are not actually numbers to be able to SUM.

    Can you enlighten me on how I can resolve this please.

    Thank you !

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Count occurences based on name

    Sounds like you need to use COUNTIFS, but it will be easier to help if you upload your workbook.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count occurences based on name

    Try something like this...

    =COUNTIFS(Sheet1!A:A,"Name",Sheet1!D:D,"Activity")

    Replace Name and Activity with the actual criteria or cell reference.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-22-2011
    Location
    Laval quebec
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Count occurences based on name

    Great Tony's formula worked ! Thanks guys !

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count occurences based on name

    You're welcome. Thanks for the feedback!

+ 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. Count Number of occurences Across Columns based on Similar Column Headers
    By vidyuthrajesh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-27-2013, 06:42 PM
  2. How to count the occurences
    By Elainefish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2013, 04:00 AM
  3. Count of Occurences based on multiple criteria
    By hilpup24 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-09-2013, 08:13 AM
  4. Count number occurences based on criteria Column
    By SamCrome in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2013, 04:32 PM
  5. [SOLVED] Count occurences
    By AvalancheMike in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2005, 08:06 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