+ Reply to Thread
Results 1 to 3 of 3

Count totals of dates per location

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Count totals of dates per location

    Hi
    I have a Spreadsheet with two tabs (Service Visits) & (Work in Progress).

    On the (Service Visits) tab I have a table that shows all the locations (col Q2:Q88) and then the dates across the top (R1:AC1) Jan-21, Feb-21 etc.

    On the (Work in Progress) tab I have a table that has the locations in col A2:A990 (there are multiple instances of the same location), along the top I have Year 1, Year 1.5, Year 2 etc (up to Year 5.5). In these cells there is a date where the service takes place (e.g. Jan-22, Mar-21).

    What I want is the (Service Visits) table to count the instances of the services for each location for each date, (e.g. GOSH Jan-21 = 10, Jan-22 = 5 etc).

    I have tables on the same tab that count the total instances of the dates, but I need to know how many are for which location.

    I'm not sure what formula to achieve this, any help would be appreciated.

    Thanks
    Kieran
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Count totals of dates per location

    In R2 copied across and down
    Formula: copy to clipboard
    =SUMPRODUCT((TEXT(WIP_Table[[Year 1]:[Year 5.5]],"mmm-yy")=Table9[[#Headers],[Jan-21]])*(WIP_Table[Hospital]=[@Location]))


    In "Work in Progress" you have data that extends beyond the table (i.e. Row 526) This data is not being summed.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Re: Count totals of dates per location

    Thanks for that ChemistB, much appreciated

+ 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 unique occurrences between two dates and by location
    By MakoTheDog in forum Excel General
    Replies: 5
    Last Post: 10-12-2020, 03:15 PM
  2. Replies: 8
    Last Post: 07-20-2018, 11:52 AM
  3. [SOLVED] Get totals according to range for dates
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2015, 02:13 PM
  4. [SOLVED] Sum totals across a range of dates
    By HJHamm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2015, 09:47 AM
  5. Merge Dates and Totals
    By bd528 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2011, 09:22 AM
  6. How to make mtd and wtd totals on dates
    By ashley0578 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-23-2006, 06:26 PM
  7. [SOLVED] Totals by type between dates
    By JerryS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2006, 09:00 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