+ Reply to Thread
Results 1 to 4 of 4

Count numbers of rows (up) until specific Criteria

  1. #1
    Registered User
    Join Date
    05-10-2021
    Location
    Miami
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Count numbers of rows (up) until specific Criteria

    I need to keep an Expense Log for my Boss. It keeps track of each transaction. If the QTY column I enter "T" instead of a number it should add the total for all the items up from that "T" and until the prior "T"

    The problem is I can't figure out a formula to tell me how many rows are there until the previous "T"

    Thanks

    Mauro
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Count numbers of rows (up) until specific Criteria

    I'd copy down the request by and date ordered column. Then use your subtotal feature in the data section.

    Pete

  3. #3
    Registered User
    Join Date
    05-10-2021
    Location
    Miami
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: Count numbers of rows (up) until specific Criteria

    That could work but I would still like to know what formula goes on column "C" to sum up automatically the numbers on column "B" until it finds another letter T as a criteria.

    SUMUP WHEN T.JPG
    Attached Files Attached Files
    Last edited by Niproman; 05-10-2021 at 11:27 PM. Reason: Better Explanation

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Count numbers of rows (up) until specific Criteria

    Helper column: in D3

    =IF(B3="T",0,COUNTIF($B$3:B3,"T")+1)

    In TOTAL line e.g C6

    =IF(B6="T",SUMIF($D$3:D6,D5,$B$3:B6),"")

    note the offset (in RED)
    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. [SOLVED] Count specific numbers within a group of numbers
    By ickle1999 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2021, 11:06 AM
  2. Replies: 9
    Last Post: 03-12-2021, 07:54 PM
  3. [SOLVED] count rows in specific criteria
    By keshavtale in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-20-2018, 08:10 AM
  4. [SOLVED] Function possible for Using specific number to count other specific numbers total ?
    By Karnik in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-02-2015, 03:35 AM
  5. Replies: 3
    Last Post: 02-16-2013, 06:10 PM
  6. specific count when rows meet certain criteria
    By D Thomas in forum Excel General
    Replies: 0
    Last Post: 01-13-2013, 08:35 PM
  7. Function to Count Number of Consecutive Rows with a Specific Criteria?
    By Templee1 in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 09-06-2005, 03:05 PM

Tags for this Thread

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