Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Replace Value in one field with cell value in same row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dan@outdoorsportsguys.com - 12 Oct 2007 19:06 GMT
I am trying to figure out how to replace a number string in one cell
with a value in another cell in the same row? I have this data in cell
A1 (S07003!K2SKIS) and I want to replace S07003 with the value in cell
B1 I have tried find and replace but I dont know the syntax to  so
that this will continue for cells A1-A10 with the values in cells B1-
B10?
JW - 12 Oct 2007 19:59 GMT
If it will always be S07003:
=SUBSTITUTE(A1,"S07003",B1)

For variable data:
Is there truly a parenthesis infront of the data, or did you just do
that for the post?  If the parenthesis is really there, this will
replace the characters up to the exclamation point with the value in
B1:
=SUBSTITUTE(A1,MID(A1,2,FIND("!",A1,1)-2),B1)

If the parenthesis is not there:
=SUBSTITUTE(A1,LEFT(A1,FIND("!",A1,1)-1),B1)

There are other ways to accomplish this as well.

> I am trying to figure out how to replace a number string in one cell
> with a value in another cell in the same row? I have this data in cell
> A1 (S07003!K2SKIS) and I want to replace S07003 with the value in cell
> B1 I have tried find and replace but I dont know the syntax to  so
> that this will continue for cells A1-A10 with the values in cells B1-
> B10?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.