formatting

shanshan4ever

New Member
Joined
Dec 15, 2005
Messages
9
hi all,
it is possible to add a word "std" on each cells after i enter a number value. so i have 187 std, 190 std etc instead of typing 1 9 0 s t d.
thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Excelenator

Board Regular
Joined
Jul 30, 2006
Messages
154
You can use a custom number format for this.

I used this one #,##0_)"STD";[Red](#,##0)"STD"
 

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196
Does the value need to actually exist, or just show up in the cell? (ie. Formatting versus actual text in the cell)

Custom format the cells to this.
@ "std"

And std will appear after each Cell.

HTH
Cal

PS-If you want the value to exist in the cell it will require a vba event driven macro.
 

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196
Since everyone else did the other solution, I thought I would give you some vba. This will add std to the end of every entry in your worksheet. Just paste it to the vba worksheet that you are doing the entry in.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Application.EnableEvents = False
    Target = Target & "std"
    Application.EnableEvents = True
End Sub

HTH
Cal
 

Forum statistics

Threads
1,137,060
Messages
5,679,372
Members
419,824
Latest member
Mercy kiara

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
Top