Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Microsoft Excel 2007 Formula Question

Posted on 2012-04-12
3
Medium Priority
?
296 Views
Last Modified: 2012-04-13
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.
0
Comment
Question by:mmcgillo88
[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
3 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 2000 total points
ID: 37840714
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
0
 

Author Closing Comment

by:mmcgillo88
ID: 37842415
Quick response, exactly what I needed. If you could do an overview of sumproduct function that would be very helpful as well.
0
 
LVL 81

Expert Comment

by:byundt
ID: 37843285
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
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

721 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