+ Reply to Thread
Results 1 to 6 of 6

Counting Question

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Counting Question

    I have a table with 2 columns:
    Column A is called chapter title, Column B is a time in minutes:seconds
    As an example there are 10 Rows in my sheet. Each row has a time value in column B. BUT not each row has a value in Column A. Ex: Chapter one could have 3 times, Chapter 2 could have 4 and Chapter 3 Could have 3.
    How could I easily count the number of Chapters AND count the number of times in each chapter.

    Thanks in advance

  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: Couting Question

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.
    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
    Registered User
    Join Date
    02-28-2012
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Counting Question

    Thank you
    Attached is an image of the sheet.Picture 1.png

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,450

    Re: Counting Question

    Please post a sheet, not a picture - Thx

  5. #5
    Registered User
    Join Date
    02-28-2012
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Counting Question

    untitled.xlsx

    Thanks Again, here is the file

  6. #6
    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: Counting Question

    Hi,

    The chapter count is simply
    =COUNTIF(B:B,"Chapter *")-1

    For the number of times in each chapter enter in D2
    =IF(AND(B2<>"",B3=""),1,1+D1)

    Use a conditional 'formula is' format on D2
    =D2<D3
    and set the font colour to white and copy D2 down

    Regards

+ 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