+ Reply to Thread
Results 1 to 5 of 5

Can't save file if formula too complex?

  1. #1
    Registered User
    Join Date
    05-01-2020
    Location
    Massachusetts
    MS-Off Ver
    Excel for Mac 16.80 (Microsoft 365)
    Posts
    28

    Can't save file if formula too complex?

    This one is baffling me. Can someone test it out on their system? File is attached.

    Problem:
    File has 7000 rows of data. A somewhat complex lookup formula is used to pull data from another source based on a particular cell value. The formula works as intended, and is replicated for about 50 rows or so. File saves no problem.

    When copying the formula to the last row, everything seems fine. Calculation works, file updates with correct data. But when trying to save, Excel crashes. Column next to it with different formula causes no issues - copy to row 7000, save no problem.

    Bizarre. Happens whether file is .xlsx or .xslb. Have tried rebuilding file with no success. Even went as extreme as uninstalling MS Office and reinstalling. Same issue.

    Office 365 on a MacBook Pro FWIW.

    To isolate whether this was an issue with the lookup to another file, I even brought over all of the data from the other file into a new tab and saved it as values (read: no secondary lookups). Repointed the formula to the tab rather than the other file. Now everything is within one file.

    Copied rows to end. Calculated correctly. Save ... crash.

    ???

    To replicate:

    Upon opening, don't update data.

    Go to the last row of data in column I. Copy it down to the last row of the table (row 7766). Save. Note no issues. File will save.

    Go to the last row of data in column H. Copy it down 2 or 3 rows. Save. Note no issues.

    Go to new last row of data in column H. Copy it down to the last row of the table (roe 7766). Note that the data updates (you can tell by clicking the filter and noting there are options other than "zz"). Save file ... does it crash?

    If you want to see what the actual formula looks like, you can view it in column J (full path).
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-01-2020
    Location
    Massachusetts
    MS-Off Ver
    Excel for Mac 16.80 (Microsoft 365)
    Posts
    28

    Re: Can't save file if formula too complex?

    OK all... I've narrowed down that the issue has to be with the construct of the LET function, and perhaps some challenge of how the IFNA is being applied. When rewriting the formula like below, the issue disappears. But this formula is written inefficiently, thus my attempt to use the LET function to neaten it up.

    =IF(OR($E9="",$E9="zz"),"zz",
    IFNA(
    IF(VLOOKUP($E9,Working.xlsb!Place_GEOIDTable,33,FALSE)="Unique","zz",
    INDEX(Working.xlsb!Place_GNISTable,MATCH($E9,Working.xlsb!Place_GEOID,0),1)),
    "zz"))

  3. #3
    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,446

    Re: Can't save file if formula too complex?

    Attachment 854090

    I can't give you an answer but I can confirm that the file crashes when I tried to save it.
    Attached Images Attached Images
    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


  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Can't save file if formula too complex?

    Are you going to continue this tread?

    https://www.excelforum.com/excel-for...ml#post5902681

  5. #5
    Registered User
    Join Date
    05-01-2020
    Location
    Massachusetts
    MS-Off Ver
    Excel for Mac 16.80 (Microsoft 365)
    Posts
    28

    Re: Can't save file if formula too complex?

    Quote Originally Posted by TMS View Post
    Attachment 854090

    I can't give you an answer but I can confirm that the file crashes when I tried to save it.
    Thanks. I've developed a workaround that will suffice. I tried talking directly to Microsoft, but they had no answer either. Clearly something going on in the Excel cache or whatnot that the program can't handle. If anyone has another thought, I'm still curious, even though I've moved on. Thanks.

+ 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. Replies: 1
    Last Post: 04-18-2023, 05:06 AM
  2. [SOLVED] My Excel file is working slow calculating 2 threads with complex formula.
    By ahsan.masood1980 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-18-2020, 08:06 AM
  3. Complex IF/THEN formula required to create specific file names
    By kate.stearn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-04-2016, 08:50 AM
  4. Replies: 1
    Last Post: 09-05-2013, 02:39 PM
  5. How to make file name in formula = file save name
    By norvern in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-26-2013, 11:24 AM
  6. Complex Micro/Formula to Search from one File and Return Value in Another File
    By atthershabbir in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-29-2012, 01:31 AM
  7. Save file as pdf with a file name based on a formula
    By Ricky Wilko in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-08-2011, 09:50 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