+ Reply to Thread
Results 1 to 4 of 4

Thread: IF Function

  1. #1
    Registered User
    Join Date
    12-06-2009
    Location
    egypt
    MS-Off Ver
    Excel 2007
    Posts
    18

    IF Function

    Hi
    I'm using IF function with two arguments but when the cell is empty it still shows value

    How to stop showing value when the cell is blank

    Thanks


    Ex is attached
    Attached Files Attached Files

  2. #2
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,740

    Re: IF Function

    Here, try this:

    =IF(A1="","",IF(A1<=2,"OK","WRONG"))
    "Relax. What is mind? No matter. What is matter? Never mind!"

  3. #3
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,740

    Re: IF Function

    Also check Syntax of the IF function:

    =IF(logical_test, value_if_true, [value_if_false])
    =IF(A1<=2,"OK","WRONG")

    So.. IF A1 <= 2 is TRUE then anything else, (wich is A1>2) is FALSE.
    No need to check is A1 bigger than 2 (again)...
    "Relax. What is mind? No matter. What is matter? Never mind!"

  4. #4
    Registered User
    Join Date
    12-06-2009
    Location
    egypt
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: IF Function

    Thanks Alot it works

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.2.0