Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Comparing cells with text

i have the following case:

A B
1 EUR USD
2 EUR EUR
3 EUR CHF

I'd like to compare the two colums and if the two cels in one row
match, i would get a TRUE answer and if not it would be false - as the
following example:

A B C
1 EUR USD FALSE
2 EUR EUR TRUE
3 EUR CHF FALSE

how do I do that?

thanx for your help!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Comparing cells with text

Try this in C1, and copy down:

=EXACT(A1,B1)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Mortir" wrote in message
ps.com...
i have the following case:

A B
1 EUR USD
2 EUR EUR
3 EUR CHF

I'd like to compare the two colums and if the two cels in one row
match, i would get a TRUE answer and if not it would be false - as the
following example:

A B C
1 EUR USD FALSE
2 EUR EUR TRUE
3 EUR CHF FALSE

how do I do that?

thanx for your help!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Comparing cells with text

=IF(B1=A1,"TRUE","FALSE")

"Mortir" wrote in message
ps.com...
i have the following case:

A B
1 EUR USD
2 EUR EUR
3 EUR CHF

I'd like to compare the two colums and if the two cels in one row
match, i would get a TRUE answer and if not it would be false - as the
following example:

A B C
1 EUR USD FALSE
2 EUR EUR TRUE
3 EUR CHF FALSE

how do I do that?

thanx for your help!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default Comparing cells with text

And that can be simplified to =(B1=A1)

Note, however, that Dave's formula is returning TRUE and FALSE as text
strings. If you want logicals, remove the quote marks. My simplified
version returns a logical result.
--
David Biddulph

"Dave T" wrote in message
...
=IF(B1=A1,"TRUE","FALSE")



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Comparing cells with text

=COUNTIF(A1:B1,A1)=2

"Mortir" wrote:

i have the following case:

A B
1 EUR USD
2 EUR EUR
3 EUR CHF

I'd like to compare the two colums and if the two cels in one row
match, i would get a TRUE answer and if not it would be false - as the
following example:

A B C
1 EUR USD FALSE
2 EUR EUR TRUE
3 EUR CHF FALSE

how do I do that?

thanx for your help!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I fill a series in Nonadjacent cells eg Text 1, Text 2 juikijui Excel Discussion (Misc queries) 6 September 2nd 06 12:43 AM
comparing text cells Comander Excel Worksheet Functions 2 June 5th 06 10:00 PM
merged cells into one text cell, size varies dependant on text dat Jazzylady825 Excel Discussion (Misc queries) 0 December 9th 05 08:26 PM
Comparing text strings in cells Andy Excel Discussion (Misc queries) 0 December 7th 05 04:17 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM


All times are GMT +1. The time now is 05:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"