Solved

Help with SUMPRODUCT

Posted on 2012-03-30
3
249 Views
Last Modified: 2012-03-30
I need help creating a formula to count values in a table. This is what I have:

Pages   Pages Sent
3          3
4          10
5           5
2           12
6            6

I need to count the rows that have the same value in both columns and another count where the second value is bigger than the first one:
Same Amount of Pages: 3
Sent Duplicate Pages: 2

Thanks....
0
Comment
Question by:horalia
3 Comments
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 total points
ID: 37788381
You can use array functions to calculate these values.  Press [Ctrl]+[Shift]+[Enter] to complete the entry.

Assuming your example values are in columns A & B, then

For Same Amount:
{=SUM(IF((A2:A6)=(B2:B6),1,0))}

For Duplicate Pages:
{=SUM(IF((A2:A6)<(B2:B6),1,0))}

-Glenn
0
 

Author Closing Comment

by:horalia
ID: 37788416
Gotta work more with arrays... Thanks!
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 37788439
You could also do both with a non-array SUMPRODUCT as you suggest, e.g. for the first

=SUMPRODUCT((A2:A6=B2:B6)+0)

regards, barry
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now