ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If 3 cells are equal then... (https://www.excelbanter.com/excel-programming/367763-if-3-cells-equal-then.html)

Darin Kramer

If 3 cells are equal then...
 
Hi there

Cell a1, b1, and c1 will contain column headings
Cell a2, b2 and c2 will contain numbers
The numbers should be all the same, but of course life never works out
as it should! As such in D1, I want to put a formulae that compares the
three, if no difference then put "ok", and if there is a difference puts
the number of the difference... (may not be possible because u will
never know which is the correct number... so if not a number just a text
that says "problem")

Ideas are more than welcome!!

Thanks

D



*** Sent via Developersdex http://www.developersdex.com ***

Ardus Petus

If 3 cells are equal then...
 
=IF(AND(A2=B2,A2=C2),"OK","Problem")

HTH
--
AP

"Darin Kramer" a écrit dans le message de news:
...
Hi there

Cell a1, b1, and c1 will contain column headings
Cell a2, b2 and c2 will contain numbers
The numbers should be all the same, but of course life never works out
as it should! As such in D1, I want to put a formulae that compares the
three, if no difference then put "ok", and if there is a difference puts
the number of the difference... (may not be possible because u will
never know which is the correct number... so if not a number just a text
that says "problem")

Ideas are more than welcome!!

Thanks

D



*** Sent via Developersdex
http://www.developersdex.com ***




All times are GMT +1. The time now is 06:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com