+ Reply to Thread
Results 1 to 2 of 2

Sheet Full of Complex Formulas Maxing out CPU 100%

  1. #1
    Registered User
    Join Date
    02-09-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    5

    Sheet Full of Complex Formulas Maxing out CPU 100%

    Hello everyone,

    I have a sheet that is full of formulas that search 500 records in a reference sheet, and return the record (string) that contains the exact text I am searching for. The formulas work great, however, now that I am searching all 999 rows for these matching strings, my CPU is maxing out at 100% for 15 minutes while it executes. I have attached the formula below, each cell(in the 5 columns I am populating) contains this exact formula with different cell references. (B2,B3,B4, etc)

    My questions are as follows:

    Am I doing something wrong here with my methodology?
    Is there any way that I can improve these execution times?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sheet Full of Complex Formulas Maxing out CPU 100%

    Helper Columns... They're NOT a bad thing
    Excel gives you over 16000 columns, it's ok to use a few of them.

    You have this part repeated 4 times in the formula
    LOOKUP(2,1/ISNUMBER(SEARCH(B5,'C:\Users\Admin\Downloads\[Risk_Excel_Export.xlsx]Sheet1'!$A$1:$A$999)),'C:\Users\Admin\Downloads\[Risk_Excel_Export.xlsx]Sheet1'!$A$1:$A$999)

    That's creating 4x the amount of work for each single formula.

    I would say put that part in it's own cell, say C5 for example
    C5: =LOOKUP(2,1/ISNUMBER(SEARCH(B5,'C:\Users\Admin\Downloads\[Risk_Excel_Export.xlsx]Sheet1'!$A$1:$A$999)),'C:\Users\Admin\Downloads\[Risk_Excel_Export.xlsx]Sheet1'!$A$1:$A$999)

    Then your formula is reduced to

    =IF(ISBLANK(B5),"",TRIM(MID(C5,FIND("POLICE AGENCY THEFT REPORTED TO",C5),FIND("POLICE AGENCY PHONE #",C5)-(FIND("POLICE AGENCY THEFT REPORTED TO",C5)+5))))

    And now you have this part repeated twice times
    FIND("POLICE AGENCY THEFT REPORTED TO",C5)

    Let's put that in D5
    D5: =FIND("POLICE AGENCY THEFT REPORTED TO",C5)

    Now we have
    =IF(ISBLANK(B5),"",TRIM(MID(C5,D5,FIND("POLICE AGENCY PHONE #",C5)-(D5+5))))


    That should be significantly more efficient.

+ 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. Poll on - Lots of simple formulas vs fewer but more complex formulas
    By gassiusmax in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-20-2014, 08:51 PM
  2. Full Column Formulas
    By fredlo2010 in forum Excel General
    Replies: 2
    Last Post: 12-09-2014, 03:34 PM
  3. Parsing Complex Full Names Strings into Collumns
    By crbarnes.it in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2014, 02:19 PM
  4. Shorten formula to avoid maxing of CPU??
    By constructionsheets in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2011, 02:51 AM
  5. How to display form for set length of time without maxing cpu?
    By samtwilliams in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2008, 05:17 AM
  6. [SOLVED] Formulas for Parsing Full names
    By jonefer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2006, 02:30 AM
  7. Maxing out IF function - other option?
    By Olsonsbiz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2005, 11:47 PM

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