+ Reply to Thread
Results 1 to 8 of 8

Formaula To CFalculate Total Within Dates

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Formaula To CFalculate Total Within Dates

    Hi all,

    I have attached an example workbook to assist, which has 'Date' in column A, 'Type' in column B and 'Total' in column C. I am looking for a formula that will allow me to calculate the total between two dates, but excluding something in the 'Type' column (B).

    Example: Total 1/07/2013 to 31/07/2013, consecutively, excluding Type1 = 8187.

    I know this from using the filter, but is there a formula that can do it automatically? I've tried sumifs, sumproduct to no avail.

    Cheers, A
    Last edited by avendi; 08-12-2014 at 10:26 PM. Reason: Wrong File

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,717

    Re: Formaula To CFalculate Total Within Dates

    No file has been attached to the thread.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Formaula To CFalculate Total Within Dates

    It won't let me uploads my file for some reason. I'll try again.

  4. #4
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Formaula To CFalculate Total Within Dates

    Hopefully this time...
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formaula To CFalculate Total Within Dates

    I used this...
    =SUMIFS($C$2:$C$3600,$A$2:$A$3600,">="&DATE(2013,7,1),$A$2:$A$3600,"<="&DATE(2013,7,31))
    but I came up with 9212
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formaula To CFalculate Total Within Dates

    deleted forum-induced duplicate thread

  7. #7
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Formaula To CFalculate Total Within Dates

    Thanks for the reply. 9212 is the total for all within that date range...

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formaula To CFalculate Total Within Dates

    oops sorry, forgot the last part...
    =SUMIFS($C$2:$C$3600,$A$2:$A$3600,">="&DATE(2013,7,1),$A$2:$A$3600,"<="&DATE(2013,7,31),$B$2:$B$3600,"<>type1")
    =8187

  9. #9
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Formaula To CFalculate Total Within Dates

    Thanks very much; great stuff.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formaula To CFalculate Total Within Dates

    Happy to help

+ 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. Formaula to convert data
    By aakhan2011 in forum Excel General
    Replies: 7
    Last Post: 07-09-2014, 01:30 PM
  2. formaula problem
    By lsapp289 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2013, 03:07 AM
  3. Excel Formaula
    By timmycl_7 in forum Excel General
    Replies: 1
    Last Post: 06-11-2008, 07:08 AM
  4. insert rotating formaula
    By Rich Mcc in forum Excel General
    Replies: 2
    Last Post: 03-14-2006, 09:25 AM
  5. [SOLVED] Formaula to multiply and add
    By Frank Malone in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-05-2006, 05:55 AM

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