+ Reply to Thread
Results 1 to 5 of 5

count of items under specific category

Hybrid View

  1. #1
    Registered User
    Join Date
    06-30-2011
    Location
    New Delhi
    MS-Off Ver
    Excel 2003
    Posts
    46

    count of items under specific category

    hi,

    In this sheet i need the count (it is 10 for contig 1 in example) of items in contig 1 under column B to be displayed in cell C2 (adjacent to Contig 1). Similarly it should display count(here it is 7 in example) of items in contig 2 under column B in cell C12.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: count of items under specific category

    Try:

    =IF(A2="","",COUNT(B2:INDEX(B3:B$27,MATCH(TRUE,INDEX(A3:A$27<>"",0),0)-1)))

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-30-2011
    Location
    New Delhi
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: count of items under specific category

    hey its working only with numerics in Column B, but let us suppose if we have some alphabetic information, like name of students, then how will it have to be modified......

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: count of items under specific category

    You should always give realistic data to start!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: count of items under specific category

    If you add any word in A28, like "end", then you can use formula:

    =IF(A2="","",COUNTA(B2:INDEX(B3:B$28,MATCH(TRUE,INDEX(A3:A$28<>"",0),0)-1)))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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