Mr Retirement
New Member
- Joined
- Nov 12, 2016
- Messages
- 46
Hi Everyone -
I'm looking to create a sum formula to capture multiple criteria and I am open for suggestions.
[TABLE="width: 25"]
<tbody>[TR]
[TD][/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[TD][/TD]
[TD][/TD]
[TD]List:[/TD]
[TD]List:[/TD]
[/TR]
[TR]
[TD]Car[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]Car[/TD]
[TD]Jan[/TD]
[/TR]
[TR]
[TD]House[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Airplane[/TD]
[TD]Mar[/TD]
[/TR]
[TR]
[TD]Airplane[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]Boat[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Boat[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Formula:[/TD]
[TD]XXXX[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am looking sum the table for the criteria in the 2 lists to the right. Is there a way to do this? In the example above the sum would come to 16. I've tried various sumifs, sumproducts, etc. but I cannot figure out the solution without manually typing "Jan" or "Car". The list may change over time so I'd like it to link to those cells/range.
If VBA is the only way, I'm open to that as well.
Thanks everyone!
Mr R.
I'm looking to create a sum formula to capture multiple criteria and I am open for suggestions.
[TABLE="width: 25"]
<tbody>[TR]
[TD][/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[TD][/TD]
[TD][/TD]
[TD]List:[/TD]
[TD]List:[/TD]
[/TR]
[TR]
[TD]Car[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]Car[/TD]
[TD]Jan[/TD]
[/TR]
[TR]
[TD]House[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Airplane[/TD]
[TD]Mar[/TD]
[/TR]
[TR]
[TD]Airplane[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]Boat[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Boat[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Formula:[/TD]
[TD]XXXX[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am looking sum the table for the criteria in the 2 lists to the right. Is there a way to do this? In the example above the sum would come to 16. I've tried various sumifs, sumproducts, etc. but I cannot figure out the solution without manually typing "Jan" or "Car". The list may change over time so I'd like it to link to those cells/range.
If VBA is the only way, I'm open to that as well.
Thanks everyone!
Mr R.