+ Reply to Thread
Results 1 to 4 of 4

"IF" Statement to check if value is NULL

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    19

    "IF" Statement to check if value is NULL

    I currently am checking 4 cells to see if they are all NULL. If they are NULL then the equation should return a specified value. If the cells return a numeric value, the cell should display NULL.

    Here is my statement:

    =IF(SUM(K4:N4)="",B4,"")

    Example:
    B4 is a City
    K4:N4 is the cell range I am looking to see if it has a value.

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: "IF" Statement to check if value is NULL

    Try this

    =IF(SUM(K4:N4)<=0,B4,"")

    Thanks!

    RVASQUEZ

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: "IF" Statement to check if value is NULL

    If K4:N4 are numeric values:

    =IF(COUNT(K4:N4),"",B4)
    Last edited by Cutter; 05-14-2012 at 03:46 PM.

  4. #4
    Registered User
    Join Date
    12-21-2011
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: "IF" Statement to check if value is NULL

    There it is! I knew it was something little I was missing. I forgot that a mathematical equation cannot return a NULL. Thanks for your help!

+ 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