Bring Full Name to a sheet from another sheet

Aliakbar

New Member
Joined
Sep 23, 2017
Messages
2
Hi,

I have a short name in one sheet and a full name name in another sheet. how do i bring the full name next to the column of short name.

for example: short name "Fila" is in one sheet and full name "Fila Industrial Chemica SpA" is in another sheet. how do i bring "Fila Industrial Chemica SpA" next to the colum of "Fila". currently i'm doing copy and paste but the datas are more.

Please advise.

Thank you
Ali
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
If you will answer these questions I believe I can help you.

1. What is the name of the worksheet where the short name resides?
2. What is the column on that worksheet where the short name is and what column do you want the full name copied to?
3. What is the name of the worksheet where the full name resides?
2. What is the column on that worksheet where the full name is?
 
Upvote 0
Assuming your short names are in column A starting at row 2 of Sheet1 and your full names are in column A of Sheet2, try the following macro:
Code:
Sub CopyName()
    Application.ScreenUpdating = False
    Dim Val As Range
    Dim foundVal As Range
    Dim LastRow As Long
    LastRow = Sheets("Sheet1").Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
    For Each Val In Sheets("Sheet1").Range("A2:A" & LastRow)
        Set foundVal = Sheets("Sheet2").Range("A:A").Find(Val, LookIn:=xlValues, lookat:=xlPart)
        If Not foundVal Is Nothing Then
            Val.Offset(0, 1) = foundVal
        End If
    Next Val
    Application.ScreenUpdating = True
End Sub
Change the sheet names and ranges to suit your needs.
 
Last edited:
Upvote 0
:eek: Just be aware that if there is no formal table/link between the short name and the full name you could get some unexpected results.
For example, with a short name of "Fila" in Sheet 1 and the below list of full names in Sheet 2, the result will be "Dubai Filament Co" not "Fila Industrial Chemica SpA"


Book1
A
1
2Some Company Name
3Dubai Filament Co
4Some Other Company
5Fila Industrial Chemica SpA
Sheet2
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,212
Members
449,074
Latest member
cancansova

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
Back
Top