Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
yokato95
 
Posts: n/a
Default Setting Purely BLANK Cell


I am using an IF function that states as the following
[in Cell B1]
=IF (A1="ABC","","ELSE")

When this IF statement is TRUE, I want B1 to be a blank cell, hence the
two double quote sign without a space in between.
However, I found out that

*"COUNTBLANK (B1)" will result in 1, meaning that with COUNTBLANK
function picks B1 as a "BLANK" Cell.

*"ISBLANK (B1)" will result in FALSE, meaning that with ISBLANK
function considers B1 as a "Filled" Cell.

WHAT I WANT TO KNOW IS THE WAY TO SET B1 CELL IN A IF FUNCTION THAT IS
COMPLETELY AND PURELY BLANK SO THAT THE \"ISBLANK (B1)\" FUNCTION WILL
RESULT IN TRUE.

Does anyone know the way to do this?

The notion of Pure Blank is important when creating a pivot table,
also. By programatically setting the blank cell with "" (2 double
quotes), Pivot Table generation logic counts these as data, not blanks
thus the data count becomes inaccurate.

Thank you very much for your help in advance,


--
yokato95
------------------------------------------------------------------------
yokato95's Profile: http://www.excelforum.com/member.php...o&userid=26405
View this thread: http://www.excelforum.com/showthread...hreadid=396804

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

So long as you have a formula in the cell it will NEVER be blank.

If it is important to have a truly blank cell, then you'll need to use VBA
code that assess whether the cells in the specified range should contain a
value or be blank.



"yokato95" wrote:


I am using an IF function that states as the following
[in Cell B1]
=IF (A1="ABC","","ELSE")

When this IF statement is TRUE, I want B1 to be a blank cell, hence the
two double quote sign without a space in between.
However, I found out that

*"COUNTBLANK (B1)" will result in 1, meaning that with COUNTBLANK
function picks B1 as a "BLANK" Cell.

*"ISBLANK (B1)" will result in FALSE, meaning that with ISBLANK
function considers B1 as a "Filled" Cell.

WHAT I WANT TO KNOW IS THE WAY TO SET B1 CELL IN A IF FUNCTION THAT IS
COMPLETELY AND PURELY BLANK SO THAT THE \"ISBLANK (B1)\" FUNCTION WILL
RESULT IN TRUE.

Does anyone know the way to do this?

The notion of Pure Blank is important when creating a pivot table,
also. By programatically setting the blank cell with "" (2 double
quotes), Pivot Table generation logic counts these as data, not blanks
thus the data count becomes inaccurate.

Thank you very much for your help in advance,


--
yokato95
------------------------------------------------------------------------
yokato95's Profile: http://www.excelforum.com/member.php...o&userid=26405
View this thread: http://www.excelforum.com/showthread...hreadid=396804


  #3   Report Post  
yokato95
 
Posts: n/a
Default


Thank you Duke!
Would you happen to know the VBA function to set the cell blank ?

Thanks again!


--
yokato95
------------------------------------------------------------------------
yokato95's Profile: http://www.excelforum.com/member.php...o&userid=26405
View this thread: http://www.excelforum.com/showthread...hreadid=396804

  #4   Report Post  
Bernd Plumhoff
 
Posts: n/a
Default

Hello,

If you use LEN(B1)=0 instead of ISBLANK(B1), would that solve your problem?

Regards,
Bernd
  #5   Report Post  
Duke Carey
 
Posts: n/a
Default

In your example you are trying to affect cell B1 based on A1's value.
Assuming you want all of column B to be affected by the contenst of A, and
that you have a consistent test, i.e., if Ax = "ABC" then Bx is blank, then
use the following code. BTW, this assumes you select the cells in column B
before running the macro:

Sub SetCellsToBlank()
dim rng as Range

for each rng in selection
if rng.offset(0,-1)="ABC" then
rng.clear
else
rng="Else"
end if
next rng

end sub


"Duke Carey" wrote:

So long as you have a formula in the cell it will NEVER be blank.

If it is important to have a truly blank cell, then you'll need to use VBA
code that assess whether the cells in the specified range should contain a
value or be blank.



"yokato95" wrote:


I am using an IF function that states as the following
[in Cell B1]
=IF (A1="ABC","","ELSE")

When this IF statement is TRUE, I want B1 to be a blank cell, hence the
two double quote sign without a space in between.
However, I found out that

*"COUNTBLANK (B1)" will result in 1, meaning that with COUNTBLANK
function picks B1 as a "BLANK" Cell.

*"ISBLANK (B1)" will result in FALSE, meaning that with ISBLANK
function considers B1 as a "Filled" Cell.

WHAT I WANT TO KNOW IS THE WAY TO SET B1 CELL IN A IF FUNCTION THAT IS
COMPLETELY AND PURELY BLANK SO THAT THE \"ISBLANK (B1)\" FUNCTION WILL
RESULT IN TRUE.

Does anyone know the way to do this?

The notion of Pure Blank is important when creating a pivot table,
also. By programatically setting the blank cell with "" (2 double
quotes), Pivot Table generation logic counts these as data, not blanks
thus the data count becomes inaccurate.

Thank you very much for your help in advance,


--
yokato95
------------------------------------------------------------------------
yokato95's Profile: http://www.excelforum.com/member.php...o&userid=26405
View this thread: http://www.excelforum.com/showthread...hreadid=396804


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
Replace null string with blank cell gjcase Excel Discussion (Misc queries) 2 August 9th 05 02:13 PM
show macro security setting in a cell Mark Excel Worksheet Functions 3 March 21st 05 07:53 AM
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM
Go to first blank cell Curt D. Excel Worksheet Functions 4 February 28th 05 10:27 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 07:50 AM.

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"