How to automate the process to add 2 ** before and after the

Plohish

New Member
Joined
Apr 21, 2002
Messages
11
How to automate the process to add 2 ** before and after the content in the cell?

I have a list of over 950 entries in my spreadsheet every week. In order for the content to be properly displayed on the webpage I have to add 2 ** before and after the ticker symbol.

I.e. Cell B1: AOL has to be **AOL**.
Cell B2: CCBL has to be **CCBL**

What is the easiest and fastest way to do it?

Thank you in advance.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
What I'd do is create a custom format if all that's needed is to adjust the way data is displayed. If you need to actually get the ** bits into the data, then I'd use the string concatenate operator as part of the formula.

="**" & stringdata & "**"


Using this formula, if stringdata = "AOL" then the result is "**AOL**". That should accomplish what you need.
This message was edited by g_erhard on 2002-04-22 12:15
 
Upvote 0
I.e. Cell B1: AOL has to be **AOL**.
Cell B2: CCBL has to be **CCBL

In A1 Type AOL
In B2 type :

="**" &
$A1 &
"**."


looks odd just copy and paste in B1 and will be fine, drag as needed

I have made it look odd so asy to understand:

WARNING.

Select B1 hit F2 and paste else will bounce into B1:B3, not so good must to allocated in full to ONE cell/

Hope this is OK
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

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
Back
Top