+ Reply to Thread
Results 1 to 37 of 37

Dynaimc Sum Range

Hybrid View

  1. #1
    Registered User
    Join Date
    05-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Dynaimc Sum Range

    How would you incorporate the edate idea you had? so I can reference the month and it will go one back and sum from jan. So if it says Aug it will sum from Jan-July? Wow you really know your Excel!! Below is my try... Thanks for the learning opportunity!
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Dynaimc Sum Range

    Quote Originally Posted by Excel"*" View Post
    How would you incorporate the edate idea you had? so I can reference the month and it will go one back and sum from jan. So if it says Aug it will sum from Jan-July? Wow you really know your Excel!! Below is my try... Thanks for the learning opportunity!

    B1: Your current month

    =SUMPRODUCT((EDATE(B1,{-1;-2;-3})=Data!F1:Q1)*Data!F2:Q2)

    This formula will adjust automaticly

  3. #3
    Registered User
    Join Date
    05-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Dynaimc Sum Range

    It seems that the edate part is taking the last 3 months, I'm looking for an equation that would look @ B2 (the date) minus one month then sum to Jan from that date. It seems like I need to start with Jan than use edate -1.. with match index but not really sure how to do that?

    Does what I'm thinking make sense? Thanks for your time!
    Attached Files Attached Files

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Dynaimc Sum Range

    Very confusing. In your speadsheet you said "I would like the above equation to use the Date in B1 to automatically go back 3 months from that date. So in September, the equation in B3 would take the sum of Aug July & June. Note) I can not re-structure the data. Now, you said "I'm looking for an equation that would look @ B2 (the date) minus one month then sum to Jan from that date. It seems like I need to start with Jan than use edate -1.. with match index but not really sure how to do that?

    B1: your current date

    =SUM(Data!F2:INDEX(Data!F2:Q2,MATCH(Summary!B1,Data!F1:Q1,0)-1))

    This formula is sum up from January to your curent month -1 month.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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