I need to sum data based on both the row matching a condition (e.g. =rent) and the column meeting a condition (e.g. =1.10.BL.000.16.3A). For instance in the example below I need a formula that causes the cell to sum to 133.
[TABLE="width: 787"]
<TBODY>[TR]
[TD][/TD]
[TD]1.10.BL.000.16.15</SPAN>
[/TD]
[TD]1.10.BL.000.16.1Q</SPAN>
[/TD]
[TD]1.10.BL.000.16.3A</SPAN>
[/TD]
[/TR]
[TR]
[TD]Rent</SPAN>
[/TD]
[TD]54[/TD]
[TD][/TD]
[TD]133
[/TD]
[/TR]
[TR]
[TD]Utilities</SPAN>
[/TD]
[TD]263[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Building Repairs</SPAN>
[/TD]
[TD]217[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
</TBODY>[/TABLE]
[TABLE="width: 627"]
<TBODY>[TR]
[TD][/TD]
[TD]1.10.BL.000.16.15</SPAN>
[/TD]
[TD]1.10.BL.000.16.1Q</SPAN>
[/TD]
[TD]1.10.BL.000.16.3A</SPAN>
[/TD]
[/TR]
[TR]
[TD]Building Repairs</SPAN>
[/TD]
[TD]217</SPAN>
[/TD]
[TD][/TD]
[TD]2</SPAN>
[/TD]
[/TR]
[TR]
[TD]Equip Rental R&M</SPAN>
[/TD]
[TD]76</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rent</SPAN>
[/TD]
[TD]54</SPAN>
[/TD]
[TD][/TD]
[TD]103</SPAN>
[/TD]
[/TR]
[TR]
[TD]Rent</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD]30</SPAN>
[/TD]
[/TR]
[TR]
[TD]Utilities</SPAN>
[/TD]
[TD]263</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
I can't get sumif to work because sometimes the data I want to sum is in column B (1.10.BL.000.16.15) and sometimes it is in column D (1.10.BL.000.16.3A). I don't want to just hand address those columns but instead have it lookup or match to find the correct column to sum. Sumifs doesn't seem to work because the criteria are not just down two different rows, rather one is in a row (=rent) and the other a column (=1.10.BL.000.16.3A).
[TABLE="width: 787"]
<TBODY>[TR]
[TD][/TD]
[TD]1.10.BL.000.16.15</SPAN>
[/TD]
[TD]1.10.BL.000.16.1Q</SPAN>
[/TD]
[TD]1.10.BL.000.16.3A</SPAN>
[/TD]
[/TR]
[TR]
[TD]Rent</SPAN>
[/TD]
[TD]54[/TD]
[TD][/TD]
[TD]133
[/TD]
[/TR]
[TR]
[TD]Utilities</SPAN>
[/TD]
[TD]263[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Building Repairs</SPAN>
[/TD]
[TD]217[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
</TBODY>[/TABLE]
[TABLE="width: 627"]
<TBODY>[TR]
[TD][/TD]
[TD]1.10.BL.000.16.15</SPAN>
[/TD]
[TD]1.10.BL.000.16.1Q</SPAN>
[/TD]
[TD]1.10.BL.000.16.3A</SPAN>
[/TD]
[/TR]
[TR]
[TD]Building Repairs</SPAN>
[/TD]
[TD]217</SPAN>
[/TD]
[TD][/TD]
[TD]2</SPAN>
[/TD]
[/TR]
[TR]
[TD]Equip Rental R&M</SPAN>
[/TD]
[TD]76</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rent</SPAN>
[/TD]
[TD]54</SPAN>
[/TD]
[TD][/TD]
[TD]103</SPAN>
[/TD]
[/TR]
[TR]
[TD]Rent</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD]30</SPAN>
[/TD]
[/TR]
[TR]
[TD]Utilities</SPAN>
[/TD]
[TD]263</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
I can't get sumif to work because sometimes the data I want to sum is in column B (1.10.BL.000.16.15) and sometimes it is in column D (1.10.BL.000.16.3A). I don't want to just hand address those columns but instead have it lookup or match to find the correct column to sum. Sumifs doesn't seem to work because the criteria are not just down two different rows, rather one is in a row (=rent) and the other a column (=1.10.BL.000.16.3A).