Solved

Using Indirect in Sumif

Posted on 2014-03-30
3
241 Views
Last Modified: 2014-03-30
I am trying to modify a SumIf using "Indirect" to return the the sum of data  that is two rows above the criteria for the sum.   I just can't seem to get it to work.

Sample data attached
EE-Book2.xlsx
0
Comment
Question by:uad
3 Comments
 
LVL 24

Accepted Solution

by:
mankowitz earned 250 total points
ID: 39965079
I'm not sure you want INDIRECT here which returns the values in a range when an address (i.e. "A1:A2") is specified.

Why don't you offset the second reference by two rows, like this

=SUMIF($F$3:$F$22,"t",$D$1:$D$20)

Note that the F column starts at F3, while the D column starts at D1
0
 
LVL 27

Assisted Solution

by:MacroShadow
MacroShadow earned 250 total points
ID: 39965086
Enclose the range in double quotes, i.e.
=SUMIF($F$3:$F$22,"t",INDIRECT("$E$1:$E$20"))

Open in new window

0
 

Author Closing Comment

by:uad
ID: 39965128
Had to split the points, because both solutions worked.
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

Suggested Solutions

Title # Comments Views Activity
Creating Excel 2010 Chart 9 42
MS Excel shared file syncing 8 66
Excel 2010 Slicer Issue 3 50
Incorporate VBA Code to work with Original Workbook 23 35
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Viewers will learn how to create a PivotTable and make basic changes to it in Excel 2013.
Viewers will learn a basic data manipulation technique of unpivoting data in Power Query for Excel 2013 and the importance of using good data. Start with data in a poor structure: Create a table on your data: Unpivot columns: Rename columns: …

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

18 Experts available now in Live!

Get 1:1 Help Now