Same text basic setup

Manolocs

Active Member
Joined
Mar 28, 2008
Messages
340
Hello I am trying to build a "formula" to show duplicated text between two rows:
The list is sorted alphabetically.
The column "A" is the only column that matters.
Some of the cells have a space in excess so the formula is false, any idea how make the formula dismiss the difference in spaces?
Would be nice to show both cells instead of only one when the formula is true.
Thanks in advance.


Code:
[FONT=Lucida Grande]=IF([/FONT][COLOR=#0057D6][FONT=Lucida Grande]D2[/FONT][/COLOR][FONT=Lucida Grande]=[/FONT][COLOR=#006107][FONT=Lucida Grande]D3[/FONT][/COLOR][FONT=Lucida Grande],"Delete"," ")[/FONT]
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
try using a countif ()

=countif(D:D, D2) >1
that will show where there is more than 1

you can add an IF to use the "delete" text if required

you say
The column "A" is the only column that matters.
but your testing column D

where are the spaces - leading trailing or somewhere in between
so is

"AA AA" the same as "AAAA"
" BB BB" the same as "BBBB "
 
Last edited:
Upvote 0
Hi etaf, The spaces normally are at the beginning or at the end of the text " AAAA" "AAAA ".
your formula still can not show with different spaces at front and end. :(
Instead of False/True any other way to better visualize the different cells?
Thanks for your time.
 
Upvote 0
=IF( countif(D:D, D2) >1 , "delete", "")

i can get the 2nd duplicate to work using

=countif(D:D, "*"&D2&"*") >1

but not identify the first duplicate for some reason
 
Last edited:
Upvote 0
Could you show us some sample data and expected results? If there is a problem showing spaces, use a "." in place of a space.
 
Upvote 0
The formula does not work when: ".AAAA" or "AAAA...." "AAAA."
One example doesn't show much. That also doesn't show layout or expected results. Your earlier formula had "Delete" as one possible outcome. There is no sign of that here.

Could we see say 10 rows of data and the expected results, including layout?
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top