+ Reply to Thread
Results 1 to 17 of 17

Reproducing code to make fast when split data for each customer

  1. #1
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    229

    Reproducing code to make fast when split data for each customer

    Hello,
    I enter data in sheet data for many customers .so what I want create summary for all customers and show the balance for each customer . when the cell c2 is empty should brings all data for all customers and if I select specific name then should show this customer and if I select another customer should copy to bottom without repeat the customer has existed , just updating I mean if add a new data in sheet data and it's existed in sheet report 1 it shouldn't copy to they bottom again , just change the data and the same thing should just copy the data remains values but if there are customers contain the balance is zero should ignore them in sheet report2
    I put a simple expected result in report1 and some formulas how calculates but i don't show the formula in cells
    so current code works with simple data , but when try with 15000-20000 row the excel will freeze and sometimes shows error !
    any chance from experts to reproduce to make fast, please?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Reproducing code to make fast when split data for each customer

    One possible cause of response problem is use of APPLICATION.SUM rather then simplying summing the array data. Plus all the formatting of the output.

    See attached which may not be acceptable to you and may not make significant difference to performance.

    Please post a (ZIPped) file with larger volumes so there is something to test any changes against.
    Attached Images Attached Images
    Last edited by JohnTopley; 06-30-2025 at 05:44 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    229

    Re: Reproducing code to make fast when split data for each customer

    may not make significant difference to performance.
    so should keep the original way .
    I search for make it fast .

    just copy random data as I did it.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Reproducing code to make fast when split data for each customer

    No problem my end with performance.

  5. #5
    Valued Forum Contributor MikeVol's Avatar
    Join Date
    12-30-2020
    Location
    Odessa / Ukraine
    MS-Off Ver
    MSO Prof Plus 2021 x64 (En)
    Posts
    577

    Re: Reproducing code to make fast when split data for each customer

    Quote Originally Posted by JohnTopley View Post
    No problem my end with performance.
    Me too. Nice performance.
    NOTE: As the original poster/owner, only you can mark your thread as SOLVED (Thread Tools above Post #1).
    You can say "Thanks" in your thread to everyone who offered to help you.
    You can also reward them by clicking * "Add Reputation" under their username on the left.
    With Regards, MikeVol.

  6. #6
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    229

    Re: Reproducing code to make fast when split data for each customer

    No problem my end with performance.
    what does mean that?

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Reproducing code to make fast when split data for each customer

    ..... the macro runs FAST and with no errors!

  8. #8
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    229

    Re: Reproducing code to make fast when split data for each customer

    ..... the macro runs FAST and with no errors!
    which macro the original or your way?

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Reproducing code to make fast when split data for each customer

    ... your macro

  10. #10
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    229

    Re: Reproducing code to make fast when split data for each customer

    how take time when test for file in post#3?

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Reproducing code to make fast when split data for each customer

    ... about 1 second!

  12. #12
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    229

    Re: Reproducing code to make fast when split data for each customer

    thanks for inform me John.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Reproducing code to make fast when split data for each customer

    ... so is the issue resolved ?

  14. #14
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    229

    Re: Reproducing code to make fast when split data for each customer

    ... so is the issue resolved ?
    not yet
    I'm still searching where is exactly the problem ......

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Reproducing code to make fast when split data for each customer

    Post the file which contains the problem.

  16. #16
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    229

    Re: Reproducing code to make fast when split data for each customer

    not really sure what's my bad!
    now is ok a you said .
    thanks John for your support me.
    Last edited by tubrak; 06-30-2025 at 04:10 PM.

  17. #17
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Reproducing code to make fast when split data for each customer

    You're welcome - glad it is solved. Thank you for the rep.

+ 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] Improve code using ADODB.Recordset when populate data in listbox to make fast
    By Mussala in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 02-15-2025, 08:24 PM
  2. Replies: 4
    Last Post: 11-19-2022, 04:42 PM
  3. [SOLVED] using array and dictionary to make code very fast
    By tubrak in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 12-01-2021, 03:59 AM
  4. [SOLVED] split data horizontal for each customer into table individual
    By MKLAQ in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2021, 07:51 AM
  5. split data for each customer and calculate the balances
    By Hasson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2021, 01:20 PM
  6. How to make this code work Fast - while handling more data
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2017, 07:18 PM
  7. [SOLVED] How To Make A Customer List With Extra Entries Per Customer
    By Minitman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2005, 03:43 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