+ Reply to Thread
Results 1 to 4 of 4

Macro to copy and paste data and update formula

  1. #1
    Registered User
    Join Date
    05-10-2015
    Location
    Ann Arbor
    MS-Off Ver
    M365
    Posts
    83

    Macro to copy and paste data and update formula

    Hi Guys

    I'm trying to improve a piece of reconciliation of two data sets( Attached), one is from an online Subscription purchase portal and the other is the Payment API for processing the payments. Transactions on both data is suppose to match using the Financial Ref(FREF).So far I copy the (DATE, FREF , and AMOUNT) details for both datasets from the data download and apply formulas to reconcile or match the transactions. However, the data has over a short period become monstrous and copying and pasting is becoming ineffective making my excel crawl virtually. Grateful if anyone could help with a macro to paste the data directly from the download and update formulas. The main idea is to match the customer purchases to the payments API transmission to ensure all payments have been received and payment processed.

    Thanks in advance for your help


    Aoleone
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Macro to copy and paste data and update formula

    I think I can help out. In fact, I may be able to automate more of this than you asked for. First a couple of questions:

    Do you first copy and paste data into the Online Purch Portal Download and Payment API Download sheets and then repaste the onto the Reconciliation Sheet?

    I'll assume that these are from separate spreadsheets given to you as a report. Can you get direct data access to the database that generates these reports?

    The solution I will offer uses Excel Tables to limit the amount of data you have to look at. It will also turn off calculations while the copying is going on.

    I suggest reading up on them while I work the issue: http://www.utteraccess.com/wiki/inde...ables_in_Excel
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Macro to copy and paste data and update formula

    Here is my first shot at it.

    I did a couple of things to speed up the process. The first was to turn off calculations until after all the copying was done.

    The second was to convert the information into Excel Tables. Among other things, Excel tables allow you to reference exactly the amount of data you need rather than a whole row. Excel tables "know" how many rows they have. It also made the coding easier.

    Finally, I replaced your COUNTIF formula with MATCH. Match runs a lot faster than COUNTIF.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-10-2015
    Location
    Ann Arbor
    MS-Off Ver
    M365
    Posts
    83

    Re: Macro to copy and paste data and update formula

    Thank you very very much dflak. This reconciliation has been doing my head in for the past two weeks. To answer your initial couple of questions. I download( in excel format) both data from a back office application then copy and paste into the Online Purch Portal Download and Payment API Download sheets and then repaste them onto the Reconciliation Sheet. The only access I've got is the ability to download from the back office application.

    My other issue is to be able to separate the corporate the subscriptions( with lower character "c" at the end of the FREF) into the third table in the reconciliation sheet, so that the first table will only be the non-corporate subscriptions.

    So far I'm loving it!! Thanks once again.
    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. Copy/Paste chart and update data
    By GRAHAMV2 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-30-2015, 06:22 PM
  2. How to Copy and paste data by click Update Button
    By Nisar.mohammed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2015, 01:37 PM
  3. Macro to update balance sheet. Trying to loop until row is blank & copy/paste.
    By sneaders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2014, 10:44 PM
  4. macro copy formula then paste data the length of a list
    By BobbyH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-09-2013, 08:29 PM
  5. Replies: 1
    Last Post: 09-21-2012, 08:46 PM
  6. Macro or Formula to Copy and Paste data
    By aarbuckle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2009, 11:34 PM
  7. Auto Update Macro - Copy/Paste Send Email
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2009, 08:25 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