+ Reply to Thread
Results 1 to 5 of 5

If a Date falls within a Date Range, add up specific cells, etc

  1. #1
    Registered User
    Join Date
    03-14-2019
    Location
    Louisville, KY, USA
    MS-Off Ver
    2019
    Posts
    3

    Question If a Date falls within a Date Range, add up specific cells, etc

    Without the use of VB, is it possible to do the following:

    Based on either a Date Range or the Current Date, sum the these specific fields. So, based on today's date, add the cells A1, A3, A5, A7, A9. But, if today's date is the next day, then sum all those cells plus A11.

    Example:

    A1=1
    A3=1
    A5=1
    A7=1
    A8=1
    A9=1
    A11=1
    A13=1

    In the next column, in Row A, I want to sum A1 + A3 but only if today's current date falls within the date range 12/31/2018 to 01/13/2019. Once today's current date falls between 01/14/2019 and 01/28/2019, Add cells A1 + A3 + A5. Once current date falls between 01/29/19 and 02/10/19, Add cells A1 + A3 + A5 + A7.

    Any assistance is appreciated!

    Thank you,
    Brian

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: If a Date falls within a Date Range, add up specific cells, etc

    This is doable with some combination of SUMIFS and IF(SUM) constructions,

    But is there a more general rule going on here, like you want to sum all the values in column A, and they correspond to a date in the same row of column B; and you want to sum everything in A where the corresponding B is in the past compared to today? That kind of thing. That would be more robust.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Registered User
    Join Date
    03-14-2019
    Location
    Louisville, KY, USA
    MS-Off Ver
    2019
    Posts
    3

    Arrow Re: If a Date falls within a Date Range, add up specific cells, etc

    Thanks Ben. Basically, I'm wanting to see the current balance of time entered and that time being entered is based up on each column having a date range it is associated with. The cell in that column may have a number in it. I'd like a single column/cell that will add up all the cells that are prior to today's current date ... from those columns that have dates associated with those numbers that are prior to and including today's date. I'll attach a spreadsheet as it is easier to understand. I have a tab/worksheet where I can keep dates, values, etc. that I can tie into formulas on the one I'm attaching. Thanks for any help.
    Attached Files Attached Files

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: If a Date falls within a Date Range, add up specific cells, etc

    Yeah this is different-but-simplier logic that I think will deliver the same result.
    In L6 and pull down:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-14-2019
    Location
    Louisville, KY, USA
    MS-Off Ver
    2019
    Posts
    3

    Re: If a Date falls within a Date Range, add up specific cells, etc

    That worked great Ben! Thanks very much.

+ 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: 17
    Last Post: 07-19-2018, 07:42 AM
  2. Replies: 7
    Last Post: 07-14-2017, 12:04 PM
  3. Replies: 10
    Last Post: 01-15-2017, 08:02 AM
  4. check in which range a date falls and return a specific value
    By beltzer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2016, 04:29 PM
  5. Matching Data that falls within a specific date range
    By Alexg1589 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2014, 02:32 PM
  6. [SOLVED] Formula to assign specific numbers if a date falls within a certain date range
    By headley4ever in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2014, 04:16 PM
  7. Mark cell if location matches and date falls between date range
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2012, 07:54 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