Help with Drop downs

SlurpeeD

New Member
Joined
Jul 25, 2024
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello I have a sheet that has a drop down. I want the drop downs to have options like 1. Annual Leave, 2. Sick Leave, 3. Holiday Leave and so on. When clicking on the drop down I want to be able to see the number and the text but when one is selected I only want to be able to see the number. is that possible?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
What kind of "drop down" is this? Validation list? Forms control? ActiveX control? If the latter, on a userform?
 
Upvote 0
What kind of "drop down" is this? Validation list? Forms control? ActiveX control? If the latter, on a userform?
Yeah, I should've asked that. I assumed it was Validation drop down.
 
Upvote 0
Yeah, I should've asked that. I assumed it was Validation drop down.
If is a Validation drop down and you're okay with VBA. Put this in the Sheet with the Drop down.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Validation.Value = True Then
    Target.Value = Left(Target.Value, 1)
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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