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

I need the correct formula for the following propblem...
If(c21=dog then f21+g21) or if (c21=cat then 0,0)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default 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)

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default 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)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default 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 **
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default 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)



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 06:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"