+ Reply to Thread
Results 1 to 4 of 4

Total Entries between Two Dates in Table

  1. #1
    Registered User
    Join Date
    03-17-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Total Entries between Two Dates in Table

    Hi,

    I'm an Excel newbie using 2010, but have been given a rather daunting task that I could use some help with!

    I have a lot of data organised in a table, something such as:

    Column A: Name, Column B: City, Column C: Date Entered

    I can obviously filter this table to show the values I need, but I need it to automatically tell me the total amount of people entered per week, per city on a separate worksheet.

    I understand I could use a pivot table for some of this, but I want to further automatically manipulate the data once I have the totals (for example, adding a financial value for each, etc) which I'm not certain how to do with a pivot.

    So, ideally what I would like is a formula that says total entries in Table 1 that are marked Sheffield in Column B and have a value including or between 01/03/2014 and 07/03/2014 in Column C.

    I'm really grateful for any help you can offer me.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Total Entries between Two Dates in Table

    You can use COUNTIFS for this. List your Cities across in row 1, starting with B1. Put the first date in A2 and this formula in A3:

    =A2+7

    then copy this down as far as you need to, then in B2 you can have this formula:

    =COUNTIFS(Sheet1!$B:$B,B$1,Sheet1!$C:$C,">="$A2,Sheet1!$C:$C,"<"&$A2+7)

    then copy across and down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-17-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Total Entries between Two Dates in Table

    Thank you, Pete, this looks to be the right sort of thing!

    If I want the formula is specify just one city, is there a way to put the city name into the formula, rather than identify a separate cell with the value entered?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Total Entries between Two Dates in Table

    Like this...

    =COUNTIFS(Sheet1!$B:$B,"Sheffield",Sheet1!$C:$C,">="$A2,Sheet1!$C:$C,"<"&$A2+7)

    However, using cells to hold the criteria is a better practice.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Pivot Table Total doesn't match data total
    By CNL.Excel in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-31-2013, 07:40 PM
  2. [SOLVED] Automatically add multiple original field entries total (that has multiple entries)
    By steverokh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2013, 01:20 AM
  3. [SOLVED] Total number of entries
    By neiluk121 in forum Excel General
    Replies: 4
    Last Post: 05-29-2012, 12:36 PM
  4. Calculate Total Entries
    By Arkman in forum Excel General
    Replies: 3
    Last Post: 10-28-2009, 11:45 AM
  5. TOTAL NUMBER OF ENTRIES
    By rostroncarlyle in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-16-2005, 01:25 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