I have a bunch of existing customer codes, in Range A1:A19. in Cell B2, I have a drop down with letters from A - Z. The user should select any letter from the Drop Down, and in cell C2, the next available Customer Code starting with that letter should be visible. In the below example, if the user selects B from the Drop Down, the output in cell C2 should be B005. Can anyone help me with this. (Request a Formula as an answer and not VBA)
[TABLE="width: 200, align: left"]
<tbody>[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD]Existing Codes[/TD]
[/TR]
[TR]
[TD]A001[/TD]
[/TR]
[TR]
[TD]A002[/TD]
[/TR]
[TR]
[TD]A003[/TD]
[/TR]
[TR]
[TD]B001[/TD]
[/TR]
[TR]
[TD]B002[/TD]
[/TR]
[TR]
[TD]B003[/TD]
[/TR]
[TR]
[TD]B004[/TD]
[/TR]
[TR]
[TD]C001[/TD]
[/TR]
[TR]
[TD]D002[/TD]
[/TR]
[TR]
[TD]A004[/TD]
[/TR]
[TR]
[TD]A005[/TD]
[/TR]
[TR]
[TD]A006[/TD]
[/TR]
[TR]
[TD]A007[/TD]
[/TR]
[TR]
[TD]A008[/TD]
[/TR]
[TR]
[TD]A009[/TD]
[/TR]
[TR]
[TD]A010[/TD]
[/TR]
[TR]
[TD]A011[/TD]
[/TR]
[TR]
[TD]A024[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Thank You,[/TD]
[/TR]
[TR]
[TD]Deep[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 200, align: left"]
<tbody>[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD]Existing Codes[/TD]
[/TR]
[TR]
[TD]A001[/TD]
[/TR]
[TR]
[TD]A002[/TD]
[/TR]
[TR]
[TD]A003[/TD]
[/TR]
[TR]
[TD]B001[/TD]
[/TR]
[TR]
[TD]B002[/TD]
[/TR]
[TR]
[TD]B003[/TD]
[/TR]
[TR]
[TD]B004[/TD]
[/TR]
[TR]
[TD]C001[/TD]
[/TR]
[TR]
[TD]D002[/TD]
[/TR]
[TR]
[TD]A004[/TD]
[/TR]
[TR]
[TD]A005[/TD]
[/TR]
[TR]
[TD]A006[/TD]
[/TR]
[TR]
[TD]A007[/TD]
[/TR]
[TR]
[TD]A008[/TD]
[/TR]
[TR]
[TD]A009[/TD]
[/TR]
[TR]
[TD]A010[/TD]
[/TR]
[TR]
[TD]A011[/TD]
[/TR]
[TR]
[TD]A024[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Thank You,[/TD]
[/TR]
[TR]
[TD]Deep[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Last edited: