substituting from one column to another

dftf

New Member
Joined
Apr 28, 2006
Messages
37
I have two columns. The letter in one column needs to replace number(s) in the other column.
A 2.003
A 2.003
B 6.007
B 6.007
C 10.011
C 10.013
D 15.016
D 15.016
D 15.016
D 15.021
D 15.022
E 24.025
F 27.028
G 31.032
H 35.036
H 35.038
I 39.041
I 39.042
J 44.045
A 2.003
A 2.003
A 2.003
B 7.008

The A needs to replace the 2, the B needs to replace the 6, the C needs to replace the 10, etc.

The catch is that it isn't always the same letter/number combination. Looking at the end of the sample, the B needs to replace the 7 in the next set.

Is there a formula I can apply to make this substitution?

Thank you!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
Will this do it for you:

=A1&RIGHT(B1,LEN(B1)-FIND(".",B1)+1)

HTH,

Smitty
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Perhaps:

=REPLACE(B1,1,FIND(".",B1)-1,A1)

Copy down.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,810
Messages
5,638,484
Members
417,027
Latest member
wlknspc7

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top