+ Reply to Thread
Results 1 to 3 of 3

FORMULAS bringing Excel to a halt - need advice

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Burnaby, BC
    MS-Off Ver
    Excel 2010
    Posts
    29

    FORMULAS bringing Excel to a halt - need advice

    Hi Folks -

    I am working with a very large database of timesheet entries - 200,000+ rows. The file itself is about 28MB. Until recently the file has been manageable, but I suspect the addition of 2 formulas is causing Excel to hang even when I try to do simple selections etc. I'm no Excel guru, so I'm certain my formulas are not ideal or efficient. I am hoping someone can take pity on a relative newbie and give me some advice about the following formulas. I'd prefer not to post the doc itself (or a part of it) if not absolutely necessary I imagine that just looking at my formulas some of you may be able to recognize obvious issues, and perhaps be able to suggest better approaches using other types of formulas.

    Thanks!

    =IF(ISBLANK([@[Pipeline Step]]),INDEX('Roles by Name'!A:B,MATCH([@Person],'Roles by Name'!$A$1:$A$290,0),2),(IF([@[Pipeline Step]]="STB - Standby",INDEX('Roles by Name'!A:B,MATCH([@Person],'Roles by Name'!$A$1:$A$290,0),2),INDEX('Roles by Step'!A:B,MATCH([@[Pipeline Step]],'Roles by Step'!$A$1:$A$57,0),2))))


    =IF([@Task]="Standby","WFA",IF([@Type]="Depot Management","WFA",IF([@Type]="Vacation","PTO",IF([@Type]="Paid Holiday","PTO",IF([@Type]="Sick Personal Day","PTO",IF([@Type]="Unpaid Time Off","UTO",IF([@Type]="Sales","SALES",IF([@Type]="Pipeline","PIPE",IF([@Type]="Project",IF([@ProdType]="Internal","WFA","PROJ"),IF([@Type]="Engineering", IF([@Dept]= "Artists", "DOWN","ENG"),IF([@Type]="Admin","WFA",IF([@Type]="Training",IF(SUM(IF(ISNUMBER(SEARCH('Key Words'!$A$2:$A$14,[@Notes])),1,0))>0,"TRAIN","WFA")
    ))))))))))))
    Last edited by PWM; 03-30-2014 at 03:09 AM.

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: FORMULAS bringing Excel to a halt - need advice

    Anytime you use ranges such as "A:B" you are referencing EVERY SINGLE ROW in those columns (over 1 million rows, over two columns, meaning 2 million cells!). Changing the range to $A$1:$A$250000 would eliminate a majority of the references from your formulas. That is one easy improvement.
    Do some research on Dynamic Ranges, as they would also help in making the range only be as large as it has to be, rather than the entire column.
    Please click the * icon below if I have helped.

  3. #3
    Registered User
    Join Date
    02-25-2014
    Location
    Burnaby, BC
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: FORMULAS bringing Excel to a halt - need advice

    Quote Originally Posted by Melvinrobb View Post
    Anytime you use ranges such as "A:B" you are referencing EVERY SINGLE ROW in those columns (over 1 million rows, over two columns, meaning 2 million cells!). Changing the range to $A$1:$A$250000 would eliminate a majority of the references from your formulas. That is one easy improvement.
    Do some research on Dynamic Ranges, as they would also help in making the range only be as large as it has to be, rather than the entire column.
    Thanks so much for this advice - very helpful I'll be sure to boost your rep!

    I'll leave the post open a while longer in case anyone else wants to share some pointers as well.

+ 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. [SOLVED] Need advice on data processing formulas in Excel 2010
    By robinc1969 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2013, 05:32 PM
  2. Formulas and some advice?!
    By CamillaKb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-15-2012, 06:02 AM
  3. Advice/ Macros or Formulas?
    By TheColonel89 in forum Excel General
    Replies: 11
    Last Post: 08-09-2012, 12:54 PM
  4. Advice on bringing data together please
    By Couchy in forum Excel General
    Replies: 3
    Last Post: 03-14-2012, 06:31 AM
  5. Bringing formulas from one sheet to the next
    By drillguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2008, 07:53 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