ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Creating a formula (https://www.excelbanter.com/excel-worksheet-functions/219558-creating-formula.html)

Karsea

Creating a formula
 
Qty Purchase $ Fee Total Cost Sell $ Fee
Total Gain/Loss
A B C D E F G H
380 5.46 9.95 2068.61 5.63 9.95
2133.21 64.60

My question is if we do not sell (E) and there is no fee (f) how do I create
a calculation to indicate in (G) the amount $ in D (2068.61) and the
gain/loss to show 0 (zero) when there is no sell $ . . . ? THANKS!

Bill Kuunders

Creating a formula
 
In G2 enter =IF(E2=0,D2,A2*E2-F2)
in H2 enter =G2-D2

I did have a probelem getting the same numbers as you.
I actually had to change the fee amount to 6.19 to get the same
totals...........
Hope this helped

--
Greetings from New Zealand

"Karsea" wrote in message
...
Qty Purchase $ Fee Total Cost Sell $ Fee
Total Gain/Loss
A B C D E F G H
380 5.46 9.95 2068.61 5.63 9.95
2133.21 64.60

My question is if we do not sell (E) and there is no fee (f) how do I
create
a calculation to indicate in (G) the amount $ in D (2068.61) and the
gain/loss to show 0 (zero) when there is no sell $ . . . ? THANKS!




Karsea

Creating a formula
 
Hi there,

Yes - sorry I entered the incorrect amount - in spite of this I used your
calculation - and it worked perfectly!

Thank you very much!

"Bill Kuunders" wrote:

In G2 enter =IF(E2=0,D2,A2*E2-F2)
in H2 enter =G2-D2

I did have a probelem getting the same numbers as you.
I actually had to change the fee amount to 6.19 to get the same
totals...........
Hope this helped

--
Greetings from New Zealand

"Karsea" wrote in message
...
Qty Purchase $ Fee Total Cost Sell $ Fee
Total Gain/Loss
A B C D E F G H
380 5.46 9.95 2068.61 5.63 9.95
2133.21 64.60

My question is if we do not sell (E) and there is no fee (f) how do I
create
a calculation to indicate in (G) the amount $ in D (2068.61) and the
gain/loss to show 0 (zero) when there is no sell $ . . . ? THANKS!






All times are GMT +1. The time now is 10:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com