+ Reply to Thread
Results 1 to 5 of 5

counting the same number of rows based on condition

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    india
    MS-Off Ver
    excel 2007
    Posts
    2

    counting the same number of rows based on condition

    I have a excel sheet (attached) with four columns like Author, Title, Year and Department. I am trying to count the how many copies of the same book by same author in same department is available ? I tried a lot and finally failed. Please help me in this regard with a macro or VBA.
    I need the output in other excel sheet with columns as (attached as output.xlsx)

    AUTHOR TITLE DEPT COUNT

    a x d 3
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: counting the same number of rows based on condition

    Try the attached.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: counting the same number of rows based on condition

    Another:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-29-2013
    Location
    india
    MS-Off Ver
    excel 2007
    Posts
    2

    Re: counting the same number of rows based on condition

    Thanks for ur help and I executed the code sir. I also attached the file for ur information sir. In the input sheet, the author Abbas Abdul K has published 3 books out of that 2 are with same title and 1 with different title in same department. Similarly Abbey Michael has published 5 books with same with title; in that one is in different department (CSIT). I need how many copies of each book with same title and same author in same department is available sir. I also attached the correct count value in the output file sir. please help me
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: counting the same number of rows based on condition

    Since there are two people replied to your thread, you need to refer them by name so that we know whom you are referring to.
    I have got a slightly different answer on one raw.
    Abbey Michael Oracle 8i:a Beginners Guide
    Abbey Michael Oracle 8i:a beginners guide

    Are not same
    Attached Files Attached Files

+ 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. Counting the number of empty cells based on a condition in a range
    By naga in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2013, 10:01 AM
  2. Counting Names based on a condition
    By sshishirkumar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2012, 03:49 AM
  3. Counting based on a condition problem
    By mleonard in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2010, 02:46 PM
  4. Counting a non-number value with a condition
    By servant117 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 05-08-2008, 01:50 PM
  5. Replies: 2
    Last Post: 06-19-2006, 09:10 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