+ Reply to Thread
Results 1 to 5 of 5

Countifs, index, match help wanted

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    6

    Countifs, index, match help wanted

    So I have a massive sheet with data entries I want to summarize in another sheet. I have enclosed a smaller version of the data sheet. Basically A2:R2 in the sheet called 2014 (see enclosed file) is column names and they don't always end up in the same order because of not so logical reasons. I want to have in the summary-sheet for each column the amount of entries that are not "-". The entries I want to count can be numbers or greather than/lesser than a number (e.g. ">30" ), but if there is no entry it will always say "-" instead of a blank cell.
    I'm trying to solve this problem using the following formula I found for the English column name, but with no success.

    =COUNTIFS(INDEX('2014'!$A$3:$R$32;0;MATCH("English";'2014'!$A$2:$R$2;0));"<>-")

    Not sure what I'm doing wrong

    Another thing I want to be able to do is to count the number of siblings. Every person that has the same ID-number are siblings and I'm trying to count the number of duplicates in the 2014-sheet to get the number of siblings. Is there a formula to count duplicates?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Countifs, index, match help wanted

    Your formula works on your example sheet (result is 2). Look for extra characters/spaces in your workbook.

    Do you want to know how many siblings there are for a specific ID? or all ID's. So if 2 people share an id, is that 1 sibling or 2? What about 1 person with an ID, is that 0 or 1?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-23-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Countifs, index, match help wanted

    Thank you for your quick reply, ChemistB.

    I don't get any result but the "NAME?"-error, do you see any problems with spaces that I have missed?

    I want siblings for all ID's, so if 2 people share ID the answer would be 2 and if it's a unique ID it would return 0.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Countifs, index, match help wanted

    #Name means there's something (text) in the formula that excel doesn't recognize. Make sure your Quote marks are real quotes and not "Smart quotes", Go to Formula Tab and click on "Error Checking" and then "Show Calculation Steps" Maybe that will help.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Countifs, index, match help wanted

    For Siblings,
    Using an intermediate column, let's say S. In S3 copied down, assuming the ID is in Column A
    =IF(COUNTIF($A$3:$A3, A3)>1,0, IF(COUNTIF($A:$A,A3)=1,0, COUNTIF($A:$A, A3)))
    Then just SUM(S:S)

+ 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] Using Countifs/Match/Index formula to count data in different columns
    By satania in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-09-2023, 04:00 AM
  2. Countifs, Index and match is not working together
    By vinod2802 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-03-2015, 08:06 AM
  3. Countifs Index Match
    By Keelin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-16-2014, 08:38 AM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  6. [SOLVED] Index And Match to find second occurence Help wanted
    By tropsog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2013, 12:24 PM
  7. [SOLVED] Variable "sheet-name" and "range-name" wanted in INDEX/MATCH-function
    By Fiebuls in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2012, 04:09 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