+ Reply to Thread
Results 1 to 7 of 7

calculate the sum within a specific date

  1. #1
    Registered User
    Join Date
    01-04-2023
    Location
    Vienna
    MS-Off Ver
    Office 365
    Posts
    7

    calculate the sum within a specific date

    Hi guys,

    I think I need some help.

    I am working on a little sheet which should sum up all numbers within a specific periode of time.
    In my case I want to sum up for example all emails sent within the first month of a year, or the second month and so on.

    I tried it with the =sumif function but got no result.

    It would be great if it would be dynamic. As I try to make a template for the next years - just by changing the year.

    I also added a demo file.

    Thank you in advance!
    Attached Files Attached Files
    Last edited by bigcuno; 01-11-2023 at 04:54 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: calculate the sum within a specific date

    The format of your data does not lend itself to an easy solution. I suggest you change it to a table wirh columns A:D and the data down the rows.
    Attached Files Attached Files
    Last edited by JohnTopley; 01-11-2023 at 08:30 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: calculate the sum within a specific date

    Try

    for January

    =SUMPRODUCT(($A$4:$F$4="Datum")*($A$4:$F$50>=$K$3)*($A$4:$F$50<=EOMONTH($K$3,0))*($D$4:$I$4=$K$4),($D$4:$I$50))


    set k3=01/01/2023

    I changed headings to match formula needs (in RED)
    Attached Files Attached Files
    Last edited by JohnTopley; 01-11-2023 at 08:39 AM.

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

    Cool Re: calculate the sum within a specific date

    with Power Query

    Month Name Geschäftsfälle Bepreisungen Anzahl der Emails (Ein- und Ausgang)
    January
    253
    291
    1181
    February
    90
    98
    433



    Please Login or Register  to view this content.
    Last edited by sandy666; 01-11-2023 at 08:09 AM. Reason: correction

  5. #5
    Registered User
    Join Date
    01-04-2023
    Location
    Vienna
    MS-Off Ver
    Office 365
    Posts
    7

    Re: calculate the sum within a specific date

    sandy666 & JohnTopley: thank you sooo much for your help - you helped me a lot with the understanding of putting big codes together. i was able to put my sheet together with your help.

    Power Query was totally new to me. i have to look more into it.

    Kind regards!

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

    Re: calculate the sum within a specific date

    You are welcome

    look at this: Power Query

    if the problem is solved, hit Add Reputation (bottom left corner next to the post that was helpful)
    Last edited by sandy666; 01-11-2023 at 05:01 PM.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: calculate the sum within a specific date

    Glad you were able to get a solution.

+ 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. Replies: 5
    Last Post: 06-29-2022, 12:15 AM
  2. Way to calculate last time a specific date occurred? example given
    By LundonPie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-09-2020, 01:33 PM
  3. [SOLVED] calculate Day of a specific date
    By roofi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-08-2019, 11:42 AM
  4. [SOLVED] how to calculate last date of a specific month
    By roofi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2019, 06:56 AM
  5. [SOLVED] How to calculate who's working on a Specific Date
    By traceycormack in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-27-2015, 05:52 AM
  6. Calculate percentage of specific date range
    By grahto in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2013, 06:39 AM
  7. calculate end date using start date and number of specific weekdays
    By freekystyley in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-12-2008, 01:14 PM

Tags for this Thread

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