#1   Report Post  
lbrew
 
Posts: n/a
Default duplicate words

If each cell in 3 columns has mupltiple words and numbers - Does excel have
the ability to to look at say 3 rows and 3 columns and identify the duplicate
words or numbers? Either by idenitying the common cells individually
depending on how I format or looking at a range of mutiple columns and rows
and tell me there are duplicates (then I know where to look)?

example:
column a column b column c
bp oil 1234 hess 4321 sheetz 568
hess 4321 shell 9876 shell 1234
bp oil 7890 bp oil 1234 sheetz 568

I used a range and conditional formatting
=IF(COUNTIF(range1,A4)1,TRUE,FALSE) but the cells have to be exact. If BP
Oil 1234 has 2 spaces in between Oil and 1234 then it won't highlight that
particular one.


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Try this

=IF(SUMPRODUCT(--(SUBSTITUTE(range1," ","")=SUBSTITUTE(A4,"
","")))1,TRUE,FALSE)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"lbrew" wrote in message
...
If each cell in 3 columns has mupltiple words and numbers - Does excel

have
the ability to to look at say 3 rows and 3 columns and identify the

duplicate
words or numbers? Either by idenitying the common cells individually
depending on how I format or looking at a range of mutiple columns and

rows
and tell me there are duplicates (then I know where to look)?

example:
column a column b column c
bp oil 1234 hess 4321 sheetz 568
hess 4321 shell 9876 shell 1234
bp oil 7890 bp oil 1234 sheetz 568

I used a range and conditional formatting
=IF(COUNTIF(range1,A4)1,TRUE,FALSE) but the cells have to be exact. If

BP
Oil 1234 has 2 spaces in between Oil and 1234 then it won't highlight that
particular one.




  #3   Report Post  
David Billigmeier
 
Posts: n/a
Default

Ibrew -
Use the TRIM(...) function. It removes all spaces from a string except for
a single space between the words. So update your function to be:

=IF(SUMPRODUCT(--(TRIM(range1)=TRIM(A4)))1,TRUE,FALSE)

---
Regards,
Dave


"lbrew" wrote:

If each cell in 3 columns has mupltiple words and numbers - Does excel have
the ability to to look at say 3 rows and 3 columns and identify the duplicate
words or numbers? Either by idenitying the common cells individually
depending on how I format or looking at a range of mutiple columns and rows
and tell me there are duplicates (then I know where to look)?

example:
column a column b column c
bp oil 1234 hess 4321 sheetz 568
hess 4321 shell 9876 shell 1234
bp oil 7890 bp oil 1234 sheetz 568

I used a range and conditional formatting
=IF(COUNTIF(range1,A4)1,TRUE,FALSE) but the cells have to be exact. If BP
Oil 1234 has 2 spaces in between Oil and 1234 then it won't highlight that
particular one.


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 do I search for duplicate words in a column? Krista Excel Worksheet Functions 5 August 10th 05 09:43 PM
triadic combinations of words jayock02 Excel Worksheet Functions 1 June 19th 05 02:10 AM
How do I find duplicate rows in a list in Excel, and not delete it Matthew in FL Excel Discussion (Misc queries) 2 June 15th 05 09:11 PM
Spell Checking - Special Words Not Picked Up by Excel Hans Emilio Excel Discussion (Misc queries) 4 May 25th 05 02:25 PM
how to change numbers into words, Mukesh Dhoot Excel Discussion (Misc queries) 1 March 19th 05 11:48 AM


All times are GMT +1. The time now is 12:32 PM.

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

About Us

"It's about Microsoft Excel"