Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Checking for an Entry in a Cell.

Checking for an Entry in a Cell

by Allen Wyatt
(last updated April 23, 2015)


There are times when it is helpful to know if a cell contains something—it doesn't really matter what it contains, just so it contains something. In these instances there are two ways you can approach the problem.

The first solution is to simply use the LEN function to determine if there is a length to what is contained in a cell. For instance, let's say you wanted to check if there was a value in cell F1. You could use the following:

=IF(LEN(F1)>0,"Found something there","Nothing is there")

If there is nothing in cell F1, then the length will be equal to zero. If there is something in the cell, even a number, then the length will be greater than zero.

The second solution is a variation on the LEN approach. All you need to do is check to see if there is anything in the cell. This may sound odd, but it is easier when you see the formula. For example, the following will check to see if there is anything in cell B4:

=IF(B4<>"","Found something there","Nothing is there")

The test in this formula is True if there is anything in the cell. If the cell is empty, then the test fails.

Another solution you can use is the ISBLANK worksheet function. This function returns True if the target cell is blank, and False if it contains anything.

As an example, let's suppose you want to check if the user has entered something in cell D7. You can use the following to make the determination:

=IF(ISBLANK(D7),"Input values missing",D7)

In this case the cell containing this formula would contain the same value as in D7, provided something was there. If there is nothing in D7, then the cell contains the text "Input values missing."

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2112) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Checking for an Entry in a Cell.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...


Quickly Filling a Column

Excel has a great (and little known) shortcut for filling a column with information. It comes in very handy when you need ...

Discover More

Correcting Student Papers

If you are a teacher, you may be looking for ways you can use Word's features to correct papers your students send to you ...

Discover More

Keyboard Shortcut to Access Header and Footer

Some folks like to avoid using the mouse whenever possible, preferring to leave their hands on the keyboard. If you are ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (menu)

Character Limits for Cells

Excel places limits on how much information you can enter into a cell and how much of that information it will display. ...

Discover More

Getting Help when Entering Functions

Need a quick memory jog when entering a worksheet function? Here's a shortcut that will be invaluable.

Discover More

Turning Off AutoFill for a Workbook

Don't want people using your workbook to be able to use AutoFill? You can add two quick macros that disable and enable ...

Discover More

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is five more than 3?

2017-02-05 07:38:03

Jim Beckwith

A colleague of mine using vlookup from apparently identical tables found some were returning a blank, some a 0. The vlookup command was identical (just pasted).

I could find nothing in the table cells (len=0) and placing "" using a macro had no effect.

The solution was to put the FORMULA
into each cell, not just the VALUE "" (either manually or with a macro .. I had to look up how to do it with VBA!).

2017-02-04 06:01:17



Your formula does not work all of the time try entering -1 in cell A1.

Why would you not use one of the suggestions in the tip?

2017-02-03 16:56:16



I am trying to use IF(A1>0,"not empty","empty") and it gives me the correct answer every time when there is text or a number in the respective cell. Is this kind of format correct?

2016-01-26 16:44:04


S Ngerengere
You'll need to use nested IF functions. If the first function comes up false (blank cell) you just nest another function that will direct it to the next cell in the series. Keep doing that until you hit the end, at that point just use a space between 2 quotation marks to return no value if the final function is also false.

=IF(LEN(A1)>0,A1,IF(LEN(B1)>0,B1,IF(LEN(C1)>0,C1,IF(LEN(D1)>0,D1," "))))

2015-09-23 14:31:13

S Ngerengere

I need to auto print a separate filtered worksheet of each debtor per month .... I need excel to skip to next one if there is no charge for a debtor that month. So say c3 has no info then skip to next debtor and loop till last debtor has been printed.

2015-06-30 10:11:30


i want to require that if cell A1 is filled, cell B1 is also filled, and give an error message to user saying that you cannot leave Cell B1 blank. is there a formula for this or any macros ?

2015-05-23 11:38:44


Thank you very much for these tips. My excel spread sheet formula is using two cells in two different columns, I found the solution right here.

=IF(ISBLANK(C17)," ",C17-C16)

2014-12-23 10:24:38


Thanks the tips works like a dream

2014-06-05 14:14:53


Sure, except that the LEN and ISBLANK and all the other logical test throw a "Formula refers to empty cell" error if the cell they refer to is actually blank. What good are blank-checking "functions" that can't handle blank cells?

2013-07-26 13:18:16


This is great, I'm doing my inventory and keep on receiving error because of missing values..28,000 for inventory is a lot and these options you have to check the data entries really help!

2012-03-12 20:51:09


To Jones Lee: Of course "ISBLANK" fails for B1, that cell contains a formula, so it is not blank. You need to be checking A1 in your example (the 'input' cell).

2012-03-11 23:23:18

Jones Lee

Thanks for this. However I encounter a problem of "ISBLANK". Say I put this formula in cell B1 =if(len(a1)=0,"","a1") and leave cell A1 blank. Of course cell B1 shows blank, but formula ISBLANK(B1) still feeds back FALSE.

2012-03-10 14:18:44


Thank you for this one! I created a rough file for doing my tax returns. (I find confusing the bells and whistles and unnecessary lines of the commercial tax programs.) However, sometimes I might forget to fill in a cell, and wrongly think that empty cell's content is included into a calculation. From now on I'll incorporate this additional check to make sure there are no stupid mistakes.

This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.