Find profit if criteria exists

bdenn

New Member
Joined
Feb 3, 2017
Messages
29
Office Version
  1. 365
Platform
  1. Windows
Hello,
I'm looking to find the profit for sales in a list. Problem is I need to check that both the product and size match. When using a sumifs statement, it would not let me set the sum range to a single cell, it only would accept a range.

Goal: If product & size exist/true, then "(Retail Cost - Cost)*Count", but if not skip the equation and check the next possible outcome.

Not sure if sumifs is what I should be using because if the first condition (product & size) don't match then I want it to check the next item to see if it exists.

Thanks,
Bdenn

Profit.xlsx
ABCDEFGHI
1SalesProduct Cost
2CountRetail CostSizeProductProfitProductSizeCost
3120Size 1Product 1$ 12.00Product 1Size 1$ 8.00
4121Size 2Product 2$ 12.00Product 1Size 2$ 9.00
5122Size 3Product 3$ 12.00Product 1Size 3$ 10.00
6Product 2Size 1$ 8.00
7Product 2Size 2$ 9.00
8Product 2Size 3$ 10.00
9Looking to find the profit under sales (E) Needs to check size and product, if they exist then (B-I)*A (Retail Cost - Cost)*CountProduct 3Size 1$ 8.00
10Product 3Size 2$ 9.00
11Product 3Size 3$ 10.00
Sheet1
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Goal: If product & size exist/true, then "(Retail Cost - Cost)*Count"
How about:
Dante Amor
ABCDEFGHI
1SalesProduct Cost
2CountRetail CostSizeProductProfitProductSizeCost
3120Size 1Product 112Product 1Size 18
4121Size 2Product 212Product 1Size 29
5122Size 3Product 312Product 1Size 310
6Product 2Size 18
7Product 2Size 29
8Product 2Size 310
9Looking to find the profit under sales (E) Needs to check size and product, if they exist then (B-I)*A (Retail Cost - Cost)*CountProduct 3Size 18
10Product 3Size 29
11Product 3Size 310
Hoja4
Cell Formulas
RangeFormula
E3:E5E3=B3-(SUMIFS($I$3:$I$11,$G$3:$G$11,D3,$H$3:$H$11,C3))*A3


but if not skip the equation and check the next possible outcome.
I did not understand very well. If it doesn't exist, what do you need?
Could you give a couple of examples
 
Upvote 0
Solution
Hello,
I meant that if the input was different it would go down the list till it found it.

Your answer was helpful and worked.

Thank You!
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,592
Messages
6,125,713
Members
449,253
Latest member
Mbogo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top