+ Reply to Thread
Results 1 to 9 of 9

Conditional Total based on date

Hybrid View

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    Brampton, ONTARIO
    MS-Off Ver
    Excel 365
    Posts
    78

    Conditional Total based on date

    Hi,

    Please help to me to create a formula where the total of columns can be achieved before a said date. I tried sumifs function but did not work out.
    For example the total of columns should be 4 days prior to todays date. Right now, I am manually changing the formula. Please see the attached spreadsheet where I need formula in cell Z36 of row 29 for all days prior to 24th July 2017.

    Thanks,
    Jai
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Conditional Total based on date

    z36 =SUM(INDIRECT(ADRESS(29,match(Z34,$A$11:$Y$11,0))):Y29) => result 64

    Edit:

    I read your question not well enough (I suppose)

    since you asked for prior to here the formula for that.

    z36=SUM($C$29:INDIRECT(ADRESS(29,match(Z34,$A$11:$Y$11,0)))) => result 51
    Last edited by oeldere; 07-28-2017 at 02:44 PM. Reason: edit added
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    Brampton, ONTARIO
    MS-Off Ver
    Excel 365
    Posts
    78

    Re: Conditional Total based on date

    Hi,

    Thanks for your reply but I am not getting the required answer. The total from Dates July 24 & prior should be 51. Please see the attached file and let me know.

    Thanks a lot!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Conditional Total based on date

    See the edit in #2.

  5. #5
    Registered User
    Join Date
    03-18-2014
    Location
    Brampton, ONTARIO
    MS-Off Ver
    Excel 365
    Posts
    78

    Re: Conditional Total based on date

    Hi,

    When I cut & Paste into separate sheet (sheet2), the formula is not working. Please see the attached.

    Also, would this formula work if the pivot table changes for more dates and more rows. Everyday data is being added to spread sheet and then I do a pivot table and calculate the totals for 4 days prior to current day.

    Thanks,
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Conditional Total based on date

    b13=SUM(Sheet1!$C$29:INDIRECT("Sheet1!"&ADRESS(29,MATCH(B9,Sheet1!$A$11:$Y$11,0))))

    See the attached file.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Conditional Total based on date

    And for your second question:

    B13 =SUM(INDIRECT("Sheet1!$C$"&MATCH("Grand Total",Sheet1!$A$1:$A$38,0)):INDIRECT("Sheet1!"&ADRESS(MATCH("Grand Total",Sheet1!$A$1:$A$38,0),MATCH($B9,Sheet1!$A$6:$Y$6,0))))

    See the attached file.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Conditional Total based on date

    Thanks for the rep.

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Conditional Total based on date

    Thanks for marking the question closed.

    But why do you not solve this question using the pivot table?

+ 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. [SOLVED] Calculate total based on date
    By Shamz41 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2017, 01:35 AM
  2. Conditional Formatting based on grand total.
    By excelnovice3 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-31-2017, 07:07 AM
  3. Replies: 0
    Last Post: 01-28-2014, 07:37 AM
  4. Replies: 2
    Last Post: 10-06-2013, 02:03 PM
  5. [SOLVED] Count Total Day Based On Date
    By redza in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-22-2013, 02:52 PM
  6. to-date total based on current date
    By dreamkeeper in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2006, 04:33 PM
  7. to-date total based on current date
    By dreamkeeper in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-09-2006, 11:04 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