ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with a formula if yes calculate and if no 0 (https://www.excelbanter.com/excel-discussion-misc-queries/225764-help-formula-if-yes-calculate-if-no-0-a.html)

Saphire69

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!

Daniel

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!


Pete_UK

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!




All times are GMT +1. The time now is 12:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com