TheTallBloke
New Member
- Joined
- Sep 3, 2015
- Messages
- 30
Hello folks,
Bit of a strange one - I am working on correcting data inconsistencies in model numbers sent by an incorigible supplier.
The goal is finding the following string within a cell and appending the letter X at the end:
(letter)(4 consecutive numbers)(letter in defined list - [E,V]) -> should get the letter X appended
I would like to do this using a formula rather than a macro - for control/ease of use reasons.
Example attached - apologies for using dummy data, confidentiality is the reason.
[TABLE="width: 363"]
<tbody>[TR]
[TD]ABC-DEF1234EX 1.2.3.4[/TD]
[TD]correct[/TD]
[/TR]
[TR]
[TD]ABC-DEF1234E 5.2.3.4[/TD]
[TD]should be ABC-DEF1234EX 1.2.3.4[/TD]
[/TR]
[TR]
[TD]DGH4321V 1.2.3-4[/TD]
[TD]should be DGH4321VX 1.2.3-4[/TD]
[/TR]
[TR]
[TD]ABCDD-1114X[/TD]
[TD]should be ignored[/TD]
[/TR]
</tbody>[/TABLE]
Possible or impossible? Thanks.
Bit of a strange one - I am working on correcting data inconsistencies in model numbers sent by an incorigible supplier.
The goal is finding the following string within a cell and appending the letter X at the end:
(letter)(4 consecutive numbers)(letter in defined list - [E,V]) -> should get the letter X appended
I would like to do this using a formula rather than a macro - for control/ease of use reasons.
Example attached - apologies for using dummy data, confidentiality is the reason.
[TABLE="width: 363"]
<tbody>[TR]
[TD]ABC-DEF1234EX 1.2.3.4[/TD]
[TD]correct[/TD]
[/TR]
[TR]
[TD]ABC-DEF1234E 5.2.3.4[/TD]
[TD]should be ABC-DEF1234EX 1.2.3.4[/TD]
[/TR]
[TR]
[TD]DGH4321V 1.2.3-4[/TD]
[TD]should be DGH4321VX 1.2.3-4[/TD]
[/TR]
[TR]
[TD]ABCDD-1114X[/TD]
[TD]should be ignored[/TD]
[/TR]
</tbody>[/TABLE]
Possible or impossible? Thanks.