Solved

# SUM IF in a very big worksheet slows my computer. Any idea to improve current situation.

Posted on 2011-09-14
Medium Priority
174 Views
Hi,

My problem: the SUM IF array formulas I use aldo accurate are too numerous, check too much cells and use many conditions making my computer while recalculating them very slooooow....
The worksheet I work with is usually around 85000 lines long.

Context: I have to calculate the Fill Rate%, Total per Ad Size and per Category by
- per site (around 250+) in one worksheeet.
The calculated cells are the yellow ones in R, S, T, U.

Note: both (4), (3), (250+) listed above are current numbers but they might be more in the very near future.

I need to do those calculations in the worksheet while keeping the current layout as I will use it to do a pivot table of the results afterwards.  I wouldn't want to chunck my worksheet in smaller ones and have to merge the data afterwards as value afterwards...

Any way you think that could improve my situation?

-------------------------------------------------
My data is segmented by:
Ad categories: CPM, Remnant, No Cost, Marketing
Site Names: 250+

I have used the following formulas (as arrays) and they are accurate.

1) To calculate the numbers of impressions per Ad Sizes
=SUM(IF(\$D\$2:\$D\$100000=\$D543;IF(\$V\$2:\$V\$100000=\$B543;IF(\$A\$2:\$A\$100000=A543;\$N\$2:\$N\$100000;0);0);0))

2) To calculate the numbers of impressions per Ad Categories:
=SUM(IF(\$D\$2:\$D\$100000=\$D543;IF(\$V\$2:\$V\$100000=\$B543;IF(\$A\$2:\$A\$100000=A543;\$N\$2:\$N\$100000;0);0);0))

3) Fill Rate: S543/T543

A document with some data is attached for your comprehension.

Thanks
20110914-ExpertsExchange-workdoc.xlsm
0
Question by:fredericgilbert

LVL 50

Accepted Solution

barry houdini earned 2000 total points
ID: 36538861
It should be much faster to use SUMIFS function, try this for formula 1 (sum range must come first)

=SUMIFS(\$N\$2:\$N\$100000;\$D\$2:\$D\$100000;\$D543;\$V\$2:\$V\$100000;\$B543;\$A\$2:\$A\$100000;A543)

Formula 2 can be amended in the same way

regards, barry

0

Author Comment

ID: 36539116
Hi BarryHoudini,

I will test them tonight and get back to you.
Sounding promising at first sight.

Bye
fg
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
###### Suggested Courses
Course of the Month7 days, 21 hours left to enroll