+ Reply to Thread
Results 1 to 4 of 4

Count number

  1. #1
    Registered User
    Join Date
    01-09-2015
    Location
    london, england
    MS-Off Ver
    2013
    Posts
    8

    Count number

    Hi,

    I need something which looks-up the name and wk and then shows the count on N or O per person. For example Alan D has 2 N's in week one.

    This is what I have; SUMPRODUCT(--(Data!A2:A6=*person name*),--(Data!B1:B10=Wk1),--(B3:K7=N)). Thank you

    I have attached a spreadsheet.upload.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count number

    Hi,

    It's not clear where you want the results, nor indeed precisely what results you do want.

    Would you manually add them and upload the workbook?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Count number

    Hi, welcome to the forum

    Not sure if this is what you want, I put this in M2...
    =COUNTIFS(B3:K3,"N",$B$1:$K$1,1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Count number

    This will work as well...
    =SUMPRODUCT(($A$3:$A$9=A3)*($B$1:$K$1=1)*($B$3:$K$9="N"))

    Or, if you want to hard-code the name...
    =SUMPRODUCT(($A$3:$A$9="Alan D")*($B$1:$K$1=1)*($B$3:$K$9="N")

+ 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 number of occurrences but if there are consecutive matches count them as one
    By michaljireht in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-26-2013, 08:26 PM
  2. Replies: 3
    Last Post: 11-18-2013, 02:06 AM
  3. [SOLVED] Filtering macro, count number of rows and include count in last column.
    By Folshot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2012, 07:17 AM
  4. Count row number and populate column with count number
    By ajay1967 in forum Excel General
    Replies: 3
    Last Post: 12-01-2011, 02:49 PM
  5. Replies: 3
    Last Post: 05-18-2006, 08:55 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