Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Is "" the same as NULL?

I am doing some data validation on some worksheets mainly looking for blank
fields using the formula: ActiveCell.FormulaR1C1 =
"=IF(RC[-1]="""",""ERROR"","""")"

Is "" the same as a NULL value (ie a blank cell)? As later validation using
a pivot table picks up the "" entries seperately from the [blanks] entries.

Is there a way to enter a NULL value instead of the "" value in the above
formula.

Cheers, Dean.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default Is "" the same as NULL?

"" is a "null" value, excel always puts a value to a cell ie. "" (zero
length string) for a blank cell in spreadsheets. In VBA the "null"
value is used for objects of the Variant type like an array.

HTH

Sandy

Dean@ERYC wrote:
I am doing some data validation on some worksheets mainly looking for blank
fields using the formula: ActiveCell.FormulaR1C1 =
"=IF(RC[-1]="""",""ERROR"","""")"

Is "" the same as a NULL value (ie a blank cell)? As later validation using
a pivot table picks up the "" entries seperately from the [blanks] entries.

Is there a way to enter a NULL value instead of the "" value in the above
formula.

Cheers, Dean.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Is "" the same as NULL?

"" is a zero length string. It isn't blank because the cell has a formula in
it and it is returning a string.

There is no way in current versions to have a formula return a value that
makes the cell count as blank.

--
Regards,
Tom Ogilvy



"Dean@ERYC" wrote:

I am doing some data validation on some worksheets mainly looking for blank
fields using the formula: ActiveCell.FormulaR1C1 =
"=IF(RC[-1]="""",""ERROR"","""")"

Is "" the same as a NULL value (ie a blank cell)? As later validation using
a pivot table picks up the "" entries seperately from the [blanks] entries.

Is there a way to enter a NULL value instead of the "" value in the above
formula.

Cheers, Dean.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Is "" the same as NULL?

Thanks Tom - not the answer I was hoping for but ho hum life goes on !!

Cheers, Dean.

"Tom Ogilvy" wrote:

"" is a zero length string. It isn't blank because the cell has a formula in
it and it is returning a string.

There is no way in current versions to have a formula return a value that
makes the cell count as blank.

--
Regards,
Tom Ogilvy



"Dean@ERYC" wrote:

I am doing some data validation on some worksheets mainly looking for blank
fields using the formula: ActiveCell.FormulaR1C1 =
"=IF(RC[-1]="""",""ERROR"","""")"

Is "" the same as a NULL value (ie a blank cell)? As later validation using
a pivot table picks up the "" entries seperately from the [blanks] entries.

Is there a way to enter a NULL value instead of the "" value in the above
formula.

Cheers, Dean.

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
Hyperion Essbase Excel Add-in - returning text ("0") for null valu bill_morgan Excel Discussion (Misc queries) 7 February 28th 12 05:10 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Null, "null", vbNull, vbNullString, vbEmpty [email protected] Excel Programming 2 July 25th 06 01:28 PM
cells formatted to tick when text value "Y" if or null if "N" Jay Excel Discussion (Misc queries) 7 January 13th 06 09:16 AM
"IF"- "THEN" type Formula based on Null value Jay Excel Worksheet Functions 8 November 17th 05 09:05 AM


All times are GMT +1. The time now is 08:47 PM.

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"