+ Reply to Thread
Results 1 to 3 of 3

Using a macro to copy and past data for a daily sales report

  1. #1
    Registered User
    Join Date
    11-09-2017
    Location
    NEW YORK, NEW YORK
    MS-Off Ver
    2010
    Posts
    43

    Using a macro to copy and past data for a daily sales report

    Hi Team,
    I am trying to copy and paste data from a daily report into a created dashboard. The data is copied daily and each day I put the new data in the correct date field. I was able to get the macro to repeat, but it keeps putting it in the same row. I tried to used the relative macro, but I don't know how to make the data move to the next day. This process must be repeat each day until the end of the month.

    The raw data file is a new file everyday.

    How do I have the macro copy the file to the next day without over typing the prior days info.

    Thanks.

    It would be cool If I could create a button that says "Start Report-10/1" that will allow me to change the date so I know what date I'm copying. I'm open to suggestion as I'm still a novice at this.


    File has been attached.

    THanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-09-2017
    Location
    NEW YORK, NEW YORK
    MS-Off Ver
    2010
    Posts
    43

    Re: Using a macro to copy and past data for a daily sales report

    I attached a sample of the excel macro I started.

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Using a macro to copy and past data for a daily sales report

    Perhaps something like this could be useful?

    To test run macro "FindMatch"

    First of all in your uploaded file you had "Oranges" twice in "Profits" sheet but only once in the "Daily_RawData" so I modified the "Profits" sheet.

    The macro starts by activating "Daily_RawData", it then starts checking all values in range B3:Y3 of "Profits" and compare that with the date value in cell L3 of the
    "Daily_RawData" and when a match is found the address for the cell that matches is "stored" as the string cAdd and further checking of cells is stopped with the "GoTo" command.

    The range B7:H7 of "Daily_RawData" is copied and pasted to the matching date in "Profits" with an offset of 2 rows and the values are transposed. Then the % profit is copied this time with an offset of 1 row.

    In your uploaded file all calculated % profits were the same and you "Profits" sheet har only on row for this that I take as this will always be so in the future or?

    If not so macro can be modified of course.

    Alf
    Attached Files Attached Files

+ 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] daily sales target flow report
    By makinmomb in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-08-2016, 12:24 PM
  2. Replies: 1
    Last Post: 07-20-2015, 09:49 AM
  3. Report for Daily Sales from cumulative Sales report
    By raj0102 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-06-2014, 02:50 PM
  4. [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
  5. Replies: 4
    Last Post: 02-01-2014, 10:37 PM
  6. Replies: 4
    Last Post: 03-27-2013, 05:56 PM
  7. Complex Daily Sales Report Help
    By BigMacCy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2012, 01:29 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