SpencerRichman
New Member
- Joined
- Feb 15, 2013
- Messages
- 33
- Office Version
- 2021
- Platform
- Windows
I have a table of data like this:
[TABLE="width: 389"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Annual Charges[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]File #[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]2013[/TD]
[TD="align: right"]2014[/TD]
[/TR]
[TR]
[TD="align: right"]120[/TD]
[TD="align: right"]$505.00[/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$120.00[/TD]
[/TR]
[TR]
[TD="align: right"]908[/TD]
[TD="align: right"]$15.00[/TD]
[TD="align: right"]$1,200.00[/TD]
[TD="align: right"]$1,425.00[/TD]
[/TR]
[TR]
[TD="align: right"]862[/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$3,750.00[/TD]
[/TR]
[TR]
[TD="align: right"]908[/TD]
[TD="align: right"]$2,000.00[/TD]
[TD="align: right"]$105.00[/TD]
[TD="align: right"]$25.00[/TD]
[/TR]
</tbody>[/TABLE]
Notice that there are TWO rows with File #908 . I am trying to use Index Match to find the charges that match the file number in the first column and return the results of the charges in one of the annual charges columns, depending on the year. The traditional Index Match formula only returns the FIRST match of $1,425 for file #908 .
What I want is to return the SUM of ALL the matches for file #908 . But I still need to preserve the ability in the formula to choose the column based on another cell (in which I input the year that I'm working on). Any suggestions? (P.S. I'm working in Excel 2010).
[TABLE="width: 389"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Annual Charges[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]File #[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]2013[/TD]
[TD="align: right"]2014[/TD]
[/TR]
[TR]
[TD="align: right"]120[/TD]
[TD="align: right"]$505.00[/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$120.00[/TD]
[/TR]
[TR]
[TD="align: right"]908[/TD]
[TD="align: right"]$15.00[/TD]
[TD="align: right"]$1,200.00[/TD]
[TD="align: right"]$1,425.00[/TD]
[/TR]
[TR]
[TD="align: right"]862[/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$3,750.00[/TD]
[/TR]
[TR]
[TD="align: right"]908[/TD]
[TD="align: right"]$2,000.00[/TD]
[TD="align: right"]$105.00[/TD]
[TD="align: right"]$25.00[/TD]
[/TR]
</tbody>[/TABLE]
Notice that there are TWO rows with File #908 . I am trying to use Index Match to find the charges that match the file number in the first column and return the results of the charges in one of the annual charges columns, depending on the year. The traditional Index Match formula only returns the FIRST match of $1,425 for file #908 .
What I want is to return the SUM of ALL the matches for file #908 . But I still need to preserve the ability in the formula to choose the column based on another cell (in which I input the year that I'm working on). Any suggestions? (P.S. I'm working in Excel 2010).