+ Reply to Thread
Results 1 to 11 of 11

Getting daily sales data by month and year into another workbook across columns

  1. #1
    Forum Contributor
    Join Date
    07-14-2014
    Location
    New City, NY
    MS-Off Ver
    2016
    Posts
    181

    Getting daily sales data by month and year into another workbook across columns

    I need to copy and paste each day's sales data by month for whole year into another workbook. How do i do this without having to open and copy paste from each book? The data for each day has to be in columns and has to go across . Thanks

  2. #2
    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,929

    Re: Getting daily sales data by month and year into another workbook across columns

    It would probably help if you provided a few samples of what you are working with - and what you want?

    Sounds like you have many files to pull from...please give more detail on that too?
    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

  3. #3
    Forum Contributor
    Join Date
    07-14-2014
    Location
    New City, NY
    MS-Off Ver
    2016
    Posts
    181

    Re: Getting daily sales data by month and year into another workbook across columns

    Thanks for your response.

    Attached is a sample file with before and after tabs. Before tabs has the data that i need to copy and put it in the format as shown in the after tab. I need to copy each days's sale as shown in the before tab and then paste it into the after tab which shows each day across columns for the month of January 2014. Thanks for your help.
    Attached Files Attached Files

  4. #4
    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,929

    Re: Getting daily sales data by month and year into another workbook across columns

    Not sure I understand what you want? Looks to me, apart from a few mis-matched rows, that is what you wlready have - are you not just repeating yourself?

    If you want to just directly reference on After, what you have on Before, just use...
    =Before!A17

    Without any row labels, I see no way to "find" what you want

  5. #5
    Forum Contributor
    Join Date
    07-14-2014
    Location
    New City, NY
    MS-Off Ver
    2016
    Posts
    181

    Re: Getting daily sales data by month and year into another workbook across columns

    Okay, perhaps i didnt explain this correctly. What you are seeing in the sample worksheet is the 2014 data that is already done by someone else. I need to replicate this for 2015 data.

    here is the issue: Each days data shown here in the columns is in a separate file by itself so i need to open each day's file and copy and paste it into a new workbook ...i have to do that for each day, each month for the 12 months. That will be a lot of files to open and copy and paste it manually. That is why i was asking the forum for any quicker way to do this? Thanks

  6. #6
    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,929

    Re: Getting daily sales data by month and year into another workbook across columns

    Each days data shown here in the columns is in a separate file by itself
    wow - why???? It would be SO much simpler if all the data was in 1 file - and preferably in 1 sheet - that is how excel is designed to work best

    excel can easily pull in data from another file (even if it is closed), but you need to hard-code the file name into the formula.

  7. #7
    Forum Contributor
    Join Date
    07-14-2014
    Location
    New City, NY
    MS-Off Ver
    2016
    Posts
    181

    Re: Getting daily sales data by month and year into another workbook across columns

    Agreed. I am new at this company and for now i have to go with the flow.

    Can you please show me how to hard code the file name into the formula. Thanks

  8. #8
    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,929

    Re: Getting daily sales data by month and year into another workbook across columns

    That would be something like this...
    ='[Sales.xlsb]Walk in Sales'!D2

    File Name
    ='[Sales.xlsb]

    Sheet name
    Walk in Sales'!

    Cell Reference
    D2

    Keep in mind though that you will have to hard code that for EVERY file.

    Another option would be to use INDIRECT() to reference the file name from a date somewhere, but that ONLY works on open workbooks (the source), unless you want to install the MoreFunc add-in, which will allow access to closed work books
    find it here...
    http://www.ashishmathur.com/tag/morefunc/

  9. #9
    Forum Contributor
    Join Date
    07-14-2014
    Location
    New City, NY
    MS-Off Ver
    2016
    Posts
    181

    Re: Getting daily sales data by month and year into another workbook across columns

    I am sorry i am not able to follow this formula. Will this only give me value in cell D2? how do i use this to get values from all 12 mnoths and for each day? Thanks

  10. #10
    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,929

    Re: Getting daily sales data by month and year into another workbook across columns

    Like I said, you will need to include each file name (manually) into the formula in the 1st row in each column - then you can just copy them all down.

    Because you have so many files (1/day) there really is no easy formula way to do this

  11. #11
    Forum Contributor
    Join Date
    07-14-2014
    Location
    New City, NY
    MS-Off Ver
    2016
    Posts
    181

    Re: Getting daily sales data by month and year into another workbook across columns

    Okay Thanks. Appreciate your response.

+ 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. Finding Averages by Month from a multi year daily data range
    By Trevasaurus in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-07-2015, 07:18 PM
  2. [SOLVED] Making Daily Sales Planner recognize which month and which week to pull sales data from
    By Topher53180 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2014, 10:33 AM
  3. Formula to sum sales over 12 month period not based on calendar year
    By cymraeg in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-02-2014, 12:02 PM
  4. Need formula to average daily data into month and year data
    By phantasm79 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-28-2014, 07:02 PM
  5. Replies: 4
    Last Post: 03-27-2013, 05:56 PM
  6. Replies: 3
    Last Post: 03-03-2011, 07:17 PM
  7. How to Sum by Date,Month,Year running daily totals?
    By bigtraing in forum Excel General
    Replies: 1
    Last Post: 11-18-2009, 07:46 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