I'm putting together a spreadsheet of trades i've made in the last few months and require some help on how i can automate the profit and loss calculation.
I need to enter code in the last column (called P/L) which will base its calculation on the values of the open and close column. I believe a third column called L/S (for long and short )is required to automate the spreadsheet.
Could someone explain how i can enter a formula which (for example) will go along the lines of if cell A1 = s (for short) then P/L=C1(close) -B1(open) or if cell A1 = l (for long) then P/L=B1 (open)-C1 (Close).
Hope the above makes sense and would appreciate any help.
Cheers,
Mick
* I do realise that i could manually type in values to take one cell from another but would like to enter code based on certain conditions
I need to enter code in the last column (called P/L) which will base its calculation on the values of the open and close column. I believe a third column called L/S (for long and short )is required to automate the spreadsheet.
Could someone explain how i can enter a formula which (for example) will go along the lines of if cell A1 = s (for short) then P/L=C1(close) -B1(open) or if cell A1 = l (for long) then P/L=B1 (open)-C1 (Close).
Hope the above makes sense and would appreciate any help.
Cheers,
Mick
* I do realise that i could manually type in values to take one cell from another but would like to enter code based on certain conditions