fun2excel4money
New Member
- Joined
- Dec 24, 2016
- Messages
- 18
Hello Community,
I've been stumped with a question for a bit while using a SUMPRODUCT. Below I have a fairly simple of example of what I want to accomplish. If the stock price ($20) is greater than the strike price, I want to take the difference and multiply it by the units. If I have a stock price ($20) that is less than the strike price, I want to multiply the units by zero. Below, I have a total of 9,500,000. I am attempting to use a SUMPRODUCT like so: =SUMPRODUCT(($B$4:$B$10)*(C$2-$A$4:$A$10)). This formula gives me a result of 9,383,000 as it is still taking the difference between the stock price and the strike price and multiplying it by units. So for the 1,000 unit lot, it is taking (20 - 22) x 1,000 which nets me a negative 2,000 when I want zero. Is there someway to modify this formula such that the SUMPRODUCT will return the correct answer? Many thanks for your help!
[TABLE="width: 345"]
<colgroup><col span="3"></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Stock Price[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]20.00[/TD]
[/TR]
[TR]
[TD]Strike Price[/TD]
[TD]Units[/TD]
[TD][/TD]
[/TR]
[TR]
[TD] 22.00[/TD]
[TD] 1,000.00[/TD]
[TD] - [/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD] 21.15[/TD]
[TD] 100,000.00[/TD]
[TD] - [/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] 601,000.00[/TD]
[TD] 9,500,000.00[/TD]
[/TR]
</tbody>[/TABLE]
I've been stumped with a question for a bit while using a SUMPRODUCT. Below I have a fairly simple of example of what I want to accomplish. If the stock price ($20) is greater than the strike price, I want to take the difference and multiply it by the units. If I have a stock price ($20) that is less than the strike price, I want to multiply the units by zero. Below, I have a total of 9,500,000. I am attempting to use a SUMPRODUCT like so: =SUMPRODUCT(($B$4:$B$10)*(C$2-$A$4:$A$10)). This formula gives me a result of 9,383,000 as it is still taking the difference between the stock price and the strike price and multiplying it by units. So for the 1,000 unit lot, it is taking (20 - 22) x 1,000 which nets me a negative 2,000 when I want zero. Is there someway to modify this formula such that the SUMPRODUCT will return the correct answer? Many thanks for your help!
[TABLE="width: 345"]
<colgroup><col span="3"></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Stock Price[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]20.00[/TD]
[/TR]
[TR]
[TD]Strike Price[/TD]
[TD]Units[/TD]
[TD][/TD]
[/TR]
[TR]
[TD] 22.00[/TD]
[TD] 1,000.00[/TD]
[TD] - [/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD] 21.15[/TD]
[TD] 100,000.00[/TD]
[TD] - [/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD] 1.00[/TD]
[TD] 100,000.00[/TD]
[TD] 1,900,000.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] 601,000.00[/TD]
[TD] 9,500,000.00[/TD]
[/TR]
</tbody>[/TABLE]