+ Reply to Thread
Results 1 to 8 of 8

Running count of ref codes across all sheets of monthly data

  1. #1
    Forum Contributor
    Join Date
    08-19-2020
    Location
    Dubai
    MS-Off Ver
    Office365
    Posts
    131

    Running count of ref codes across all sheets of monthly data

    Hi,

    required a formula to identifying about how many times the particular refer code repeated in a full month of date with different sheets.


    Here is the formula which i used to count in a single sheet ref codes =B6&":"&COUNTIF($B$6:$B6,B6)


    need a formula to adding a previous sheet ref codes count for a running count.


    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Running count of ref codes across all sheets of monthly data

    Hi,

    In A4 of each sheet:

    =B4&":"&SUM(IF(SEQUENCE(ROWS(B$4:B$12)*SHEETS(Sheet1:Sheet3!A1))<=SHEET()*ROWS(B$4:B$12),N(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",1,Sheet1:Sheet3!B$4:B$12)&"</b></a>","//b")=B4)))


    Copy down as required.

    Amend the part Sheet1:Sheet3 as required (such that it comprises the leftmost and rightmost worksheets in your workbook).

    Regards
    Last edited by XOR LX; 08-30-2020 at 04:55 AM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Contributor
    Join Date
    08-19-2020
    Location
    Dubai
    MS-Off Ver
    Office365
    Posts
    131

    Re: Running count of ref codes across all sheets of monthly data

    Hi,

    Thanks for you reply to my query,

    I pasted the formula in a worksheet as you advised, may be some issue in calculation,there is Cell B4 code is A1, actually it is to be count after inserting the formula

    is A1:1 now its calculating A1:2


    for your reference i enclosed sample.



    Thanks once again,
    Attached Files Attached Files

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Running count of ref codes across all sheets of monthly data

    Not sure I understand what's wrong with the current results my formula returns.

    The formula in cell A4 of Sheet1 returns "A1:2" because there are:
    • 2 entries of "A1" in column B of Sheet1

    The formula in cell A4 of Sheet2 returns "A1:4" because there are:
    • 2 entries of "A1" in column B of Sheet1 and
    • 2 entries of "A1" in column B of Sheet2

    The formula in cell A4 of Sheet3 returns "A1:6" because there are:
    • 2 entries of "A1" in column B of Sheet1 and
    • 2 entries of "A1" in column B of Sheet2 and
    • 2 entries of "A1" in column B of Sheet3

    i.e. a running count of code "A1" in column B for all sheets up to and including the active sheet.

    Regards

  5. #5
    Forum Contributor
    Join Date
    08-19-2020
    Location
    Dubai
    MS-Off Ver
    Office365
    Posts
    131

    Re: Running count of ref codes across all sheets of monthly data

    yes you're correct,


    it is adding the total entries of the particular entered code in column B affecting to all sheets, sheet by sheet ,How ever it is use full, Running count of column B across the all sheets much better use full than this.

    Thanks,

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Running count of ref codes across all sheets of monthly data

    Ah, that case is much simpler!

    =SUMPRODUCT(N(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",1,Sheet1:Sheet3!B$4:B$12)&"</b></a>","//b")=B4))

    Regards

  7. #7
    Forum Contributor
    Join Date
    08-19-2020
    Location
    Dubai
    MS-Off Ver
    Office365
    Posts
    131

    Re: Running count of ref codes across all sheets of monthly data

    Thank you so much,


    solved, very much Considerable solution.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742
    You're welcome!

    Regards

+ 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 Monthly filtered data
    By The.Dude in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-04-2019, 10:50 AM
  2. [SOLVED] Gather data from all sheets using codes
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-24-2015, 05:26 AM
  3. fixed cost monthly that may change used in running balance not changing past data
    By AkaTrouble in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2015, 03:47 PM
  4. Replies: 1
    Last Post: 12-10-2013, 12:28 AM
  5. Keep a running count of Overtime on a Monthly basis
    By chriswhite1982 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2013, 11:43 AM
  6. Running Monthly Totals on Multiple Sheets
    By Dragunov in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-29-2007, 12:57 AM
  7. Replies: 6
    Last Post: 11-28-2006, 01:08 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