ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Compare Two Cells (https://www.excelbanter.com/excel-discussion-misc-queries/252465-compare-two-cells.html)

Jim

Compare Two Cells
 
Hello,

I would like to ask for help with a worksheet. There are two cells I need
help with. These cells list vehicle VIN Numbers. One column was reported by
hte driver, the other column was reported by the vendor.

I need a formula that will look at A1 and B1 and tell me in C1 if they are
different numbers. If hte numbers match, the cell can remain empty, but if
the cells are different I would like to return some indicator.

Thanks in advance for hte help.
Jim

Dave O

Compare Two Cells
 
You might try this formula:
=IF(A1=B1,"match","mismatch")

....then copy and paste that formula over the rest of the range.

The English translation is: Compare the entry in A1 to the entry in
B1. If the match, return the word "match". If they do not match,
return the word "mismatch".

Dave O
Eschew obfuscation


All times are GMT +1. The time now is 02:11 PM.

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