Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Help with a formula if yes calculate and if no 0

I am trying to make a formula that if G2 says yes, multiply B2 x .03
and if G2 says no, leave as 0. I guess I could add in a check box for
yes but i dont know how to link it to the cell. My formula wont work
and keeps coming back invalid.
I would appreciate any help with this.
Thanks so much!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 354
Default Help with a formula if yes calculate and if no 0

=if(G2="YES",B2*.03,0)

"Saphire69" wrote:

I am trying to make a formula that if G2 says yes, multiply B2 x .03
and if G2 says no, leave as 0. I guess I could add in a check box for
yes but i dont know how to link it to the cell. My formula wont work
and keeps coming back invalid.
I would appreciate any help with this.
Thanks so much!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Help with a formula if yes calculate and if no 0

Try this:

=IF(G2="yes",B2*0.03,IF(G2="no",0,""))

This returns a blank if G2 is neither yes nor no.

Hope this helps.

Pete

On Mar 27, 2:45*pm, Saphire69 wrote:
I am trying to make a formula that if G2 says yes, multiply B2 x .03
and if G2 says no, leave as 0. *I guess I could add in a check box for
yes but i dont know how to link it to the cell. *My formula wont work
and keeps coming back invalid.
I would appreciate any help with this.
Thanks so much!


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
Formula to calculate 401(k) carmelcorn45 Excel Worksheet Functions 1 November 2nd 06 04:26 PM
How do I calculate a formula once Pavlova Excel Worksheet Functions 0 November 15th 05 12:19 PM
My formula won't calculate Lollycat Excel Discussion (Misc queries) 3 August 13th 05 03:23 PM
sum formula does not calculate Dena X Excel Discussion (Misc queries) 3 July 19th 05 01:34 PM
Formula will not calculate Excel User Excel Discussion (Misc queries) 1 February 10th 05 08:33 PM


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