Solved

Calculate summary in one column based on value in another one in Excel 2010

Posted on 2014-03-04
4
179 Views
Last Modified: 2014-03-04
Tried this formula based on one I found on this site. Mine doesn't work.
I want to enter the account numbers in the top summary area and get all of the values from the PO. Trying just one page for now but would like to be able to do it from all 3 pages for larger POs.
=SUMPRODUCT(($A$18:$A$39 =E10)*($J$18:$J$39))
blank.xls
0
Comment
Question by:maryj152
  • 2
  • 2
4 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39903588
SUMIF is better for a single condition, i.e.

=SUMIF($A$18:$A$39,E10,$J$18:$J$39)

In this case that works because SUMIF ignores the text values in column J which are leading to #VALUE! errors for SUMPRODUCT

regards, barry
0
 

Author Comment

by:maryj152
ID: 39903656
That works on one page . Now how do I identify the columns on all three different pages?
0
 

Author Comment

by:maryj152
ID: 39903711
This is what i tried
=SUMIF(page1!$A$18:page3!$A39,e10,page1!$J$18:page3!$J$39)
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 39904058
"3d" ranges (ranges across multiple sheets) don't work with SUMIF. For only 3 worksheets you could just add 3 SUMIF formulas together like this:

=SUMIF(page1!$A$18:$A$39,E10,page1!$J$18:$J$39)+SUMIF(page2!$A$18:$A$39,E10,page2!$J$18:$J$39)+SUMIF(page3!$A$18:$A$39,E10,page3!$J$18:$J$39)

or this formula is more easily extensible for multiple worksheets

=SUM(SUMIF(INDIRECT("page"&{1,2,3}&"!$A$18:$A$39"),E10,INDIRECT("page"&{1,2,3}&"!$J$18:$J$39")))

regards, barry
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

706 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

13 Experts available now in Live!

Get 1:1 Help Now