Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JG
 
Posts: n/a
Default Represent blanks in an Excel IF statement?

How do you represent blanks in an Excel IF statement? I tried =if(K2="
",1,0) but the " " did not work. Thank you for your time and assistance in
advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Represent blanks in an Excel IF statement?

Hi

You shouldn't include any spaces between the sets of double quotes
=IF(K2="",1,0)

Including a space is telling Excel to compare whether there is a space
in the cell, not a null value.

--
Regards

Roger Govier


"JG" wrote in message
...
How do you represent blanks in an Excel IF statement? I tried
=if(K2="
",1,0) but the " " did not work. Thank you for your time and
assistance in
advance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Sheila D
 
Posts: n/a
Default Represent blanks in an Excel IF statement?

It looks like you have a space between the speech marks which means that it
will be looking for a space, try it as "" - just the speech marks.
HTH Sheila

"JG" wrote:

How do you represent blanks in an Excel IF statement? I tried =if(K2="
",1,0) but the " " did not work. Thank you for your time and assistance in
advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Represent blanks in an Excel IF statement?

Almost the

No space between the pair of double quotes.
--
Gary's Student


"JG" wrote:

How do you represent blanks in an Excel IF statement? I tried =if(K2="
",1,0) but the " " did not work. Thank you for your time and assistance in
advance.

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 that contains 6+ arguments in excel JimJams Excel Worksheet Functions 1 February 13th 06 11:24 AM
Using Excel, how do I replace cells containing blanks with nulls? Nither1 Excel Discussion (Misc queries) 2 May 9th 05 10:32 PM
how do I reset the default sort order in excel xp back to blanks . MardiL Excel Discussion (Misc queries) 2 February 24th 05 08:15 PM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
Excel Report Using IF Statement? Marc Excel Discussion (Misc queries) 3 January 11th 05 07:38 AM


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