how can i type ONE letter and get a full word entered

mythiey

New Member
Joined
Dec 8, 2009
Messages
16
hi there,

im looking for a way to be able to type one letter into a cell, and then it auto compleate the word for me, such as follows

O = OFF
H = Holiday
S = Sick
B = Bankholiday

how would i go about doing this?

also, once i have worked out this, i would like to be able to have one cell count how many Holiday entreys there are upon the worksheet and then another cell for sick, etc, how would i also go about doing this?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
For the entry part you could look at the autocorrect feature.
 
Upvote 0
The auto complete might work if you have the 4 entries typed into cells in the column you're working in. Otherwise you might need some visual basic (macro) code.

An alternative might be to set up cell validation. Select the cells you want the options to appear in, choose data -> validation and select 'list'

then type

OFF,Holiday,Sick,Bankholiday

into the souce textbox

If you want to count the occurences of some text in column A, say

=COUNTIF(A:A,"OFF")

HTH
 
Upvote 0
dave3009 - interesting idea. Seems to work, but also seems to work in every file, once set up, so maybe not ideal . . .
 
Upvote 0
Yes and it's not all that transferable either if I recall.

How about some event code

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.value
    Case "o": Target.value = "Overtime"
    Case "h": Target.value = "Holiday"
    'Add more cases
End Select
End Sub

If you wanted it to act on capital letters then just add them in as cases
 
Upvote 0

Forum statistics

Threads
1,223,757
Messages
6,174,331
Members
452,555
Latest member
colc007

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