Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Inserting brackets in a column in Excel

Posted on 2014-01-14
Last Modified: 2014-01-14
Hi Folks,

I have a lonnnnng column of data in Excel. TO properly utilize a command for a listserv I need to have square brackets around the data in the column. How can I get the brackets around data in each cell without having to do this one by one?
First three rows is what I want....
Question by:dlewis61
LVL 15

Assisted Solution

gplana earned 100 total points
ID: 39779467
If "apple" is on cell A1, try to enter this on cell B1:


Then expand B1 to B10 to see first 10 results in square brackets. You can expand or copy to every row you want.

Hope it helps. Regards.
LVL 50

Accepted Solution

Rgonzo1971 earned 300 total points
ID: 39779469

you could create a helper's column with this formula copy the result and replace the values with Paste

Open in new window


Assisted Solution

Glowman earned 100 total points
ID: 39779491
or if you wanted a VBA solution you could just loop through the column and alter the value

dim dblRow as double:dblRow = 1

do until thisworkbook.sheets(1).range("A" & dblRow).value = ""
     thisworkbook.sheets(1).range("A" & dblRow).value =
                      "[" & thisworkbook.sheets(1).range("A" & dblRow).value & "]"
     dblRow = dblRow +1

options are nice

Author Closing Comment

ID: 39779677
Simplest and easiest to implement!

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question