+ Reply to Thread
Results 1 to 19 of 19

Excel worksheet becomes unresponsive at times

Hybrid View

  1. #1
    Registered User
    Join Date
    05-16-2011
    Location
    NC
    MS-Off Ver
    Excel 2016
    Posts
    28

    Excel worksheet becomes unresponsive at times

    A worksheet with a VLookup function runs extremely slowly when copying the formula down to new rows. I'm glad to put up the worksheet if anyone wishes to see it. Below is a screenshot.

    Thank you greatly,

    Jonathan Smith

    All Cash and Wilshire All Cap Index_Jonathan Smith.PNG

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,741

    Re: Excel worksheet becomes unresponsive at times

    Why don't you use IFERROR instead of IF(ISERROR(...
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Excel worksheet becomes unresponsive at times

    Hi Jonathan,

    Your profile says you have 2010, so try IFERROR...

    =IFERROR(VLOOKUP(C2,C2:D100,2,0),NA())
    HTH
    Regards, Jeff

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,741

    Re: Excel worksheet becomes unresponsive at times

    That said, if you want #N/A you might as well just use the VLOOKUP on its own and let it fail if there's no match. Most of your formula is redundant.

  5. #5
    Registered User
    Join Date
    05-16-2011
    Location
    NC
    MS-Off Ver
    Excel 2016
    Posts
    28

    Re: Excel worksheet becomes unresponsive at times

    Thank you all. You are keenly observant. I attempted removing ISERROR as jeffreybrown suggests. Apparently I missed something. Please see screenshot below. Thank you all. And thank you for noting my profile says 2010.

    All Cash and Wilshire All Cap Index_with IFERROR_Jonathan_Smith.PNG

  6. #6
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Excel worksheet becomes unresponsive at times

    Hmm why is there a repeat vlookup in the formula? Try removing the remaining formula starting from NA() onwards so it become like this
    =IFERROR(VLOOKUP(D11969,$A$13:$B$2260,2,FALSE),"#N/A")

    But like what TMS said, if you just want to show N/A when no result found, just use the vlookup on its own.
    Last edited by finalazy; 02-10-2018 at 04:47 PM.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,741

    Re: Excel worksheet becomes unresponsive at times

    @jonathanwsmith: You're welcome. Thanks for the rep.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,741

    Re: Excel worksheet becomes unresponsive at times


  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,741

    Re: Excel worksheet becomes unresponsive at times

    @finalazy: "#N/A" is not the same as NA(). NA() generates an error, whereas "#N/A" is a text string.

    Formula: copy to clipboard
    =IFERROR(VLOOKUP(D13,$A$13:$B$2141,2,FALSE),NA())


    But the IFERROR is redundant, so just:

    Formula: copy to clipboard
    =VLOOKUP(D13,$A$13:$B$2141,2,FALSE)

  10. #10
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Excel worksheet becomes unresponsive at times

    Quote Originally Posted by TMS View Post
    @finalazy: "#N/A" is not the same as NA(). NA() generates an error, whereas "#N/A" is a text string.

    Formula: copy to clipboard
    =IFERROR(VLOOKUP(D13,$A$13:$B$2141,2,FALSE),NA())


    But the IFERROR is redundant, so just:

    Formula: copy to clipboard
    =VLOOKUP(D13,$A$13:$B$2141,2,FALSE)
    Ah thanks for pointing that out. Will take note of it.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,741

    Re: Excel worksheet becomes unresponsive at times

    You're welcome.

  12. #12
    Registered User
    Join Date
    05-16-2011
    Location
    NC
    MS-Off Ver
    Excel 2016
    Posts
    28

    Re: Excel worksheet becomes unresponsive at times

    Fellow members,
    thank you for trying to help me. I have tried to implement your thoughtful suggestions to no avail, due chiefly to my lack of understanding. If I am so permitted, may I upload a copy of the file I'm attempting to repair?

    Kind regards,

    Jonathan Smith

  13. #13
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Excel worksheet becomes unresponsive at times

    Yes, you can upload a workbook.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  14. #14
    Registered User
    Join Date
    05-16-2011
    Location
    NC
    MS-Off Ver
    Excel 2016
    Posts
    28

    Re: Excel worksheet becomes unresponsive at times

    Hi jeffreybrown,

    I can't see to get the Manage Attachments window to open so I can select my file to upload.

    Thanks,

    Jonathan

  15. #15
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Excel worksheet becomes unresponsive at times

    Quote Originally Posted by jonathanwsmith View Post
    Hi jeffreybrown,

    I can't see to get the Manage Attachments window to open so I can select my file to upload.
    Well maybe...

    To attach a file to your post...

    Note: be sure to desensitize the data

    1. click “Go Advanced” (next to Post Quick Reply – bottom right),
    2. scroll down until you see “Manage Attachments”, click that,
    3. click “Browse”.
    4. select your file(s)
    5. click “Upload”
    6. click “Close window”
    7. click “Submit Reply”

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,741

    Re: Excel worksheet becomes unresponsive at times

    Click on Reply, then observe the last line of the last post.

  17. #17
    Registered User
    Join Date
    05-16-2011
    Location
    NC
    MS-Off Ver
    Excel 2016
    Posts
    28

    Re: Excel worksheet becomes unresponsive at times

    TMS, Thank you. I'm fired.

    jeffreybrown - Uploading file now. This is my cover note:

    Hi jeffreybrown,

    The “All Cash and Wilshire All Cap Index posted to Excel Forum.xlsx” workbook that I posted to the Forum has data in Columns A13:I11969, the data resides in two datasets.

    Dataset #1 exists in Column A13:B2260. The series interval is weekly. The Federal Reserve releases updated data each Thursday, and I entered the data in Column A13:B2260. The dates in Column A are valid, but from Column B13:B316, I plugged in the value “0.01” because true monetary data was non-existent. The data in Column B316:B2260 is legitimate. As appears on Row 2260, the most recent Fed notification was on Thursday 2/8 for the week ending 1/31/2018; I manually entered the data in Column A Row 2260. The next update will be 2/15 for the week ending 2/7/2018 and I will make that entry on Row 2261.

    Dataset #2 exists in Column D13:E11969. The series interval is daily. Prior to 11/30/1980, the series was available monthly, thus all the #N/As between month end values. The value in Column F, Wilshire Total Market Capitalization, is available each day but no historical file of this value is provided, thus I calculate historical values with a formula. I use today’s Wilshire Total Market Capitalization (which is available each day), the current day’s Wilshire 5000 Index and the previous day’s Wilshire 5000 Index. After entering today’s Wilshire Total Market Capitalization in F2260 (the most recent date for which I have data), I copy the Formula from F2259 to F13, thus arriving at my historically backfilled Wilshire Total Market Capitalization.

    The Formula in Column G (graciously provided by a moderator on this forum) allows me to synchronize two series, one with a weekly interval and the other with a daily interval, so that I can plot the result in Columns D, F, G, H and I on a daily chart. The Formula in Column G shows the value in Column B if the date in Column A is the same Date in Column D.
    Sometime in 2016, my Excel started running very slowly, taking hours to copy the Formula in Column G (which had to be revised each week, i.e., changing B2250 to B2260, and so on) to new Rows. I attempted to substitute IFERROR, as TMS pointed out and remove the formula redundancy, and then copy the same to the entire Column G. I got an Excel Unresponsive for 12 hours and finally killed the program. I was successful in copying the formula from G 11969 to G 11955, but even that took long, with my Excel Unresponsiveness. I'd like to be able to copy the formula into the entire active column G.

    I appreciate greatly the assistance I get on this forum. I’d gladly remit a fee for your time or make a charitable contribution to a cause that matters to you. Please advise.

    Thank you

    Jonathan Smith

  18. #18
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Excel worksheet becomes unresponsive at times

    Hi jonathan,

    Sorry, this attachment will not work for me. I know I don't have the fastest computer, but it took 5 - 10 mins just to open the workbook, and then when I touched a cell, locked up again, and again, and again.

    At this point, you are going to have to provide us with a sheet that is manageable to at least diagnose a better formula.

    Maybe cut it down from 12,000 rows to say 100. We don't necessarily have to see the whole monster to possibly figure out a better way to slay the monster.

  19. #19
    Registered User
    Join Date
    05-16-2011
    Location
    NC
    MS-Off Ver
    Excel 2016
    Posts
    28

    Re: Excel worksheet becomes unresponsive at times

    Thanks jeffreybrown, what you experienced is exactly what I experience. I'll try to cut it down to 100 rows and repost.

    gratefully,

    Jonathan Smith

+ 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. Excel Locks up or becomes unresponsive after running loop : First Post on fourm
    By RaDoubleD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-27-2018, 01:11 AM
  2. Excel slowdown until becomes unresponsive
    By Nighteg in forum Excel General
    Replies: 1
    Last Post: 02-25-2016, 10:22 PM
  3. Excel 2013 "Dead / Unresponsive" Charts
    By pbexcelforum in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-10-2015, 09:40 AM
  4. VBA macro causes Excel to become unresponsive
    By bigmoolah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2014, 08:43 PM
  5. [SOLVED] How to copy a worksheet 86 times into the same excel file with the given name
    By 1tane1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-26-2014, 08:01 AM
  6. code making excel unresponsive
    By tjgrassi in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-16-2014, 11:25 AM
  7. Excel Becomes Unresponsive after Running Program
    By dnorris707 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-25-2013, 03:24 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