View Single Post
 
Old 08-22-2018, 08:11 AM
rsrasc rsrasc is offline Windows 10 Office 2013
Competent Performer
 
Join Date: Mar 2014
Location: Germany
Posts: 148
rsrasc is on a distinguished road
Default RIGHT Function With Concatenate (?) VBA-Need Help with Macro

Hi all,

I have a file with multiple sheets having the same information in Column B and C.

Not sure if the RIGHT Function is the most appropriate function to accomplish this task.

In Column B, from B4:B98 I have the following accounts in the following format.

B4: AF-600-51000
B5: AF-600-51001
.
.
B98: AF-600-51098

in Column C, same range (C4:C98), I have the names associated with the accounts

C4: Unit Name
C5: Promotions
.
.
C98: Other CC


The macro should be able to get the last 5 digits from Column B and combine it with the text in Column C and put the end result in Column A using the same range (A5:A98).

For example, in cell A4 (and so on) will look like this:

A4: 51000 Unit Name
A5: 51001 Promotions
.
.
A98: 51098 Other CC


My end goal is for the macro to be able to do this for 16 sheets in the file.

As always thank you for your assistance and cooperation.

Cheers!
rsrasc
Reply With Quote