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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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