dwilliamson1024
New Member
- Joined
- Dec 8, 2014
- Messages
- 40
I am in need of a formula (I'm assuming an array which is slightly out of my comfort zone) to return a sum. Essentially I need to return a sum value of multiple columns based on a lookup value, but cannot use VLOOKUP since I want to return the sum of multiple columns.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Item #:[/TD]
[TD]Sum of Jan through March:[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]*Formula needed here to return result of 15*[/TD]
[/TR]
</tbody>[/TABLE]
Lookup tab:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Item[/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]March[/TD]
[TD]Apr[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD]July[/TD]
[TD]Aug[/TD]
[TD]Sep[/TD]
[TD]Oct[/TD]
[TD]Nov[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
It would be nice to also know how to do it as an sum(if(and type array so I could know how to enter a formula that if the item is = XYZ or ABC, give me the sum value of both as I will need that in this file as well.
Thanks for any help!
[TABLE="width: 500"]
<tbody>[TR]
[TD]Item #:[/TD]
[TD]Sum of Jan through March:[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]*Formula needed here to return result of 15*[/TD]
[/TR]
</tbody>[/TABLE]
Lookup tab:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Item[/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]March[/TD]
[TD]Apr[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD]July[/TD]
[TD]Aug[/TD]
[TD]Sep[/TD]
[TD]Oct[/TD]
[TD]Nov[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
It would be nice to also know how to do it as an sum(if(and type array so I could know how to enter a formula that if the item is = XYZ or ABC, give me the sum value of both as I will need that in this file as well.
Thanks for any help!