Forum Discussion
Display the selected text as number on a drop down list
I have a requirement to show the selected value in a drop down list as number in an excel. The drop down values appear as text or character and when a user selects any of the text value from the drop down list, it should be displayed as number, please help me on this.
Hi Mishu
Unfortunately, you can't make it put a different value in the same cell, so the drop down would be in one column and the corresponding number value would be in another column.
So if you pick from the drop down in cell AE4, you then need a formula in AF4 (or out of the way to the far right) that has a formula to pick up the position of that item in the list = MATCH( AE4, Sheet2!$G$3:$G$75 , 0)
What you want is possible but only with getting into the VBA (Macro) side of things, which is a lot more complex to set up properly, e.g. be able to double click in AE4 and have a pop up box and be able to see the full description, pick one, and the resulting figure of 1 etc to be returned into AE4
6 Replies
Hi,
A couple of options for this, let me know if this is the sort of thing you were thinking of and I can explain how I did them (I've also attached the file as a demo)
- FabioFedericoCopper Contributor
HI Wyn Hopkins I'm having the reverse problem; I mean .. I need to display the selected number as text .... I have a number (response option) and I need to have the corresponding text (option1 caption, option2 ..) for different questions.
To resolve this I can not use any of your solutions .. I guess ...I'll appreciate any help !Here below the source report I need to work on ..Response OptionOption1 CaptionOption2 CaptionOption3 Caption1 Male Female 3 Less than 30 years old from 31 to 40 years old more than 41 years old 1 Daily On shift Thank you !
- Sounds like a different sort of issue, you'd be best off posting it as a new question in the forum
- mishu.pandey1985Copper Contributor
Thanks Wyn for your response.
Yes, this is exactly what I have been looking for. Please find attached my version of the sheet, the scenario has been listed below-
On the attached sheet, on column- AE, there are multiple drop down choice list values to select within each of the rows/records.
The requirement here is that when a user selects any of the text values visible within the drop down list values, it should get converted to a number. For example- if the user selects the option as- 1- Agile Development (aka SDLC and scrum), it should get converted to 1. Similarly when the user selects the option as- Altriris Integration, it should get converted to 2 and so on till 73 for the remaining drop down options.
This need to be done on column AE, AG, AI, AK, AM, AO, AQ
Regards,
Mishu
Hi Mishu
Unfortunately, you can't make it put a different value in the same cell, so the drop down would be in one column and the corresponding number value would be in another column.
So if you pick from the drop down in cell AE4, you then need a formula in AF4 (or out of the way to the far right) that has a formula to pick up the position of that item in the list = MATCH( AE4, Sheet2!$G$3:$G$75 , 0)
What you want is possible but only with getting into the VBA (Macro) side of things, which is a lot more complex to set up properly, e.g. be able to double click in AE4 and have a pop up box and be able to see the full description, pick one, and the resulting figure of 1 etc to be returned into AE4