+ Reply to Thread
Results 1 to 6 of 6

How can I show Year to Date orders from previous year quickly?

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    Central PA
    MS-Off Ver
    Excel 2010
    Posts
    12

    How can I show Year to Date orders from previous year quickly?

    Hi gang.

    I keep a spreadsheet of order history and I have wanted to add a feature to the file that I sure is possible but I am not sure how to go about it.

    Attached is a sample of my spreadsheet. There are multiple tabs. (for each year of orders)

    What I would like to do is create a formula that would total the dollar amount from Jan 1 to the present date but from the prior year.

    Example: Today is March 2nd. I would like the calculation to go to 2014 tab and calculate orders from Jan 1 to March 2 of 2014 and display it in a cell on my current 2015 tab. (see note on sample file)
    When I open the same file next week on the 9th the cell would display the totals from Jan 1 to March 9 in that cell. Etc. Etc.

    Oh, yeah. I am working in Excel 2010 now. I need to go into my profile and update that!

    Thanks in advance for your time!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: How can I show Year to Date orders from previous year quickly?

    Try the attached.

    Hope this helps.

    -Z
    Attached Files Attached Files
    If I helped you, click * and add to my reputation.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How can I show Year to Date orders from previous year quickly?

    You dont actually have any 2014 data in that table, but this will give you what you want...
    =SUMIFS($D$1:$D$317,$E$1:$E$317,">="&DATE(YEAR(TODAY())-1,1,1),$E$1:$E$317,"<="&EDATE(TODAY(),-12))

    Not sure if I used the right columns, so adjust as needed

    On a side note, I suggest you put that summary table (rows 322:328) on another sheet or at the top, off to the side. Where it is now, will make growing your table a problem, and also, you wont be able to use full-column ranges in formulas
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: How can I show Year to Date orders from previous year quickly?

    If you are going by the order date. The D column of the 2014 sheet, then try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  5. #5
    Registered User
    Join Date
    01-16-2014
    Location
    Central PA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How can I show Year to Date orders from previous year quickly?

    Thanks for the quick replies guys! I am working on applying the code from Zodeeak's file right now. I got it to work with 2014 and am not trying to get 2013 to work.
    Yes, I am working from the ORDER DATE so that looks to be the one thing that I am tweaking so that the calculation is pulling from the order date and not the ship date.

    Thanks for the suggestion regarding the summary table FDibbins. I actually draw my data from a Storefront and I open the data I download in Excel and massage some of the info that I get and then I copy the rows from that file and "Insert" into the spreadsheet that I keep so that summary table keeps moving to the end of the spreadsheet. I may move it some day but it is working for me the way it is currently.

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: How can I show Year to Date orders from previous year quickly?

    Thanks for the rep points. Note my formula started on row 3 because you had 1 date from 2013. I was a little lazy and didn't want to write a formula that filtered out days before 1/1/2014, so be careful if you are using mine for other sheets.

+ 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] Current year and month and Previous and year
    By Anjukeerthi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-24-2014, 01:23 AM
  2. Formula to compare previous year to current year
    By bjnockle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-08-2013, 04:23 PM
  3. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  4. [SOLVED] Keeping a date as current year, even though formula determines previous year
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 08:31 PM
  5. Determine if date is before end of fiscal year of previous year
    By ccarver in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2010, 11:53 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