#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default replace question

Hey guys!

I have 2 columns A and B. What I need to do is take what is in column A and
replace a string of astricks in Column B. For example:

Column A Column B Result
ABC need****help needABChelp
DEF more****help moreDEFhelp

Any idea how to do this??

Thanks guys!

Mike

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default replace question

Try:

=SUBSTITUTE(SUBSTITUTE(B1,"*",A1,1),"*","")

This allows for a variable number of asterisks in Column B entries.

HTH

"Mike" wrote:

Hey guys!

I have 2 columns A and B. What I need to do is take what is in column A and
replace a string of astricks in Column B. For example:

Column A Column B Result
ABC need****help needABChelp
DEF more****help moreDEFhelp

Any idea how to do this??

Thanks guys!

Mike

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default replace question

=SUBSTITUTE(B1,REPT("*",LEN(B1)-LEN(SUBSTITUTE(B1,"*",""))),A1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Mike" wrote in message
...
Hey guys!

I have 2 columns A and B. What I need to do is take what is in column A

and
replace a string of astricks in Column B. For example:

Column A Column B Result
ABC need****help needABChelp
DEF more****help moreDEFhelp

Any idea how to do this??

Thanks guys!

Mike



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default replace question

You rock Toppers!! Thanks!!!

"Toppers" wrote:

Try:

=SUBSTITUTE(SUBSTITUTE(B1,"*",A1,1),"*","")

This allows for a variable number of asterisks in Column B entries.

HTH

"Mike" wrote:

Hey guys!

I have 2 columns A and B. What I need to do is take what is in column A and
replace a string of astricks in Column B. For example:

Column A Column B Result
ABC need****help needABChelp
DEF more****help moreDEFhelp

Any idea how to do this??

Thanks guys!

Mike

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default replace question

Mine's cleverer, but yours is better <g

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Toppers" wrote in message
...
Try:

=SUBSTITUTE(SUBSTITUTE(B1,"*",A1,1),"*","")

This allows for a variable number of asterisks in Column B entries.

HTH

"Mike" wrote:

Hey guys!

I have 2 columns A and B. What I need to do is take what is in column A

and
replace a string of astricks in Column B. For example:

Column A Column B Result
ABC need****help needABChelp
DEF more****help moreDEFhelp

Any idea how to do this??

Thanks guys!

Mike



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
Advanced Find and Replace Question Ryan Excel Worksheet Functions 1 August 5th 06 03:58 PM
replace value in excel? [email protected] Excel Worksheet Functions 3 January 7th 06 09:09 PM
find replace format neeraj Excel Discussion (Misc queries) 6 September 20th 05 05:50 PM
Search and Replace Question Rebecca New Users to Excel 1 April 11th 05 04:49 AM
Simple Search and Replace Question Rebecca Excel Discussion (Misc queries) 2 April 3rd 05 03:33 PM


All times are GMT +1. The time now is 01:17 AM.

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

About Us

"It's about Microsoft Excel"