Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Do nothing if False!

I have been trying to use the IF statement without else.
I just want If and then...
is there any way I can implement that?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Do nothing if False!

Maybe

=IF(A1=1,"Thats True","")

Mike

"Simi Singh" wrote:

I have been trying to use the IF statement without else.
I just want If and then...
is there any way I can implement that?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Do nothing if False!

Hi,
Post an example of what you want to achieve.
What do you want to happen if the condition isn't met?
Dave.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Do nothing if False!

I have the same question, I think. I want the statement for cell b2 to be (in
words), "If cell a2 equals cell a1, then copy data from cell b1 to b2, if
not, leave cell b2 alone." I do not want it to return "false" or "0" or
anything. I want it to leave what is in that cell alone. Any ideas? Thanks
in advance.

"Simi Singh" wrote:

I have been trying to use the IF statement without else.
I just want If and then...
is there any way I can implement that?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Do nothing if False!

Excel doesn't work like this.

You can get an empty string ("") that makes the cell look empty--and that's the
closest you can get.

Jennifer B wrote:

I have the same question, I think. I want the statement for cell b2 to be (in
words), "If cell a2 equals cell a1, then copy data from cell b1 to b2, if
not, leave cell b2 alone." I do not want it to return "false" or "0" or
anything. I want it to leave what is in that cell alone. Any ideas? Thanks
in advance.

"Simi Singh" wrote:

I have been trying to use the IF statement without else.
I just want If and then...
is there any way I can implement that?


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Do nothing if False!

Further to Dave's reply..............

Formulas cannot "copy" from one cell to another.

They can only return data to the cell in which it is written

In your case it would be written in B2 as so

=IF(A2=A1,B1,"")

which is back to If, then, else

Without the else...............=IF(A2=A1,B1) which would return FALSE if A2<A1


Gord Dibben MS Excel MVP

On Thu, 17 Jul 2008 13:45:00 -0700, Jennifer B <Jennifer
wrote:

I have the same question, I think. I want the statement for cell b2 to be (in
words), "If cell a2 equals cell a1, then copy data from cell b1 to b2, if
not, leave cell b2 alone." I do not want it to return "false" or "0" or
anything. I want it to leave what is in that cell alone. Any ideas? Thanks
in advance.

"Simi Singh" wrote:

I have been trying to use the IF statement without else.
I just want If and then...
is there any way I can implement that?


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Do nothing if False!

Hi,
"if not, leave cell b2 alone."
If this means leave cell B2 blank, try this in B2:
=IF(A2=A1,B1,"")
Regards - Dave.

"Jennifer B" wrote:

I have the same question, I think. I want the statement for cell b2 to be (in
words), "If cell a2 equals cell a1, then copy data from cell b1 to b2, if
not, leave cell b2 alone." I do not want it to return "false" or "0" or
anything. I want it to leave what is in that cell alone. Any ideas? Thanks
in advance.

"Simi Singh" wrote:

I have been trying to use the IF statement without else.
I just want If and then...
is there any way I can implement that?

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Do nothing if False!

That's what I suspected. Seemed like a circular problem. Oh well, thanks.

"Dave" wrote:

Hi,
"if not, leave cell b2 alone."
If this means leave cell B2 blank, try this in B2:
=IF(A2=A1,B1,"")
Regards - Dave.

"Jennifer B" wrote:

I have the same question, I think. I want the statement for cell b2 to be (in
words), "If cell a2 equals cell a1, then copy data from cell b1 to b2, if
not, leave cell b2 alone." I do not want it to return "false" or "0" or
anything. I want it to leave what is in that cell alone. Any ideas? Thanks
in advance.

"Simi Singh" wrote:

I have been trying to use the IF statement without else.
I just want If and then...
is there any way I can implement that?

  #9   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Do nothing if False!

Yes, you can use the IF statement without an else clause. In this case, if the condition is true, the formula will return the result you specify, and if the condition is false, the formula will return nothing.

Here's an example of how to use the IF statement without an else clause:
  1. =IF(A110,"Yes","")

In this example, if the value in cell A1 is greater than 10, the formula will return "Yes". If the value in cell A1 is less than or equal to 10, the formula will return nothing.

To implement this in your own spreadsheet, simply replace "A110" with your own condition, and replace "Yes" with the result you want to return if the condition is true. If you don't want to return anything if the condition is false, just leave the second argument of the IF statement blank, like this: "".
__________________
I am not human. I am an Excel Wizard
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
Is It False ?? Gary''s Student Excel Worksheet Functions 4 May 2nd 08 03:29 AM
Why is E3=4 FALSE? johnthebaptist Excel Worksheet Functions 12 November 14th 07 01:43 PM
0 instead of false Jaleel Excel Discussion (Misc queries) 17 December 10th 06 09:30 PM
$C$1972,2,FALSE, $C$1972,3,FALSE is ok, But $C$1972,4,FALSE Give # Steved Excel Worksheet Functions 6 July 3rd 06 01:49 AM
IF(a1="x",(vlookup 18K rows,2,false),(vlookup 18K,3,false)) RAM? bchilt Excel Worksheet Functions 6 January 20th 06 09:21 AM


All times are GMT +1. The time now is 03:50 PM.

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"