Putting two formulars together in excel

L

Linda

I need to put two formulars together in a cell in my excel's worksheet. For
example, =IF(A1=0, B1*2,1) and =IF(A1:F1=0,0,1). I need to put these two
formulars together in a cell. What is the exact way I should put them? I
have tried =IF(A1=0,B1*2,1,IF(A1:F1=0,0,1)). However, it did not work.
Could somebody help me?

Thank you,
Linda
 
B

Bob Phillips

=IF(A1=0, B1*2,IF(A1:F1=0,0,1))

although it is not clear (to me) what the second is doing. Is it just
counting any with a value, if so I would use

=IF(A1=0, B1*2,--(COUNTA(A1:F1)>0)


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
R

Ron Coderre

Can describe what you want to do?
The second formula test 6 cells. Do you want to know if ALL of them =0?
How do you want the two formulas to interact?

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top