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

x
?
Solved

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

Posted on 2014-03-04
4
Medium Priority
?
192 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
[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
  • 2
4 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

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