Results 1 to 3 of 3

Thread: If(and( & n/a
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Nov 2018
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default If(and( & n/a

    I am having trouble getting an IF)AND statement to work

    =IF(AND(J12=5,K12="Y"),"5Y",J12)

    In cell J12, value can be 1 to 5 in cell K12 I have a match formula referencing another cell so either Y or #N/A is returned.

    so I was hopng that if J12 =5 and K12 = Y then 5Y is displayed, otherwise just display what is in cell J12.

    Formula only displays what is in J12 if there is a Y in K12?

    Not sure why, as surely that equates to a value if false based on the IF(AND?

    I am obvioulsy missing something? Any help appreciated.

    TIA

  2. #2
    Board Regular
    Join Date
    Jan 2014
    Location
    Dublin, Ireland
    Posts
    1,421
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If(and( & n/a

    Are you saying that if J12 = 4 & K12 = "N" then your formula is giving "5Y"??

    I copied your formula exactly and i think it should work. Do you by any chance have your calculation set to manual?
    Learn something new everyday.

    be sure to use code tags

    Code:
    [ code ]
    [ / code ]
    ' no spaces

  3. #3
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,038
    Post Thanks / Like
    Mentioned
    467 Post(s)
    Tagged
    47 Thread(s)

    Default Re: If(and( & n/a

    How about
    =IF(AND(J12=5,NOT(ISNA(K12))),"5Y",J12)
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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