Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
egii
 
Posts: n/a
Default A logical test in the If function for blank, i.e., If blank?

I would like to use a logical test of If blank. It seems that I am able to
test for the value of zero, but not for blanks or an empty cell. I am
attempting to not select a cell if it has blanks or is empty, and do select
it if it has zero. In essence, I am selecting between plan and actual, and
the actual is to be selected when it has zero and when simultaneously the
plan has a quantity greater than zero.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default A logical test in the If function for blank, i.e., If blank?

Have you tried the ISBLANK function?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"egii" wrote in message
...
I would like to use a logical test of If blank. It seems that I am able

to
test for the value of zero, but not for blanks or an empty cell. I am
attempting to not select a cell if it has blanks or is empty, and do

select
it if it has zero. In essence, I am selecting between plan and actual,

and
the actual is to be selected when it has zero and when simultaneously the
plan has a quantity greater than zero.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Larry
 
Posts: n/a
Default A logical test in the If function for blank, i.e., If blank?

egii, select a new worksheet. Leave A1 blank (empty). In column B1 enter
'=IF(A1="","BLANK",A1)'.
If you enter a character in A1 then the BLANK changes to the entered
character.
So to test for a blank cell the entry double quotes with no space between
them ("").
Hope this helps and have a Happy New Year.
--
Larry


"egii" wrote:

I would like to use a logical test of If blank. It seems that I am able to
test for the value of zero, but not for blanks or an empty cell. I am
attempting to not select a cell if it has blanks or is empty, and do select
it if it has zero. In essence, I am selecting between plan and actual, and
the actual is to be selected when it has zero and when simultaneously the
plan has a quantity greater than zero.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default A logical test in the If function for blank, i.e., If blank?

I am having a simular problem. Even though the value may be blank, if the
cell contains a fomular, the test is true.

Any suggestion?

"Larry" wrote:

egii, select a new worksheet. Leave A1 blank (empty). In column B1 enter
'=IF(A1="","BLANK",A1)'.
If you enter a character in A1 then the BLANK changes to the entered
character.
So to test for a blank cell the entry double quotes with no space between
them ("").
Hope this helps and have a Happy New Year.
--
Larry


"egii" wrote:

I would like to use a logical test of If blank. It seems that I am able to
test for the value of zero, but not for blanks or an empty cell. I am
attempting to not select a cell if it has blanks or is empty, and do select
it if it has zero. In essence, I am selecting between plan and actual, and
the actual is to be selected when it has zero and when simultaneously the
plan has a quantity greater than zero.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default A logical test in the If function for blank, i.e., If blank?

Thanks for your help Larry.
I ended up with"=IF(A1="","",A1)"for a cleaner look.


"Larry" wrote:

egii, select a new worksheet. Leave A1 blank (empty). In column B1 enter
'=IF(A1="","BLANK",A1)'.
If you enter a character in A1 then the BLANK changes to the entered
character.
So to test for a blank cell the entry double quotes with no space between
them ("").
Hope this helps and have a Happy New Year.
--
Larry


"egii" wrote:

I would like to use a logical test of If blank. It seems that I am able to
test for the value of zero, but not for blanks or an empty cell. I am
attempting to not select a cell if it has blanks or is empty, and do select
it if it has zero. In essence, I am selecting between plan and actual, and
the actual is to be selected when it has zero and when simultaneously the
plan has a quantity greater than zero.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default A logical test in the If function for blank, i.e., If blank?

I think the "value" would suit your purposes
IN D1 TRY
"=IF(VALUE(A1)<=0,"",C1-B1)"

"egii" wrote:

I would like to use a logical test of If blank. It seems that I am able to
test for the value of zero, but not for blanks or an empty cell. I am
attempting to not select a cell if it has blanks or is empty, and do select
it if it has zero. In essence, I am selecting between plan and actual, and
the actual is to be selected when it has zero and when simultaneously the
plan has a quantity greater than zero.

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
Keep cell blank if condition is false in IF function ruthslaughter Excel Discussion (Misc queries) 2 November 23rd 05 01:15 PM
Is there a logical test for a cell's format instead of contents Bruce Excel Worksheet Functions 3 November 17th 05 01:40 AM
Logical Test comparison using cell color chamuko Excel Discussion (Misc queries) 2 November 9th 05 03:09 AM
using logical functions as criteria with the SUMIF function pfdubz Excel Worksheet Functions 6 December 1st 04 07:40 PM
logical test - within a range esslingerdav Excel Worksheet Functions 4 November 17th 04 03:13 PM


All times are GMT +1. The time now is 05:06 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"