Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF Formula 1

Status
Not open for further replies.

Suggie

Technical User
Aug 8, 2003
116
EU
Morning,

Having trouble working out an if formula, trying to find out if cells a1, a2, and a3 all contain the same values, e.g. that all have the number 5 in each cell, then return yes or no.

any ideas?

tia
 
Hi Suggie,

this will give TRUE if all are the same:

=AND(A1=A2,A2=A3)


Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Thanks Glenn, that's the trick. Appreciate it. Mark
 
Perhaps more generally ..
[blue][tt] =IF(SUMPRODUCT((A1:A3<>A1)*1)>0,"no","yes")[/tt][/blue]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
My pleasure. [smile]

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top