BombCenter
New Member
- Joined
- Aug 31, 2011
- Messages
- 19
Hey all.
I have a worksheet which has a bunch of products. These products are keyed by a product type. Beneath this product list, there is a subtotal, profit (markup * subtotal), tax, commission, and a final total.
Markup rate, tax rate, commission, etc. can vary based on product type (e.g., some products are not taxable, some are marked up more than others, etc.)
I have a separate worksheet which has a list of each of the product types and their associated markup/tax/commission/etc values.
I have a formula that dynamically looks up the correct values based on the product type, like so:
=SUMPRODUCT(Product.Price, SUMIF(Index!Product.Type, Product.Type, Index!Product.Markup))
However, the values in Product.Markup (or Product.Tax, Product.Commission) are percentage values, and so when I multiply them by the price, I get a result which needs to be added back into the original price to display the final price with markup). Is there a way to add 1 to each of the values returned by the SUMIF array so I get something that behaves more like Product.Price * (Product.Markup + 1) instead of having to do Product.Price + (Product.Price * Product.Markup)? I'm trying to minimize my use of SUMPRODUCT and SUMIF and would prefer to not have to call them unnecessarily.
Thanks.
I have a worksheet which has a bunch of products. These products are keyed by a product type. Beneath this product list, there is a subtotal, profit (markup * subtotal), tax, commission, and a final total.
Markup rate, tax rate, commission, etc. can vary based on product type (e.g., some products are not taxable, some are marked up more than others, etc.)
I have a separate worksheet which has a list of each of the product types and their associated markup/tax/commission/etc values.
I have a formula that dynamically looks up the correct values based on the product type, like so:
=SUMPRODUCT(Product.Price, SUMIF(Index!Product.Type, Product.Type, Index!Product.Markup))
However, the values in Product.Markup (or Product.Tax, Product.Commission) are percentage values, and so when I multiply them by the price, I get a result which needs to be added back into the original price to display the final price with markup). Is there a way to add 1 to each of the values returned by the SUMIF array so I get something that behaves more like Product.Price * (Product.Markup + 1) instead of having to do Product.Price + (Product.Price * Product.Markup)? I'm trying to minimize my use of SUMPRODUCT and SUMIF and would prefer to not have to call them unnecessarily.
Thanks.