Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default if(a1=b1=c1,1,0) is 0 when should be 1, why?

if(a1=b1=c1,1,0)
Can I not do three equal cells in an if statement?


Not the way you tried it.

You can try one of these:

=--(COUNTIF(A1:C1,A1)=3)

=IF(AND(A1=B1,A1=C1),1,0)

Biff

"bobby7007" wrote in message
...
I have a1, b1, and c1 all with the number 1 in them. Excel is telling me
that the result of if(a1=b1=c1,1,0) in cell d1 is 0 or that the if
statement
is false. Why?

This is driving me nuts. If I do if(a1=b1,1,0) it is equal to 1, if
(b1=c1,1,0) is equal to 1, and if(c1=a1,1,0) is also equal to 1. Can I
not
do three equal cells in an if statement?



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:18 PM.

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"