+ Reply to Thread
Results 1 to 6 of 6

Count times name occurs in a week

Hybrid View

  1. #1
    Registered User
    Join Date
    02-26-2020
    Location
    Cornwall
    MS-Off Ver
    2016
    Posts
    4

    Count times name occurs in a week

    Hello,
    I wish to count the number of times a name occurs in a week. I have data how many times companies are invoiced in a week, with each line being one invoice.
    Ive used a simple example attached.
    Each week is just a number. The final table, possibly be week number, list of companies, then how many times they occured in that week.

    I've wondered if this would be a formula or pivot table.

    thank you in advance for your help.
    Paul
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Count times name occurs in a week

    with Power Query (Get&Transform)

    week client Count
    1
    bbc
    3
    1
    itv
    2
    1
    c4
    2
    1
    c5
    3
    2
    bbc
    1
    2
    itv
    4
    2
    c5
    1
    3
    bbc
    3
    3
    c4
    2
    3
    c5
    2


    // Table1
    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        Grp = Table.Group(Source, {"week", "client"}, {{"Count", each Table.RowCount(_), type number}})
    in
        Grp
    or Pivot inside attachment
    Last edited by sandy666; 03-08-2023 at 08:34 AM.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,419

    Re: Count times name occurs in a week

    Formula:

    =COUNTIFS(A:A,D4,B:B,E4)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    02-26-2020
    Location
    Cornwall
    MS-Off Ver
    2016
    Posts
    4

    Re: Count times name occurs in a week

    Hello,
    thank you very much to both of you, I tried Glenns as it looked the more simple and worked fine.
    I will look at yours Sandy this afternoon as the pivot table looks ideal as well.
    thank you both.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Count times name occurs in a week

    You are welcome



    if the problem is solved, make us happy and hit Add Reputation (bottom left corner next to the post that was helpful)
    and then mark the thread as SOLVED (top above your first post - Thread Tools)

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,419

    Re: Count times name occurs in a week

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Count how often a value occurs per week
    By eugz in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-29-2022, 02:46 AM
  2. How can I count per year and per week the total number of times a code occurs
    By Stefan Deckers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2020, 12:37 PM
  3. [SOLVED] Count how many times a value occurs IN A ROW [consecutively]
    By helloxxx in forum Excel General
    Replies: 8
    Last Post: 07-22-2019, 02:47 AM
  4. Replies: 1
    Last Post: 06-03-2014, 06:31 PM
  5. Count how many times a letter occurs
    By GreenMartian in forum Excel General
    Replies: 2
    Last Post: 03-15-2009, 04:30 AM
  6. I would like to count the # of times a value occurs in Col B base
    By shopaholic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2005, 12:30 PM
  7. [SOLVED] Macro to Count how many times a number occurs on a day
    By SirMetro in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-02-2005, 02:06 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