LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default IsEmpty() Returns False in empty cells

IsEmpty(), while it seems to work for really empty cells, is meant to
determine if a variable has been initialized.

You may be better off testing as follows if you want cells with formulas
that return null strings to be considered empty:

?Cells(1, 1) = ""
False

--

Vasant


"John Hutchins" <John wrote in message
...
Occasionally when I use IsEmpty to see if a cell contains data like
"IsEmpty(Cells(x,y))" it returns "False" when there is nothing there.

I've
tested the cell with Len(Cells(x,y)) and it returns 0. Does anyone know

why
this happens or how to get around it?
Thanks,
John Hutchins



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP worksheet function returns zero for empty cells Hershmab Excel Worksheet Functions 4 April 12th 12 07:48 PM
IF formula returns FALSE Gulfman100 New Users to Excel 1 February 8th 09 11:31 PM
Any number above 15 returns false when it should be true tlaurie777 Excel Worksheet Functions 2 September 26th 07 05:02 PM
How to do nothing if @IF returns FALSE? PMorrisDuke Excel Worksheet Functions 3 April 11th 06 04:39 PM
IF Function returns False instead of 0 BEEJAY Excel Worksheet Functions 2 June 23rd 05 04:23 PM


All times are GMT +1. The time now is 06:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"