+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Excel - Locking up / Hanging

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Angry Excel - Locking up / Hanging

    An excel spreadsheet I am creating is causing issues. It has 270 rows with 4 columns for the main data on sheet 1. There are formulas, including indexes on Sheet 2 and 3 which also cross reference each other. When I attempt to copy/update or delete or paste in rows on Sheet1, Excel locks up and the Excel.exe process hangs with 100% cpu. I then need to close down and restart Excel. Has anyone had similar issues and can let me know of any solution?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel - Locking up / Hanging

    What's the file size?
    If it appears to be large have you checked the obvious things like the last used row on a sheet?. Sometimes formulae can accidentally get copied down all 1m + rows. or across all 16k+ columns.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-08-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel - Locking up / Hanging

    Quote Originally Posted by Richard Buttrey View Post
    What's the file size?
    If it appears to be large have you checked the obvious things like the last used row on a sheet?. Sometimes formulae can accidentally get copied down all 1m + rows. or across all 16k+ columns.
    It's only 367Kb

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel - Locking up / Hanging

    Are there any macros running?

  5. #5
    Registered User
    Join Date
    04-08-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel - Locking up / Hanging

    Thanks. There are no macros, only formulas. One of the main formulas I have is:

    =INDEX(Sheet1!$A:$D,SMALL(IF(Sheet1!$D:$D=Sheet1!$E$2,IF(Sheet1!$B:$B="XXXXXXXXX",ROW(Sheet1!$A:$A))),ROW(Sheet1!1:1)),1)

    This is entered as an array. Basically, this formula is on Sheet2 and is finding a particular value from Sheet 1 Col E, then which has a particular value in Sheet 1 Col B, and inserting the corresponding value from Sheet 1 Col A, into my table in Sheet2.

    Because of what I am needing to achieve, this formula is contained within 12 tables of 300 rows each.

    It is most likely what is killing my process. Is there an easier way to do what I am trying to achieve?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Excel - Locking up / Hanging

    your problem may be with including entire columns in your index, i have done that and had the same results you described. try taking it down only as far as you need to, and see if that fixes the problem?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel - Locking up / Hanging

    I would concur with FDibbins.

    Remember array formulae are exceedingly memory intensive since every cell in the range used has to be evaluated, and since you're effectively asking Excel to evaluate all 1m + rows it's not surprising that it's locking up.

    So change all your 12 sets of formulae to

    =INDEX(Sheet1!$A1:$D300,SMALL(IF(Sheet1!$D1:$D300=Sheet1!$E$2,IF(Sheet1!$B1:$B300="XXXXXXXXX",ROW(Sheet1!$A1:$A300)) ),ROW(Sheet1!1:1)),1)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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