ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Difference between Cells (https://www.excelbanter.com/excel-worksheet-functions/52518-difference-between-cells.html)

Jim

Difference between Cells
 
I would like to calculate the difference between two cells. For example:

A B C
Amy J Hespen Amy Hespen Amy Hespen
Andrew Fries Andrew Fries

In C I would like for the B name to appear if it is different from A. If
the name in B is the same as in A, then I would like for the C cell to remain
blank.

Any help and thanks


Mladen_Dj

Difference between Cells
 
Use IF formula vith EXACT function:

=IF(EXACT(A1,B1),"",B1)

"Jim" wrote in message
...
I would like to calculate the difference between two cells. For example:

A B C
Amy J Hespen Amy Hespen Amy Hespen
Andrew Fries Andrew Fries

In C I would like for the B name to appear if it is different from A. If
the name in B is the same as in A, then I would like for the C cell to
remain
blank.

Any help and thanks




hideki

Difference between Cells
 

Is this what you want?

Let say you have data in A1 and B1. In C1 write this formula
=IF(A1=B1,"",B1)

This formula means, if you have A1=B1 then write blank. If A1 not B1
then write B1 to the C1.


--
hideki
------------------------------------------------------------------------
hideki's Profile: http://www.excelforum.com/member.php...o&userid=18903
View this thread: http://www.excelforum.com/showthread...hreadid=479752



All times are GMT +1. The time now is 06:19 AM.

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