+ Reply to Thread
Results 1 to 2 of 2

Counting in excel

  1. #1
    Registered User
    Join Date
    02-17-2012
    Location
    las vegas
    MS-Off Ver
    Excel 2007
    Posts
    33

    Counting in excel

    Please help i have a spreadsheet that I need to count employees worked in a month.;

    Ex John Smith Showed up 5 times in my spreadsheet but he technically worked 2 days. I have attached a spreadsheet to clearly explain things. Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Counting in excel

    hi there. try this array formula:
    =SUM(IF(FREQUENCY(IF($B$2:$B$14="John Smith",$A$2:$A$14),$A$2:$A$14)>0,1))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    you may refer the red portion to a cell containing "John Smith" too.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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. Counting occurrences not values.. Counting blocks of words in columns
    By Flydd in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-01-2016, 06:42 PM
  2. Excel Row Counting
    By aidin68 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-05-2015, 10:42 AM
  3. Excel Counting Help
    By insomniacomi in forum Excel General
    Replies: 1
    Last Post: 03-06-2014, 03:43 PM
  4. [SOLVED] Counting Matching values in two separate ranges without counting duplicates
    By Rhall6310 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-01-2014, 03:35 PM
  5. Replies: 3
    Last Post: 03-01-2012, 06:17 AM
  6. Replies: 6
    Last Post: 02-04-2012, 06:57 PM
  7. [SOLVED] Counting with Excel
    By Becks in forum Excel General
    Replies: 4
    Last Post: 01-05-2006, 09:40 AM

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