LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Cachod1
 
Posts: n/a
Default Formula question

Am trying to set up a tracking sheet for equity trades. Have 4 possible
scenarios:
Long position with profit / Long position with loss
Short position with profit / Short position with loss
Need a formula in my "Profit/Loss" column to reflect these four possibilities.
No idea how to do this, but logic is something like this:
(short position with loss):
If A1="short", and sum of (g1 - d1) is a positive number, then end result
in my "Profit/Loss" will be a Loss and so calculation needs to show up as a
negative number.
(short position with profit):
If A1="short", and sum of (g1-d1) is a negative number, then end result in
"Profit/Loss" column with be a Profit and so needs to show up as a positive
number.
(long position with profit):
If A1="long", and sum of (g1-d1) is a positive number, then end result is
profit/positive number
(long position with loss):
If A1="long", and sum of (g1-d1) is a negative number, then end result is
loss/negative number.

Would greatly appreciate any help!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula (IF) question Drew Halevy Excel Worksheet Functions 7 February 2nd 05 07:19 PM
Formula Question JDT Excel Discussion (Misc queries) 2 January 30th 05 01:17 PM
formula Question danlinksman Excel Discussion (Misc queries) 3 January 25th 05 02:07 PM
Lookup/Index formula question. Barbara Excel Worksheet Functions 2 December 7th 04 04:45 PM
Parsing Data w/ a Formula (another question) carl Excel Worksheet Functions 2 December 3rd 04 06:51 PM


All times are GMT +1. The time now is 01:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"