"The" to ", The"

J

James

Hi,
i have a list and i would like to change a cell to read "Goonies, The"
instead of "The Goonies".
any ideas?
 
C

Chip Pearson

James,

Assuming the value to be changed is in A1, use the following
formula

=IF(LEFT(A1,4)="The ",MID(A1,5,LEN(A1))&", The",A1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
G

Guest

-----Original Message-----
Hi,
i have a list and i would like to change a cell to read "Goonies, The"
instead of "The Goonies".
any ideas?


Ctrl+H
Find What = "The "
Replace What = ", The"
 
J

James

no, this wouldn't work for me because i fave a lot of different titles and
i'd have to Ctrl+H for each title.
the actual formula's worked like a charm.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top