Reputation: 19
I am trying to create a formula that can do three things within the same cell. The formula needs to get a value from another cell, but only the middle part (which can be solved with the substitute function). Next, it needs to add a letter at the start, and another number at the end.
Example:
I have the following three values:
The values need to be converted to the following
As you can see, the first two numbers, "20" have been replaced with "A", and the "A" at the end has been replaced with "1".
Reason: I need to do this for hundreds of records across multiple columns so a bit of automation would save me alot of time.
Upvotes: 0
Views: 185
Reputation: 2689
try
=if(left(A1,2)=20,"A") & mid(A1,3,4) & if(right(a1,1)="A",1)
Upvotes: 1