SOLVED

Display the selected text as number on a drop down list

%3CLINGO-SUB%20id%3D%22lingo-sub-190743%22%20slang%3D%22en-US%22%3EDisplay%20the%20selected%20text%20as%20number%20on%20a%20drop%20down%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190743%22%20slang%3D%22en-US%22%3EHi%20Team%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20a%20requirement%20to%20show%20the%20selected%20value%20in%20a%20drop%20down%20list%20as%20number%20in%20an%20excel.%20The%20drop%20down%20values%20appear%20as%20text%20or%20character%20and%20when%20a%20user%20selects%20any%20of%20the%20text%20value%20from%20the%20drop%20down%20list%2C%20it%20should%20be%20displayed%20as%20number%2C%20please%20help%20me%20on%20this.%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-190743%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20%26amp%3B%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENeed%20Help%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-190853%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20the%20selected%20text%20as%20number%20on%20a%20drop%20down%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190853%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Wyn.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYour%20response%20and%20formula%20has%20helped%20me%20a%20lot%2C%20I%20truly%20appreciate%20your%20help%20and%20support%20on%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20if%20you%20come%20across%20a%20solution%20as%20depicted%20by%20yourself%20on%20the%20trailing%20response%20(VBA-%20Macros)%20to%20display%20the%20value%20in%20the%20same%20column%20(AE).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMishu%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-190847%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20the%20selected%20text%20as%20number%20on%20a%20drop%20down%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190847%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Mishu%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20you%20can't%20make%20it%20put%20a%20different%20value%20in%20the%20same%20cell%2C%20so%20the%20drop%20down%20would%20be%20in%20one%20column%20and%20the%20corresponding%20number%20value%20would%20be%20in%20another%20column.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESo%20if%20you%20pick%20from%20the%20drop%20down%20in%20cell%20AE4%2C%20you%20then%20need%20a%20formula%20in%20AF4%20(or%20out%20of%20the%20way%20to%20the%20far%20right)%20that%20has%20a%20formula%20to%20pick%20up%20the%20position%20of%20that%20item%20in%20the%20list%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3D%20MATCH(%26nbsp%3B%20AE4%2C%26nbsp%3BSheet2!%24G%243%3A%24G%2475%20%2C%26nbsp%3B%200)%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20you%20want%20is%20possible%20but%20only%20with%20getting%20into%26nbsp%3Bthe%20VBA%20(Macro)%20side%20of%20things%2C%20which%20is%20a%20lot%20more%20complex%20to%20set%20up%20properly%2C%26nbsp%3B%20e.g.%20be%20able%20to%20double%20click%20in%20AE4%20and%20have%20a%20pop%20up%20box%20and%20be%20able%20to%20see%20the%20full%20description%2C%20pick%20one%2C%20and%20the%20resulting%20figure%20of%201%20etc%20to%20be%20returned%20into%20AE4%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-190830%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20the%20selected%20text%20as%20number%20on%20a%20drop%20down%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190830%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Wyn%20for%20your%20response.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20this%20is%20exactly%20what%20I%20have%20been%20looking%20for.%20Please%20find%20attached%20my%20version%20of%20the%20sheet%2C%20the%20scenario%20has%20been%20listed%20below-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20the%20attached%20sheet%2C%20on%20column-%20AE%2C%20there%20are%20multiple%20drop%20down%20choice%20list%20values%20to%20select%20within%20each%20of%20the%20rows%2Frecords.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20requirement%20here%20is%20that%20when%20a%20user%20selects%20any%20of%20the%20text%20values%20visible%20within%20the%20drop%20down%20list%20values%2C%20it%20should%20get%20converted%20to%20a%20number.%20For%20example-%20if%20the%20user%20selects%20the%20option%20as-%201-%20Agile%20Development%20(aka%20SDLC%20and%20scrum)%2C%20it%20should%20get%20converted%20to%201.%20Similarly%20when%20the%20user%20selects%20the%20option%20as-%20Altriris%20Integration%2C%20it%20should%20get%20converted%20to%202%20and%20so%20on%20till%2073%20for%20the%20remaining%20drop%20down%20options.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20need%20to%20be%20done%20on%20column%20AE%2C%20AG%2C%20AI%2C%20AK%2C%20AM%2C%20AO%2C%20AQ%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMishu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-190826%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20the%20selected%20text%20as%20number%20on%20a%20drop%20down%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190826%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20couple%20of%20options%20for%20this%2C%26nbsp%3B%20let%20me%20know%20if%20this%20is%20the%20sort%20of%20thing%20you%20were%20thinking%20of%20and%20I%20can%20explain%20how%20I%20did%20them%26nbsp%3B%20(I've%20also%20attached%20the%20file%20as%20a%20demo)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33630iA8DA1DBD34B5F9B3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1435781%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20the%20selected%20text%20as%20number%20on%20a%20drop%20down%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1435781%22%20slang%3D%22en-US%22%3E%3CP%3EHI%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9832%22%20target%3D%22_blank%22%3E%40Wyn%20Hopkins%3C%2FA%3E%26nbsp%3BI'm%20having%20the%20reverse%20problem%3B%20I%20mean%20..%20I%20need%20to%20display%20the%20selected%20number%20as%20text%20....%20I%20have%20a%20number%20(response%20option)%20and%20I%20need%20to%20have%20the%20corresponding%20text%20(option1%20caption%2C%20option2%20..)%20for%20different%20questions.%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3ETo%20resolve%20this%20I%20can%20not%20use%20any%20of%20your%20solutions%20..%20I%20guess%20...%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EI'll%20appreciate%20any%20help%20!%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EHere%20below%20the%20source%20report%20I%20need%20to%20work%20on%20..%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CTABLE%20border%3D%220%22%20width%3D%22638%22%20cellspacing%3D%220%22%20cellpadding%3D%220%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2295%22%20height%3D%2223%22%3E%3CDIV%3E%3CDIV%3E%3CDIV%3EResponse%20Option%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FTD%3E%3CTD%20width%3D%22136%22%3E%3CDIV%3E%3CDIV%3E%3CDIV%3EOption1%20Caption%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FTD%3E%3CTD%20width%3D%2295%22%3E%3CDIV%3E%3CDIV%3E%3CDIV%3EOption2%20Caption%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FTD%3E%3CTD%20width%3D%22312%22%3E%3CDIV%3E%3CDIV%3E%3CDIV%3EOption3%20Caption%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2295%22%20height%3D%2223%22%3E1%3C%2FTD%3E%3CTD%20width%3D%22136%22%3EMale%3C%2FTD%3E%3CTD%20width%3D%2295%22%3EFemale%3C%2FTD%3E%3CTD%20width%3D%22312%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2295%22%20height%3D%2223%22%3E3%3C%2FTD%3E%3CTD%20width%3D%22136%22%3ELess%20than%2030%20years%20old%3C%2FTD%3E%3CTD%20width%3D%2295%22%3Efrom%2031%20to%2040%20years%20old%3C%2FTD%3E%3CTD%20width%3D%22312%22%3Emore%20than%2041%20years%20old%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2295%22%20height%3D%2223%22%3E1%3C%2FTD%3E%3CTD%20width%3D%22136%22%3EDaily%3C%2FTD%3E%3CTD%20width%3D%2295%22%3EOn%20shift%3C%2FTD%3E%3CTD%20width%3D%22312%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1435790%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20the%20selected%20text%20as%20number%20on%20a%20drop%20down%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1435790%22%20slang%3D%22en-US%22%3ESounds%20like%20a%20different%20sort%20of%20issue%2C%20you'd%20be%20best%20off%20posting%20it%20as%20a%20new%20question%20in%20the%20forum%3C%2FLINGO-BODY%3E
New Contributor
Hi Team,

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.
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)

 

image.png

 

 

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

Best Response confirmed by mishu.pandey1985 (New Contributor)
Solution

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

Thanks Wyn.

 

 

Your response and formula has helped me a lot, I truly appreciate your help and support on this.

 

Please let me know if you come across a solution as depicted by yourself on the trailing response (VBA- Macros) to display the value in the same column (AE). 

 

Regards,

 

Mishu

 

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 Option
Option1 Caption
Option2 Caption
Option3 Caption
1MaleFemale 
3Less than 30 years oldfrom 31 to 40 years oldmore than 41 years old
1DailyOn shift 

  

Thank you !

Sounds like a different sort of issue, you'd be best off posting it as a new question in the forum