+ Reply to Thread
Results 1 to 8 of 8

Unable to fix a #VALUE! Error

  1. #1
    Registered User
    Join Date
    07-04-2013
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Unable to fix a #VALUE! Error

    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.
    Last edited by surfer1; 04-27-2017 at 08:49 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Unable to fix a #VALUE! Error

    Hi,

    The "L/S" in your IF formula needs to be a cell reference. Such as A2, A3, A4...
    The formula is looking for the presence of an "L" or an "S" in a cell in column A.
    Then it will return the statement directed by the rest of the formula.

    Cheers

  3. #3
    Registered User
    Join Date
    07-04-2013
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Unable to fix a #VALUE! Error

    Hi Southward,

    the formula is within a table. The actual cell reference is [@[L/S]]

    L/S is simply the column heading. To clarify, the #VALUE! is appearing in Column F where there is no value in listed in the L/S column. Very sorry, I should have specified that at the beginning. The

    Cheers.
    Last edited by surfer1; 04-27-2017 at 08:46 PM.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,477

    Re: Unable to fix a #VALUE! Error

    Is it are you looking for?

    A2="S" or "L"

    B2:E2 is value:

    =IFERROR(IF(A2="S",1,-1)*(B2-C2)-D2-E2,"NONE")
    Quang PT

  5. #5
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Unable to fix a #VALUE! Error

    Here you go:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-04-2013
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Unable to fix a #VALUE! Error

    Hi Guys, here's a screenshot of the spreadsheet and formula.
    Excel_Error.jpg

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,477

    Re: Unable to fix a #VALUE! Error

    Is Gross, Sale and Buy fee a space returns from its formula, like =.....,"",... ?

    Try to replace "" with value 0.

  8. #8
    Registered User
    Join Date
    07-04-2013
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Unable to fix a #VALUE! Error

    I think the issue is stemming from the other column formulas whereby they contain "" instead on "0". My Profit/loss column could be reading the other columns that contain a formula and no numeric value and causing the result to display #VALUE! instead of displaying blank. Just a theory.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] unable to resolve error 424
    By rickmeister in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-28-2017, 04:46 PM
  2. unable to resolve a #NUM! error message
    By Bill369 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2015, 07:12 PM
  3. 1004 Error due to nasty server - unable to error handle
    By PuppyOnTheRadio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2013, 06:39 AM
  4. Replies: 3
    Last Post: 11-08-2012, 07:25 PM
  5. Unable to Identify Error in Formula
    By questers in forum Excel General
    Replies: 4
    Last Post: 07-03-2010, 03:02 PM
  6. Unable to empty clipboard error
    By Elliot Gingold in forum Excel General
    Replies: 2
    Last Post: 02-22-2006, 09:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1