Putting two formulars together in a cell in excell

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,IF(A1:F1=0,0,1)). However, it did not work.
Could somebody help me?

Thank you,
Linda
 
P

Peo Sjoblom

1. =IF(A1:F1=0,0,1) is not a working formula, it might be that this is what
you intended

=IF(COUNTIF(A1:F1,0)>0,0,1)

or maybe


=IF(COUNTIF(A1:F1,0)=6,0,0,1)


Nevertheless you cannot put them together since if A1=0 it fullfills both
formulas criteria given the first formula



--


Regards,


Peo Sjoblom
 
R

Ragdyer

You have to re-think your logic here.

The first formula states that if A1 equals zero, then perform a calculation.
The second states that if A1, which is included within A1:F1, equals zero,
then do nothing except insert a zero.

Conflicting instructions ! ! !
 

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