ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF statement problem (https://www.excelbanter.com/excel-worksheet-functions/8461-if-statement-problem.html)

simon

IF statement problem
 
I have a simple IF statement...

=if(A1=B1,"same","Different")

what i'd really like, is if B1 is not the same as A1 display "different" and
also change the cell colour to red.
is this possible??

SS



Jason Morin

Use Conditional Formatting. Check out these sites for
examples:

http://www.contextures.com/xlCondFormat01.html
http://www.xldynamic.com/source/xld.CF.html

HTH
Jason
Atlanta, GA

-----Original Message-----
I have a simple IF statement...

=if(A1=B1,"same","Different")

what i'd really like, is if B1 is not the same as A1

display "different" and
also change the cell colour to red.
is this possible??

SS


.



All times are GMT +1. The time now is 08:13 PM.

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