+ Reply to Thread
Results 1 to 4 of 4

ABS and If producing !VALUE!

  1. #1
    Forum Contributor
    Join Date
    03-25-2011
    Location
    London, England
    MS-Off Ver
    office 2021
    Posts
    317

    ABS and If producing !VALUE!

    Hi Guys

    I know this is a schoolboy error but I can't find the solution. I get the correct answer and the incorrect one in the next row. No hair left
    Hope someone has a moment.

    =ABS(IF(P4="sales","-",T4)) returns 208.33
    =ABS(IF(P5="sales","-",T5)) Returns #Value!

    Mark
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: ABS and If producing !VALUE!

    The formula in X2 is this:

    =IF(P2="sales",U2," - ")

    but in X3 you have this:

    =ABS(IF(P3<>"sales",U3," - "))

    So, you are trying to get the ABSolute value of a string - as that has no numerical value it returns the #VALUE error to X3.

    It might be better to change the formula in X2 to this:

    =IF(P2="sales",U2,0)

    then format the cell as Accounting so that the zero is displayed as a hyphen, and then copy that formula down.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: ABS and If producing !VALUE!

    Maybe

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Vandan

  4. #4
    Forum Contributor
    Join Date
    03-25-2011
    Location
    London, England
    MS-Off Ver
    office 2021
    Posts
    317

    Re: ABS and If producing !VALUE!

    Hi guys thought i had thanked you but can't see reply. Any how thanks I am now formatting my work in accountancy. Thanks
    And i have been able to use your example, Vandan for the other issues in the same Spread Sheet.

    Thanks again for a great forum.

    Mark

+ 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] sumproduct producing #VALUE!
    By Aladin Akyurek in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 AM
  2. sumproduct producing #VALUE!
    By philcud in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  3. [SOLVED] sumproduct producing #VALUE!
    By philcud in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  4. [SOLVED] sumproduct producing #VALUE!
    By philcud in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. UDF producing #NAME?
    By Jim May in forum Excel General
    Replies: 4
    Last Post: 04-23-2005, 01:06 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