+ Reply to Thread
Results 1 to 16 of 16

How to sum data between two dates by project type

  1. #1
    Registered User
    Join Date
    10-20-2021
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    5

    How to sum data between two dates by project type

    I want to sum data between two dates and filter it by Project Type. I tried the SUMIFS functions but it gives me a VALUE error. Please Help. I have attached the file below with all the data and calculation area.
    Attached Files Attached Files
    Last edited by hmattoo98; 10-20-2021 at 05:17 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: How to sum data between two dates by project type

    File appears to be password protected. Cannot open file. Please remove and upload an unprotected file that is not linked to any external drive.
    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
    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,206

    Re: How to sum data between two dates by project type

    in N45

    =SUMPRODUCT(($B$22:$B$37=N$44)*($F$2:$BB$2>=$L45)*(($F$2:$BB$2<=$M45)*($F$22:$BB$37)))

    copy across and down
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: How to sum data between two dates by project type

    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    V
    W
    X
    Y
    Z
    AA
    AB
    AC
    44
    From
    To
    Project 1 Project 2 Project 3 Project 4 Project 5 Project 6 Project 8 Project 10 Project 11 Project 13 Project 14 Project 15 Project 16 Project 17 Project 18 Project 19
    45
    31-Jan-23
    31-Dec-23
    76,321,875 51,675,000 46,167,188 43,972,396 24,394,531 28,039,500 34,860,938 46,790,625 13,925,781 0 0 0 0 0 0 0
    46
    31-Jan-24
    31-Dec-24
    0 4,306,250 39,571,875 37,690,625 34,152,344 56,079,000 55,777,500 105,278,906 41,777,344 42,407,813 35,092,969 35,092,969 0 0 0 0
    47
    31-Jan-25
    31-Dec-25
    0 0 0 0 0 0 0 0 0 59,370,938 105,278,906 105,278,906 70,185,938 70,185,938 46,790,625 46,790,625
    48
    31-Jan-26
    31-Dec-26
    0 0 0 0 0 0 0 0 0 0 0 0 81,883,594 81,883,594 105,278,906 105,278,906



    L
    M
    N
    44
    From
    To
    Project 1
    45
    31-Jan-23
    31-Dec-23
    =SUM(OFFSET($A$1,MATCH(N$44,$B:$B,0)-1,MATCH($L45,$2:$2,0)-1,1,MATCH($M45,$2:$2,0)-MATCH($L45,$2:$2,0)+1))


    Drag formula right and down as long as needed.
    Attached Files Attached Files
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How to sum data between two dates by project type

    I had some problems with downloading too, but eventualy I managed.

    With such input data layout SUMIFS would not be the right tool. Use SUMPRODUCTS instead. In N45:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down and right


    edit: Wow, 3 propositions in the same minute :-)
    Attached Files Attached Files
    Last edited by Kaper; 10-20-2021 at 05:01 AM.
    Best Regards,

    Kaper

  6. #6
    Registered User
    Join Date
    10-20-2021
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    5

    Re: How to sum data between two dates by project type

    Sorry. Here:
    Attached Files Attached Files

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How to sum data between two dates by project type

    At least 3 of us already managed to download previous attachment. See the answers above

  8. #8
    Registered User
    Join Date
    10-20-2021
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    5

    Re: How to sum data between two dates by project type

    Wow Thanks! Would have never guessed. Where Can I learn these skills like you guys?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,881

    Re: How to sum data between two dates by project type

    For information: the minute a workbook I download starts looking for links and trying to get me to log in to other accounts, I close it down. Anyone sharing a workbook here should ensure that the workbook is completely standalone before posting it.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Registered User
    Join Date
    10-20-2021
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    5

    Re: How to sum data between two dates by project type

    Thank you!! Where Can I learn these skills?

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,881

    Re: How to sum data between two dates by project type

    Here!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  12. #12
    Registered User
    Join Date
    10-20-2021
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    5

    Re: How to sum data between two dates by project type

    A very different approach than the others using SUMPRODUCT but still works. Explain Please?

  13. #13
    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,206

    Re: How to sum data between two dates by project type

    There are numerous Excel courses/training (some FREE) on the Internet so I would start there.

  14. #14
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: How to sum data between two dates by project type

    I suppose that question is to me as I did not use SUMPRODUCT.
    I've get array of values from cells which met conditions (project number & time brackets) and then put this array inside SUM.
    Ex. for N45: =SUM({6360156.25,6360156.25,6360156.25,6360156.25,6360156.25,6360156.25,6360156.25,6360156.25,6360156.25,6360156.25,6360156.25,6360156.25})

  15. #15
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: How to sum data between two dates by project type

    Quote Originally Posted by JohnTopley View Post
    There are numerous Excel courses/training (some FREE) on the Internet so I would start there.
    And I would add: visiting our Forum and analyse questions & answers
    Last edited by KOKOSEK; 10-20-2021 at 05:35 AM.

  16. #16
    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,206

    Re: How to sum data between two dates by project type

    @KOKOSEK: quite right too!!!

+ 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. How to Extract data out of SSRS link by giving parameters like dates project number etc
    By neerajonli in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2016, 11:13 AM
  2. [SOLVED] Wrong Data Type Value Are for formula involving Dates
    By heresteve2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2014, 12:38 PM
  3. Multiple users - Edit by project type.
    By paulhynes70 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2014, 06:15 PM
  4. Type mismatch adding a shape in Powerpoint using MS Project VBA
    By ocean_engineer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2013, 12:07 PM
  5. converting dates to general type of data
    By Vogelmann in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-24-2012, 08:49 AM
  6. Lookup or index database type project?
    By shrydvd in forum Excel General
    Replies: 6
    Last Post: 03-24-2011, 05:43 PM
  7. [SOLVED] Convert Julian dates back to date data type format?
    By Lara in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2006, 10: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