+ Reply to Thread
Results 1 to 3 of 3

IF OR statement returning #VALUE! error?

  1. #1
    Registered User
    Join Date
    07-14-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    15

    IF OR statement returning #VALUE! error?

    This seems like it would be pretty simple, but once again I'm here asking for guidance...

    I have two columns: A, and B

    Column A has a vlookup formula that pulls in either a number (usually between -0.008 to 0.008), or text (the text being "ERROR.")

    In column B, I'm trying to add a formula that will say "HELP" if the result in column A is greater than or equal to 0.004, or if the result in A is "ERROR." If neither is satisfied, it will just result in a blank cell.

    This is what I have, and it's returning a #VALUE! error:

    =IF(OR(ABS(A1)>=0.004,A1="ERROR"),"HELP","-")

    Thanks in advance for any guidance!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: IF OR statement returning #VALUE! error?

    The problem is that when you apply ABS function to a text value like "ERROR"....you get an error. One solution is to use two IFs and check for "ERROR" first, e.g.

    =IF(A1="ERROR","HELP",IF(ABS(A1)>=0.004,"HELP","-"))
    Audere est facere

  3. #3
    Registered User
    Join Date
    07-14-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: IF OR statement returning #VALUE! error?

    Thanks so much daddylonglegs! Worked like a charm!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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