Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default Performance IF(IF or IF(AND

I have a large spreadsheet which currently has 4000 * 12 cells in use each
with 3 calculations in nested if, hence 144,000 calc.
e.g.
If (A1 < "",IF(SUMPRODUCT(--FRED),SUMPRODUCT(--FRED)," ")," ")
..i.e. if A1 is blank then display space or if sum of FRED is 0 then display
space

would it be quicker to use IF(AND, eg.
IF(AND(A1, < "",SUMPRODUCT(--FRED)),SUMPRODUCT(--FRED)," ")

The reason I'm asking is it's taking a long time to run currently.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Performance IF(IF or IF(AND

Paul,

Is FRED a static or dynamic name? If it is static then you don't have
to calculate it every time, you can just calculate it in a separate
cell, say Z1. Then your formula can become:

=IF(OR(A1="",NOT(Z1))," ",Z1)

If it is a dynamic name, e.g. calculates differently depending on the
cell row then you can use an extra column to calculate the result for
each row and use a similar formula.

Does this help?
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default Performance IF(IF or IF(AND



"vezerid" wrote:

Paul,

Is FRED a static or dynamic name? If it is static then you don't have
to calculate it every time, you can just calculate it in a separate
cell, say Z1. Then your formula can become:

=IF(OR(A1="",NOT(Z1))," ",Z1)

If it is a dynamic name, e.g. calculates differently depending on the
cell row then you can use an extra column to calculate the result for
each row and use a similar formula.

Does this help?
Kostis Vezerides

Fred is a defined name based on another column on another sheet. Why use another row to do the calculation - would this increase the performance? Which is the faster IF(OR or if(...if

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to combine VLOOKUP and IF(AND) functions? Ihoris Excel Worksheet Functions 1 April 6th 06 09:54 AM
web performance metrics chart help JVG Charts and Charting in Excel 0 February 6th 06 04:40 PM
What tweaks are there to improve system performance in excel? Kiran Excel Discussion (Misc queries) 0 October 15th 05 05:00 PM
Can you create a performance dashboard using Excel? sbtrooper Excel Discussion (Misc queries) 0 February 16th 05 05:05 PM
Poor Workbook Performance due to Named Ranges jrusso Excel Discussion (Misc queries) 2 January 10th 05 11:39 PM


All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"