#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel

I would like to create a function call so that when I enter a value into a
cell a formula is executed on the number. For instance, if I enetr the
number "1" in to cell D6, the formula D6*E6 is executed. Can this be done
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Excel

=IF(D6=1,D6*E6,"whatever answer you want if D6 isn't 1")

Note that "1" in quote marks is a text string, whereas 1 without quote marks
is a number.
--
David Biddulph

"pmvgoose" wrote in message
...
I would like to create a function call so that when I enter a value into a
cell a formula is executed on the number. For instance, if I enetr the
number "1" in to cell D6, the formula D6*E6 is executed. Can this be done



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Excel

Maybe this

=IF(D6<"",D6*E6,"")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"pmvgoose" wrote:

I would like to create a function call so that when I enter a value into a
cell a formula is executed on the number. For instance, if I enetr the
number "1" in to cell D6, the formula D6*E6 is executed. Can this be done

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Excel

Entering a number in D6 would erase any formula you had in D6

You can put the formula in an adjacent cell.

See other replies for formula.

If you wanted it all done in D6 you would need VBA event code.


Gord Dibben MS Excel MVP

On Fri, 29 Jan 2010 12:40:01 -0800, pmvgoose
wrote:

I would like to create a function call so that when I enter a value into a
cell a formula is executed on the number. For instance, if I enetr the
number "1" in to cell D6, the formula D6*E6 is executed. Can this be done


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



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