Closed Thread
Results 1 to 8 of 8

Using Countifs/Match/Index formula to count data in different columns

  1. #1
    Registered User
    Join Date
    02-17-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    25

    Using Countifs/Match/Index formula to count data in different columns

    I am trying to count data that spans multiple columns, but only where it matches someone's name.

    For instance, I have the below sample table.

    Week1 Week2 Week3
    Name3 On Time On Time On Time
    Name1 On Time Not Submitted On Time
    Name2 Not Submitted Not Submitted


    This is my base data. I'm trying to count how many times someone has submitted their work "On Time." But I want to be able to search for the name1-3, not have them in specific rows. So I have a seperate table below that I am using to count the data with.

    On Time
    Name1
    Name2
    Name3


    I have also attached my example. I have a formula in column B2 to count this data, but it is not working properly. Can anyone help me with this? Am I using the right kind of formula, or do I have the wrong idea complete?

    Please Login or Register  to view this content.
    Book1.xlsx

    Thanks!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Using Countifs/Match/Index formula to count data in different columns

    Some minor tweaks to your formula needed

    Use in C2
    =COUNTIF(INDEX($F$2:$I$11, MATCH(A2, $E$2:$E$11, 0),),"On Time")

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    02-17-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Using Countifs/Match/Index formula to count data in different columns

    Thank you so much. I have been going crazy wondering why this wouldn't work. Such a simple mistake. Thanks!!!

  4. #4
    Registered User
    Join Date
    06-26-2017
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    1

    Re: Using Countifs/Match/Index formula to count data in different columns

    Guys...can anyone help me....i am also trying to calculate the person how many times present so that i can make graph on this.
    i am using formula like this,
    =COUNTIF(INDEX(E2:L11,MATCH(A2,E2:E11,0)),"P")

    Name P Count Days Absent Name 1 2 3 4 5 6 7
    Anup #REF! 7 #REF! Rajesh P P A P P A A
    Amar #REF! 7 #REF! Anup A A P P A P A
    Rajesh #N/A 7 #N/A Soham P A P P P P P
    Vinod #REF! 7 #REF! Vinod P P P P A P A
    Sachin #REF! 7 #REF! Vinay A P P A A P A
    Soham #N/A 7 #N/A Amar P P P P P A P
    Manoj #REF! 7 #REF! Santosh A A P P A P A
    Santosh #N/A 7 #N/A Sachin A P P A P A P
    Kuldeep #REF! 7 #REF! Kuldeep P P P P P P A
    Vinay #N/A 7 #N/A Manoj P P P P A P P

  5. #5
    Registered User
    Join Date
    06-30-2017
    Location
    Pittsburgh
    MS-Off Ver
    2013
    Posts
    1

    Re: Using Countifs/Match/Index formula to count data in different columns

    What if I want to solve an extension to this problem. Let's say Name1 appears more than once in column A and I want to see the count of all 'On Time' for Name1 for Week1? Please suggest.

  6. #6
    Registered User
    Join Date
    01-13-2020
    Location
    Los Angeles, CA
    MS-Off Ver
    2016
    Posts
    1

    Re: Using Countifs/Match/Index formula to count data in different columns

    I have the same question. Can anyone help please?

  7. #7
    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,926

    Re: Using Countifs/Match/Index formula to count data in different columns

    Quote Originally Posted by Brookske20 View Post
    I have the same question. Can anyone help please?
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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

  8. #8
    Registered User
    Join Date
    05-08-2023
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    1

    Re: Using Countifs/Match/Index formula to count data in different columns

    Say thanks, Click *

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Countifs Index Match
    By Keelin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-16-2014, 08:38 AM
  2. [SOLVED] Match Issue - Consolidate Columns of Data With Match/Index/etc?
    By excelsior123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2014, 05:14 PM
  3. Increment columns in INDEX and MATCH formula - ROWS and COLUMNS
    By nickmangan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2012, 10:38 AM
  4. Replies: 4
    Last Post: 07-20-2012, 07:51 AM
  5. INDEX/MATCH formula looking in 2 columns and 1 row
    By Ben.SFM in forum Excel General
    Replies: 9
    Last Post: 06-28-2012, 08:37 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