Results 1 to 8 of 8

Calculating 8 Threads (Inefficient Code)

Threaded View

  1. #1
    Registered User
    Join Date
    07-29-2020
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    36

    Calculating 8 Threads (Inefficient Code)

    As of current, the excel workbook is fine, but when I start adding more columns, that's when issues started to arise. Basically, every Week (the week I have shown is Week 28) will be copied an pasted until we reach Week 52. The same is true for both sheets. The original "Reps (Per Week)" sheet actually is supposed to have loads of stuff in there per Week, but I had to get rid of that due to sensitive information, but it would have been say 15 columns per week, each involving multiple calculations in a given cell, some of which were quite complex (it shouldn't matter too much though because that sheet always works at a good speed, even with 30+ weeks, that is to say, it was only when I added the Reps Adjustment sheet that I started to get problems).

    The labels may not make as much sense as they should ideally, but once again, there was sensitive info (for the company I work at). Basically, I just need to know what part of the code in my "Reps Adjustment Sheet" is likely causing issues or volatility.

    I should note that I actually changed one aspect of it already, so maybe it's already fixed, but basically I switched out a column that had "=SUMIF($B:$B,E4,J:J)" for each row (with E4 adjusting as it would) for a pivot table because I realised that a pivot table made more sense.

    I hope what I have said makes sense. Basically, the "Reps per Adjustment Sheet is causing major slowdown issues when multiple "weeks" are made (looking at the file I have attached should make things clearer).

    EDIT - The Reps Adjustment Sheet is basically taking a set of exercises (for a given bodypart) and ensuring that any bodypart that hasn't been given enough reps (1008), has a sufficient amount of reps added to it's exercises, in order of the "usefulness" of an exercise (basically, exercises that are higher in the list are seen as a better, so if a "body part" has two exercises, but they fall short of 1008 by 200, then 2/3 of the 200 should be allocated to the first (best) exercise, and 1/3 of the 200 should be allocated to the second (not as good) exercise (everything is rounded to meet multiples of 4). Really sorry for how weird the example seems. I am just trying to hide sensitive info. If this doesn't make enough sense, then I will rewrite it so that it can be understood more easily.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculating (4 Threads)
    By AndreaJean18 in forum Excel General
    Replies: 1
    Last Post: 05-22-2019, 10:01 PM
  2. [SOLVED] My code looks inefficient (but works)
    By HappyHole in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2015, 02:23 AM
  3. Inefficient code - macro takes too long
    By dantray02 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-07-2014, 09:29 AM
  4. [SOLVED] Very inefficient code because of different sizes of arrays, how do i shorten my code?
    By Brammer88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-28-2012, 04:49 PM
  5. Improve working, but inefficient code
    By gnoke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2012, 07:44 AM
  6. Inefficient code
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2008, 02:10 PM
  7. inefficient code?
    By David in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2005, 06:06 AM

Tags for this Thread

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