Is "" the same as NULL?

G

Guest

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.
 
S

Sandy

"" 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
 
G

Guest

"" 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.
 
G

Guest

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

Cheers, Dean.

Tom Ogilvy said:
"" 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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top