Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default IF Statement to Check for Blanks

Hello,

I have an address column that I want to check for blanks. When I type
=if(g2= ,"True", "False")...with the space after the equals sign signifying
the blank, I get a syntax error. How can I correct this?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default IF Statement to Check for Blanks

Maybe

=IF(G2="","True", "False")

Mike

"Daren" wrote:

Hello,

I have an address column that I want to check for blanks. When I type
=if(g2= ,"True", "False")...with the space after the equals sign signifying
the blank, I get a syntax error. How can I correct this?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default IF Statement to Check for Blanks

hi,

I modified your formula bur should have pointed out that this works just as
well

=G2=""

Mike

"Mike H" wrote:

Maybe

=IF(G2="","True", "False")

Mike

"Daren" wrote:

Hello,

I have an address column that I want to check for blanks. When I type
=if(g2= ,"True", "False")...with the space after the equals sign signifying
the blank, I get a syntax error. How can I correct this?

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default IF Statement to Check for Blanks

Yes! That worked. Thanks!!!

"Mike H" wrote:

Maybe

=IF(G2="","True", "False")

Mike

"Daren" wrote:

Hello,

I have an address column that I want to check for blanks. When I type
=if(g2= ,"True", "False")...with the space after the equals sign signifying
the blank, I get a syntax error. How can I correct this?

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default IF Statement to Check for Blanks

Ok, I'm just gonna stick with the original. As a follow up, I want to use
conditional formatting when the value is True. I think this is cell value
is equal to True and pattern is red, but it won't take. What am I doing
wrong?

"Mike H" wrote:

hi,

I modified your formula bur should have pointed out that this works just as
well

=G2=""

Mike

"Mike H" wrote:

Maybe

=IF(G2="","True", "False")

Mike

"Daren" wrote:

Hello,

I have an address column that I want to check for blanks. When I type
=if(g2= ,"True", "False")...with the space after the equals sign signifying
the blank, I get a syntax error. How can I correct this?

Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF Statement to Check for Blanks

You're probably getting confused between a text string "True" and a Boolean
value True. Remember that putting quote marks around something makes it a
text string.
--
David Biddulph

"Daren" wrote in message
...
Ok, I'm just gonna stick with the original. As a follow up, I want to use
conditional formatting when the value is True. I think this is cell
value
is equal to True and pattern is red, but it won't take. What am I doing
wrong?

"Mike H" wrote:

hi,

I modified your formula bur should have pointed out that this works just
as
well

=G2=""

Mike

"Mike H" wrote:

Maybe

=IF(G2="","True", "False")

Mike

"Daren" wrote:

Hello,

I have an address column that I want to check for blanks. When I
type
=if(g2= ,"True", "False")...with the space after the equals sign
signifying
the blank, I get a syntax error. How can I correct this?

Thanks.



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
If statement error check lghovden06 Excel Worksheet Functions 1 July 9th 08 11:05 PM
Need Check for Blanks formula, please Carole O Excel Worksheet Functions 3 April 28th 07 11:22 AM
Represent blanks in an Excel IF statement? JG Excel Discussion (Misc queries) 3 April 25th 06 04:39 PM
Blanks as a condition of a statement Stuck on Blanks New Users to Excel 2 November 23rd 05 12:24 AM
How do I check formatting in an if-then statement bfmartiniv Excel Worksheet Functions 1 December 14th 04 12:42 AM


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