Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default HOW TO INSERT A * BEFORE AND AFTER EACH WORD

I need to add a * before and after each word. Can anyone help me in doing
this?

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default HOW TO INSERT A * BEFORE AND AFTER EACH WORD

If you have a phrase like:

the cat sat on the mat

in A1, and this formula in B1:

="*"&SUBSTITUTE(A1," ","* *")&"*"

then you will end up with:

*the* *cat* *sat* *on* *the* *mat*

Is that what you want? You can copy the formula down if you have other
phrases in column A. With only a single word in A1, like "test", the
formula will give you "*test*" (without the quotes).

Hope this helps.

Pete

On Nov 8, 1:44*am, Brianna wrote:
I need to add a * before and after each word. *Can anyone help me in doing
this?

Thank you!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default HOW TO INSERT A * BEFORE AND AFTER EACH WORD

Hi,

If each word is in its own cell you could use

="*"&A1&"*"

Or if you want to loose the spaces between word in a multi-word cell

="*"&SUBSTITUTE(A9," ","*")&"*"


--
Thanks,
Shane Devenshire


"Brianna" wrote:

I need to add a * before and after each word. Can anyone help me in doing
this?

Thank you!

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
Insert Word Document Mike H. Excel Discussion (Misc queries) 1 October 30th 08 07:16 PM
Insert word to excel SLK Excel Discussion (Misc queries) 0 May 9th 08 01:44 AM
Insert letter/no among word ShamsulZ Excel Discussion (Misc queries) 2 October 5th 06 10:39 AM
INSERT THE SAME WORD IN FRONT OF EACH ROW Annie23 Excel Discussion (Misc queries) 4 February 28th 06 01:37 PM
=SUM Then insert word. iwgunter Excel Worksheet Functions 3 November 1st 04 10:13 AM


All times are GMT +1. The time now is 04:09 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"