Cell format question

eliW

Well-known Member
Joined
Mar 2, 2002
Messages
1,940
Hi all,

How do I format cells so that every input will be surrounded with parentheses?

E.g. my input 35 or FGH
The result: (35) or (FGH)

Eli
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
The following custom format will do this but the values already need to be in the cell. If you type a new number in then it seems to treat the number as text. I dont know how to get around this if they need to be numbers but someone may know.

"("General")";"("@")"
 
Upvote 0
Thank you parry!
Works fine by just custom (@)
works for numbers and text and not seen when cell is empty.
Thanks again,
Eli
 
Upvote 0
My pleasure. Ive worked out how to retain numbers as numbers instead of text. This may be important if you need to do any calculations but if you just want text then your right just "("@")" is fine.

"("#,##0")";"("@")"
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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