+ Reply to Thread
Results 1 to 5 of 5

if statement nesting rules

  1. #1
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    if statement nesting rules

    =IF(O5="","","\{NUMPAD ENTER}",IF(P5="","","\{NUMPAD ENTER}")))

    Anyone have any idea why this one isnt working? im not very good with where the brackets go.

    Basically i want =IF(O5="\{NUMPAD ENTER}"AND(P5=""),"","\{NUMPAD ENTER}")

  2. #2
    Registered User
    Join Date
    07-03-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: if statement nesting rules

    =IF(AND(P5="",O5=""),"VALUE IF TRUE", "VALUE IF FALSE")

    If you put in your criteria for P5 in the "" and O5 in the "" then what happens in true and what happens if false, I think this will get you what you are trying to do (if I understand correctly).

    Hope this helps,

    Justin

  3. #3
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    Re: if statement nesting rules

    =IF(AND(O5="\{NUMPAD ENTER}",(P5="")),"","\{NUMPAD ENTER}")

    Worked correctly however is there a way to incorporate if =IF(AND(O5="",P5=""),"","\{NUMPAD ENTER}")) into the same if statement above?

  4. #4
    Registered User
    Join Date
    07-03-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: if statement nesting rules

    I think I understand..... it is 2x If statements.

    If both are blank, display nothing. If one is blank, display the statement.

    =IF(AND(O5="",P5=""),"",IF(AND(O5="\{NUMPAD ENTER}",(P5="")),"","\{NUMPAD ENTER}"))

    Correct??

    Justin

  5. #5
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    Re: if statement nesting rules

    absolute legend... i knew i had everything i needed i just didnt know how to put it in the correct syntax - will know for future thanks so much!

+ 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