#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default Cell is not blank

How do you do that in an if statement? If cell is not blank. Thank you.
--
David P.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Cell is not blank

One way to test it: =IF(A1<"", ...
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"David P." wrote:
How do you do that in an if statement? If cell is not blank. Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Cell is not blank

=if(a1="","it's blank","it's not blank")
or
=if(a1<"","it's not blank","it's blank")

(Excellent name!)

David P. wrote:

How do you do that in an if statement? If cell is not blank. Thank you.
--
David P.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Cell is not blank

Hi,

Another way to test is

=IF(ISBLANK(A1),true,false)

another way

=IF(COUNTBLANK(A1),"blank","notblank")

technically you could also use

=IF(COUNTA(A1),"notblank","blank")

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"David P." wrote:

How do you do that in an if statement? If cell is not blank. Thank you.
--
David P.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Cell is not blank

If the cell is *empty* (which can be considered to be different than blank),
then all 3 of those of those formulas return what you'd expect. However, if
the cell contains a formula blank ("") then the results are different in 2
out of 3 of the formulas.

You can reduce this:

=IF(ISBLANK(A1),TRUE,FALSE)

To:

=ISBLANK(A1)

--
Biff
Microsoft Excel MVP


"Shane Devenshire" wrote in
message ...
Hi,

Another way to test is

=IF(ISBLANK(A1),true,false)

another way

=IF(COUNTBLANK(A1),"blank","notblank")

technically you could also use

=IF(COUNTA(A1),"notblank","blank")

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"David P." wrote:

How do you do that in an if statement? If cell is not blank. Thank you.
--
David P.



Reply
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
returning blank when reference cell is blank mslylan2u Excel Worksheet Functions 4 June 6th 08 09:09 PM
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
how to get excel to display blank if reference cell blank silent1(not) Excel Worksheet Functions 1 December 2nd 05 02:49 PM
How do I make a blank cell with a date format blank? Pivot Table/Query Excel Worksheet Functions 6 June 14th 05 11:19 PM
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. QUEST41067 Excel Discussion (Misc queries) 1 January 15th 05 09:29 PM


All times are GMT +1. The time now is 05:32 AM.

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

About Us

"It's about Microsoft Excel"