+ Reply to Thread
Results 1 to 4 of 4

Return results from the last 12 months

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2016
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    27

    Return results from the last 12 months

    I have 65,000+ lines of data in a sheet where column A is the date, column E is the name, and column J is the monetary amount received. In a seperate sheet (same workbook) I have a report using formulae referencing the data in the data sheet. On the report sheet I have 10 columns (D to M) for each client or client group (e.g. a family) as there are different names I want it to search for in column E in the data sheet.

    To return income received for a given year I have a formula that works - =SUMPRODUCT(SUMIFS(data!$J:$J,data!$E:$E,$D3:$M3,data!$A:$A,">=1/1/"&V$2,data!$A:$A,"<=31/12/"&V$2)) - where 'V2' is the year at the top of the column.

    I now want a formulae that will return:

    The income received in the last 12 months from today, or preferably
    The income received in the last 12 months from the end of last month

    I have tried this - =SUMPRODUCT(SUMIFS(data!$J:$J,data!$E:$E,$D3:$M3,data!$A:$A,">=TODAY()-365",data!$A:$A,"<=TODAY()")) - but it returns '0.00' when I know there is income.

    Any ideas? TIA!

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,954

    Re: Return results from the last 12 months

    Try this ...

    =SUMPRODUCT(SUMIFS(data!$J:$J,data!$E:$E,$D3:$M3,data!$A:$A,">="&TODAY()-365,data!$A:$A,"<=TODAY()"))

  3. #3
    Registered User
    Join Date
    01-29-2016
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    27

    Re: Return results from the last 12 months

    Not quite, but I fiddled around with it, accepted a correction from MS, and got this that works!

    =SUMPRODUCT(SUMIFS(data!$J:$J,data!$E:$E,$D3:$M3,data!$A:$A,">="&TODAY()-"365"))

    THANKS!

  4. #4
    Registered User
    Join Date
    01-29-2016
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    27

    Re: Return results from the last 12 months

    Not quite, but I fiddled around with it, accepted a correction from MS, and got this that works!

    =SUMPRODUCT(SUMIFS(data!$J:$J,data!$E:$E,$D3:$M3,data!$A:$A,">="&TODAY()-"365"))

    THANKS!

+ 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 Months and Return Last Day
    By xybadog in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-13-2014, 08:18 AM
  2. [SOLVED] Return 12 Months from Year End Date
    By PDBartlett in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2014, 06:39 AM
  3. Replies: 8
    Last Post: 12-23-2013, 08:42 PM
  4. Replies: 2
    Last Post: 08-29-2013, 02:57 AM
  5. Using index to return data from list for last 12 months or months available
    By welchs101 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2013, 09:44 AM
  6. Lookup Results by selected MONTHS/YRs...
    By dollardoc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2006, 03:14 PM
  7. [SOLVED] WHAT IS THE RATE BY MONTHS on A return of investment
    By PAYBACK ON ONVESTMENT in forum Excel General
    Replies: 0
    Last Post: 03-28-2005, 04:06 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