Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-09-14
2
Medium Priority
?
171 Views
Last Modified: 2012-05-12
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
- ad category (4),
- ad sizes (3)
- 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 sizes: 160x600, 300x250, 728x90
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
Comment
Question by:fredericgilbert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
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

by:fredericgilbert
ID: 36539116
Hi BarryHoudini,

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

Bye
fg
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question