Find cells that begin with specific symbol and end with specific symbol

gdddg

New Member
Joined
May 25, 2015
Messages
9
Hi

I need to find all the cells that begin with symbol " and end with symbol ] and replace the ] with the ".

Thank you
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

gaz_chops

Well-known Member
Joined
Apr 29, 2003
Messages
6,485
Platform
  1. MacOS
Try

=IF(AND(LEFT(A1,1)="""",RIGHT(A1,1)="]"),SUBSTITUTE(A1,RIGHT(A1,1),""""),A1)
 
Upvote 0

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,142
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
You can also do it with the FIND and REPLACE dialog
1. Select the column that has the data or maybe the whole sheet
2. Open the Find and Replace dialog (CTRL+F)
3. In the FIND what type "*], then choose FIND ALL
4. Then select all the returned cells at the bottom of the FIND dialog

that way you have only the cells that start with a quote and end with "]" selected.
5. Move over to the replace tab of the Find and replace dialog
6. In find type ], in the replace with, type "

Well, looks a little more complex, but i kinda prefer it to create another column t effect the changes and then copy/paste values.....

Formula could be

Excel 2013
AB
1"I am here]"I am here"
2jamesjames
3"who am I"who am I
4"I need help]"I need help"
Sheet9
Cell Formulas
RangeFormula
B1=IF(AND(LEFT(A1,1)="""",RIGHT(A1,1)="]"),REPLACE(A1,LEN(A1),1,""""),A1)
 
Last edited:
Upvote 0

gdddg

New Member
Joined
May 25, 2015
Messages
9
ADVERTISEMENT
THANK YOU!!!!!!

it works

You just saved me from couple of hours od manualy corecting the tables....

TNX!!
 
Upvote 0

István Hirsch

Well-known Member
Joined
May 16, 2013
Messages
1,634
ADVERTISEMENT
Give this a try too:

=IF(COUNTIF(A1,"""*]")=1,SUBSTITUTE(A1,"]",""""),A1)

If you are going to use what Momentman suggested, after „Find All” just press Ctrl + A to select all the desired cells.
 
Upvote 0

gdddg

New Member
Joined
May 25, 2015
Messages
9
it is posible, i'm not that good with excel and formulas....
Once again, thank you both!
 
Upvote 0

gdddg

New Member
Joined
May 25, 2015
Messages
9
ok, got to ask, if i want to use the fomula on the row C, i replace all the A with C in formula?
 
Upvote 0

Forum statistics

Threads
1,195,834
Messages
6,011,866
Members
441,651
Latest member
drewe2000

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
Top