+ Reply to Thread
Results 1 to 3 of 3

count the number in if condition is met

  1. #1
    Registered User
    Join Date
    06-30-2015
    Location
    Singapore
    MS-Off Ver
    2012
    Posts
    1

    count the number in if condition is met

    I have this table where I would like to count the number if condition are meet

    condition:
    if it is HR and 1 then count, others will ignore till the end of table

    end result:
    2

    may I know which formula to use, I'm not very familiar with excel formula
    thanks


    dept status
    hr 1
    it 1
    hr 0
    fi 0
    hr 1

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: count the number in if condition is met

    I should solve this with a pivot table.


    Rijlabels Som van status
    fi 0
    0 0
    hr 2
    0 0
    1 2
    it 1
    1 1
    Eindtotaal 3
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: count the number in if condition is met

    Dept in Column A, Status in Column B

    =COUNTIFS(A2:A6,"hr",B2:B6,1)

+ 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. Replies: 2
    Last Post: 05-20-2015, 08:26 AM
  2. Need to count number of rows until another specified condition is met.
    By UMBiii in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2014, 02:29 AM
  3. [SOLVED] Count number of name by condition of other column
    By him0331 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-12-2014, 09:50 AM
  4. [SOLVED] Count the number of times multiple condition are met
    By wishkey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2013, 07:02 PM
  5. count the number of cells if condition satisfy
    By rosh@excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-22-2012, 10:09 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