Hi guys, I'm experiencing a #VALUE! Error in my formula and I'm lost trying to fix it. I was hoping someone might be able to assist.
I have a portfolio manager with six columns, among others. They are -
Column A: L/S
Column B: Capital
Column C: Gross Sale
Column D: Buy fees
Column E: Sell fees
Column F: Profit/Loss
My formula (in column F) is designed to calculate the profit for either a short or long sale, designated by either an "L" or "S" in column A. Th error is appearing when there is no value inputted to the L/S column. Instead of the #VALUE! appearing in column F, I'd like it to be blank when no value is available for the Gross column.
My formula looks like this:
=IF(L/S="S", capital-gross-sell fees-buy fees, gross-capital-buy fees-sell fees)
The other formula I had was:
=IF(L/S="S", capital-gross-sell fees-buy fees, IF(L/S="L", gross-capital-buy fees-sell fees),"")
Thanks in advance. I'm also happy to attach the spreadsheet for further inspection. Cheers.
Bookmarks