#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DP7 DP7 is offline
external usenet poster
 
Posts: 54
Default IF statement

Hi I would like to know if it is possible to run an IF statement and if the
condition is FALSE. It will leave the value that was previously in the cell?
Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default IF statement

=IF(A1="Mama","",A1)


"DP7" wrote:

Hi I would like to know if it is possible to run an IF statement and if the
condition is FALSE. It will leave the value that was previously in the cell?
Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default IF statement

No. If you put a formula in a cell, the formula will replace the previous
contents.

You can, of course, write the IF statement to include the previous contents
(whether formula or value), for example:
=IF(condition,new value,previous contents)
--
David Biddulph

"DP7" wrote in message
...
Hi I would like to know if it is possible to run an IF statement and if
the
condition is FALSE. It will leave the value that was previously in the
cell?
Thanks in advance



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,090
Default IF statement

DP7
You will need VBA to do that. A formula in a cell can only return a
value and it can return a value only to the cell in which the formula
resides.
A Worksheet_Change macro can be written to look at the new contents of a
cell and then issue an Undo command if your criteria for doing so is met.
Post back if this sounds like something you could use. HTH Otto
"DP7" wrote in message
...
Hi I would like to know if it is possible to run an IF statement and if
the
condition is FALSE. It will leave the value that was previously in the
cell?
Thanks 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? tenaj New Users to Excel 4 April 27th 06 08:03 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
IF statement? metalsped Excel Discussion (Misc queries) 2 June 8th 05 08:32 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 02:34 AM.

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"