+ Reply to Thread
Results 1 to 5 of 5

If And Statement returning #VALUE

  1. #1
    Registered User
    Join Date
    02-23-2005
    Posts
    16

    Unhappy If And Statement returning #VALUE

    Hi,

    Im looking for some help to resolve this formula. I got the first part of the formula to work but I cant get the 2nd part to return a blank or a zero if its Custom. I want if cell B5 = Custom to return blank. But I know I have to make a true and false so thats why i did blank and zero. But it still doesnt work. Here is what I have:

    IF(AND(B5="Fixed",AK5>=76.5%,AK5<=103.5%),"Y","N"),IF(B5="Custom"," ",0)

    Thanks in advance for the help!

    AESP

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: If And Statement returning #VALUE

    It could be because you've got two IF statements ;-)

    Please Login or Register  to view this content.

    Each has its own test and values for True and False.

    I'm not sure how you want/need to combine them, if at all.

    Regards

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

    Re: If And Statement returning #VALUE

    Try like this

    =IF(B5="Custom","",IF(AND(B5="Fixed",AK5>=76.5%,AK5<=103.5%),"Y","N"))
    Audere est facere

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: If And Statement returning #VALUE

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-23-2005
    Posts
    16

    Re: If And Statement returning #VALUE

    Thank you daddylonglegs!

+ 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