Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kari
 
Posts: n/a
Default conditional formula

I have created a formula: =IF(G10="N","=M10",IF(G10="Y","=.95*M10")) to
adjust a salary dependent on whether salary savings have been taken (Y) or
not (N). If they have been, then I want to multiply the previous cell by .95
to adjust the salary. The formula works to the point where if G10 has Y,
then =M10 shows up in the cell, and if G10 has N, then =.95*M10 shows up in
the cell. But I want those to actually calculate rather than just show the
formula. Can anyone help me?
  #2   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Thu, 22 Sep 2005 08:38:07 -0700, "Kari"
wrote:

I have created a formula: =IF(G10="N","=M10",IF(G10="Y","=.95*M10")) to
adjust a salary dependent on whether salary savings have been taken (Y) or
not (N). If they have been, then I want to multiply the previous cell by .95
to adjust the salary. The formula works to the point where if G10 has Y,
then =M10 shows up in the cell, and if G10 has N, then =.95*M10 shows up in
the cell. But I want those to actually calculate rather than just show the
formula. Can anyone help me?


You just need to take out the quotes which are causing the result to
be a string rather than a value

=IF(G10="N",M10,IF(G10="Y",0.95*M10,))

If G10 can only ever be Y or N you could simplify further

=IF(G10="N",M10,0.95*M10)

HTH


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
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
Conditional Formatting formula not acceptable? Thief_ Excel Discussion (Misc queries) 4 July 19th 05 11:54 AM
Using a Formula in a Conditional Statement? Templee1 Excel Worksheet Functions 2 July 14th 05 08:40 PM
How to combine conditional format with formula ? merlin68 Excel Worksheet Functions 4 April 14th 05 03:24 AM
conditional formatting formula Jack Sons Excel Discussion (Misc queries) 6 April 5th 05 09:50 AM
Formula Dependant Conditional Formatting LDanix Excel Discussion (Misc queries) 1 January 13th 05 06:50 PM


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