Format: enclose content of cells in parantheses

  • Thread starter Thread starter awkwardpause101
  • Start date Start date
A

awkwardpause101

Hi there,

Is there an easy way to automatically format the contents of the cell
in any given column so that the content (text and numbers) are
enclosed in parentheses?

So, for example, 'random info' becomes ('random info')?

Thanks,

lamasoft
 
Maybe you could use a column with formulas like:

=if(a1="","","("&a1&")")
And copy down the column.

Then select that column
Edit|copy
edit|Paste special|values

and delete the original column.
 
Maybe you could use a column with formulas like:

=if(a1="","","("&a1&")")
And copy down the column.

Then select that column
Edit|copy
edit|Paste special|values

and delete the original column.

Yup, that works--thanks!
 
Is there an easy way to automatically format the contents of the cell
in any given column so that the content (text and numbers) are
enclosed in parentheses?

Select "Custom" in Format Cells and insert:

"("#,##0.00")";[Red]"("#,##0.00")";;"("@")"

You'll have to adjust the number formatting as you like. Here the
numbers will have commas and two decimal places, negative numbers in
red. Zeros won't show.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top