+ Reply to Thread
Results 1 to 4 of 4

Adding up cells based on dropdown date

  1. #1
    Registered User
    Join Date
    04-20-2019
    Location
    Europe
    MS-Off Ver
    365
    Posts
    21

    Smile Adding up cells based on dropdown date

    Hi!
    In the excel sheet, i want to change dates in the dropdown menu (red), and then the yellow should change based on a summary of the months that are involved. I hope its understandable.
    Thanks! You are the best in this forum..
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Adding up cells based on dropdown date

    C17=SUMIFS($B11:$M11,$B$9:$M$9,">="&$C$16,$B$9:$M$9,"<="&$D$16)
    C18=SUMIFS($B12:$M12,$B$9:$M$9,">="&$C$16,$B$9:$M$9,"<="&$D$16)
    Try the above formula
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    540

    Re: Adding up cells based on dropdown date

    For the income calculation: =SUMPRODUCT(--($B$9:$M$9>=C16)*B11:M11)-SUMPRODUCT(--(B9:M9>D16)*B11:M11)

    For the profit calculation: =SUMPRODUCT(--($B$9:$M$9>=C16)*B12:M12)-SUMPRODUCT(--(B9:M9>D16)*B12:M12)
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  4. #4
    Registered User
    Join Date
    04-20-2019
    Location
    Europe
    MS-Off Ver
    365
    Posts
    21

    Re: Adding up cells based on dropdown date

    Thanks! I think this will work. Can someone explain whats going on in the formula?

+ 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. Coloring cells based on date range and adding a shape at a certain date
    By moomphas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2018, 05:17 AM
  2. Replies: 7
    Last Post: 03-28-2018, 04:26 AM
  3. [SOLVED] Adding a range of cells based on matching date stamps
    By Bonzopookie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2015, 10:42 AM
  4. Replies: 4
    Last Post: 07-25-2014, 08:36 PM
  5. [SOLVED] Adding Or Subtracting Cells Based On A Date Within A Seperate Cell
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2013, 03:09 PM
  6. Adding Value of Cells, but Cell Determined by Dropdown List
    By concretetsunami in forum Excel General
    Replies: 4
    Last Post: 03-09-2010, 04:19 PM
  7. adding specific cells based on a corresponding date
    By bluemoir in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-09-2006, 02: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