+ Reply to Thread
Results 1 to 9 of 9

Macro stopped working in result col U .

  1. #1
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    515

    Macro stopped working in result col U .

    Hello all , i have a macro that is giving me part of the code as a result . This part .

    =IF(AP2=1,0,ROUNDDown(COUNTIF(BJ2:NN2,1)/(AP2-1)*100,1))

    The code gives a two col result in cols U and V . V is fine but now above appears in col U .
    Seems it didn't like running over 100,000 rows . But col V did ok .

    Looking to where I'm going wrong . Thanks .
    Last edited by I need excel help; 05-01-2021 at 08:31 PM.
    I am grateful for all answers to my questions .
    Also i give a reputation even if not answered .

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Macro half works .

    Really doubt its the problem, but for consistency, i would change ROUNDDown to ROUNDDOWN

    can you provide a sample file

  3. #3
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    515

    Re: Macro half works .

    Hello cubangt , I changed what you mentioned and I got it to work on a 65,000 row sheet . . So your change did make a difference there .
    Then I tried it on a 125,000 row sheet and still got the error in col U .
    Enclosed is the macro but of course only a few rows here .
    Thanks so far .
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Macro half works .

    Since there arent many rows, it doesnt give error or the results you are getting
    BUT another section i would update to be consistent is these lines in the macro

    Please Login or Register  to view this content.
    Shouldnt have any spaces in the ranges..

  5. #5
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    515

    Re: Macro half works .

    Ok , I changed that also but still same result .
    This is weird , I mentioned above I got it to work on a 65,000 row sheet , I double checked it was a 99,000 .

    I thought I will try another different one with 99,000 , but that time it didn't . No much help or difference I know .
    I will go in and delete any old version and replace with what you have mentioned and try that . Otherwise use smaller sheets .
    Appreciate your efforts . Thanks .

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,697

    Re: Macro half works .

    What about so?
    Please Login or Register  to view this content.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,015

    Re: Macro half works .

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    515

    Re: Macro half works .

    Hi , sorry about that , id not mean to to do what you said intentionally .
    Will fix now .

  9. #9
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    515

    Re: Macro stopped working in result col U .

    Jolivanes , thank you for fixing this . Works perfect .

    Again I want to apologize and let the forum know that I made a mistake and I'm hoping that I can get a clean name back . I in no way tried to fool or mislead the forum at all .

+ 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. Custom Add-in only half works on 4 out of 5 computers?
    By shogunatwork in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2017, 12:48 PM
  2. Vba code only works on half the page
    By maco20 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2017, 11:53 AM
  3. VBA button only works on half the rows at a time
    By michaljireht in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2015, 11:25 AM
  4. [SOLVED] the code works, but the UserForm freezes for half a minute.
    By johnw993 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-27-2015, 05:30 PM
  5. Replies: 7
    Last Post: 03-28-2014, 07:56 AM
  6. [SOLVED] Code works but crashes half the time
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-11-2014, 02:59 PM
  7. [SOLVED] Works beautifully but stops half way through
    By kimbroughton@westvirginia.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2006, 02:40 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