# Microsoft Excel 2007 Formula Question

I have an Excel worksheet (named "Consolidated") where Column A is "Date", Column B is called "Type of Review." Each of these columns have different names and dates associated with them. In column F I have a value. So for example:
Column A        Column B         Column F
4/9/2012            Type A            100
4/9/2012            Type B             50
4/10/2012          Type A            110
4/10/2012          Type B             50

Rather than run a Pivot Table, which I am aware of, I have a new worksheet (named "Aggregate") where I am looking to sum/aggregate all of Column F by what it is labeled in Column B -- so here I would have Type A = 210 (regardless of the date) and Type B = 100. One of my colleagues recommended a sumproduct for getting this result. I am a beginner so detailed help would be useful and appreciated.
Asked:
###### Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mechanical EngineerCommented:
Assuming that worksheet Aggregate cell A2 contains Type A, here are three ways of getting your answer:

Using SUMPRODUCT:
=SUMPRODUCT(--(Consolidated!B\$2:B\$1000=A2),Consolidated!F\$2:F\$1000)      'The -- is the unitary operator, and converts TRUE/FALSE into 1 and 0

Using SUMIF:
=SUMIF(Consolidated!B\$2:B\$1000,A2,Consolidated!F\$2:F\$1000)

Using SUMIFS:
=SUMIFS(Consolidated!F\$2:F\$1000,Consolidated!B\$2:B\$1000,A2)                   'You may have additional test ranges and criteria to the right

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
Quick response, exactly what I needed. If you could do an overview of sumproduct function that would be very helpful as well.
Mechanical EngineerCommented:
You may find Microsoft Excel MVP Bob Phillip's web page on SUMPRODUCT to provide a good explanation of how it works: http://www.xldynamic.com/source/xld.SUMPRODUCT.html
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.