ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula help (https://www.excelbanter.com/excel-discussion-misc-queries/212787-formula-help.html)

Peter

Formula help
 
I need the correct formula for the following propblem...
If(c21=dog then f21+g21) or if (c21=cat then 0,0)

Mike

Formula help
 
=IF(OR(C21="DOG",C21="CAT"),E21+F21,0)

"Peter" wrote:

I need the correct formula for the following propblem...
If(c21=dog then f21+g21) or if (c21=cat then 0,0)


Mike

Formula help
 
Or do you mean this
=IF(C21="DOG",E21+F21,IF(C21="CAT","Zero",0))

"Peter" wrote:

I need the correct formula for the following propblem...
If(c21=dog then f21+g21) or if (c21=cat then 0,0)


Rich[_8_]

Formula help
 

"Peter" wrote in message
...
I need the correct formula for the following propblem...
If(c21=dog then f21+g21) or if (c21=cat then 0,0)


=IF(C21="dog",(F21+G21),0)

cat or anything else will be zero.
--
Rich
http://www.richdavies.com/jingle-smells.htm
http://www.richdavies.com/excel.htm


** Posted from http://www.teranews.com **

David Biddulph[_2_]

Formula help
 
I think he probably meant
=IF(C21="dog",F21+G21,IF(C21="cat",0,""))
--
David Biddulph

"Mike" wrote in message
...
Or do you mean this
=IF(C21="DOG",E21+F21,IF(C21="CAT","Zero",0))

"Peter" wrote:

I need the correct formula for the following propblem...
If(c21=dog then f21+g21) or if (c21=cat then 0,0)





All times are GMT +1. The time now is 04:21 AM.

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