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 in excel formula

I am trying to write a formula that will leave the current value in a cell if
the condition is not true. Ex:

=if(c3=april, d5+d6+d7,?)

The question mark represents "doing nothing". No 0, blank or anything. I
just want to leave the data that is in the cell alone if the condition is not
met. Any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Do nothing in excel formula

Hello:

I'm not sure I understand. The formula you have has to be in a cell,
so that cell will contain a formula.
assume c3 = april
d5, d6 and d7 all contain a 1

Suppose you enter the formula in D3: (note you need quote marks around "april"

=IF(C3="april",D5+D6+D7:D7,"")

The cell (D3) will contain that formula (look in the formula bar). All you
are doing is controlling what the cell displays on the worksheet and the
above will show 3 or essentially a blank if C3 does not contain the
word "april." But the cell itself (D3) cannot be blank
since it has a formula in it.

Note you cannot use a formula in one cell to modify the
value of another cell.

Pieter Vandenberg

rovest wrote:
: I am trying to write a formula that will leave the current value in a cell if
: the condition is not true. Ex:

: =if(c3=april, d5+d6+d7,?)

: The question mark represents "doing nothing". No 0, blank or anything. I
: just want to leave the data that is in the cell alone if the condition is not
: met. Any help would be greatly appreciated.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Do nothing in excel formula

Oops. The D7:D7 should read just D7, Although it does no harm.

Pieter Vandenberg

vandenberg p wrote:
: Hello:

: I'm not sure I understand. The formula you have has to be in a cell,
: so that cell will contain a formula.
: assume c3 = april
: d5, d6 and d7 all contain a 1

: Suppose you enter the formula in D3: (note you need quote marks around "april"

: =IF(C3="april",D5+D6+D7:D7,"")

: The cell (D3) will contain that formula (look in the formula bar). All you
: are doing is controlling what the cell displays on the worksheet and the
: above will show 3 or essentially a blank if C3 does not contain the
: word "april." But the cell itself (D3) cannot be blank
: since it has a formula in it.

: Note you cannot use a formula in one cell to modify the
: value of another cell.

: Pieter Vandenberg

: rovest wrote:
: : I am trying to write a formula that will leave the current value in a cell if
: : the condition is not true. Ex:

: : =if(c3=april, d5+d6+d7,?)

: : The question mark represents "doing nothing". No 0, blank or anything. I
: : just want to leave the data that is in the cell alone if the condition is not
: : met. Any help would be greatly appreciated.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Do nothing in excel formula

Not possible with formulas.
If you describe what you're trying to achieve, someone here might suggest an alternative approach.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"rovest" wrote in message ...
|I am trying to write a formula that will leave the current value in a cell if
| the condition is not true. Ex:
|
| =if(c3=april, d5+d6+d7,?)
|
| The question mark represents "doing nothing". No 0, blank or anything. I
| just want to leave the data that is in the cell alone if the condition is not
| met. Any help would be greatly appreciated.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Do Nothing in a formula

I succed in doing what the other user was asking for;

a formula like this:

if(ab;c+d;do nothing)

i've made it without using macros


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
Excel Formula Doesn't Execute (Shows formula-not the calcuation) Keys1970 Excel Discussion (Misc queries) 4 November 15th 06 02:12 PM
match formula - 2 excel files:#1 hasthis formula, 2nd has the Raw DS Excel Worksheet Functions 4 October 7th 06 12:25 AM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
How do I view formula results intead of formula in excel? davidinatlanta Excel Worksheet Functions 4 February 7th 06 03:02 PM
i edit a formula (excel) then it displays formula not answer caiman Excel Discussion (Misc queries) 2 September 9th 05 02:09 AM


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