How to change or replace multiple cell name in Microsoft Excel chronologically?

tonmoy6794

New Member
Joined
Jan 17, 2024
Messages
1
Office Version
  1. 365
  2. 2013
  3. 2010
Platform
  1. Windows
I have provided the screenshot of my excel worksheet. I want to rename the cells in column B chronologically same as Column A but without losing the blank cells. i.e the first "transfer" name cell of column B will be "transfer 1", the second "transfer" name cell of column B will be "transfer 2", the third one will be "transfer 3" and so on. Is that possible? If so how and is there a easy method to do that? Also if that is not possible, is there a way to arrange the cell of Column A same as Column B. i.e arranging the cells of column A exactly like column B and have those blank cells in between.

I am complete noob at excel so please be detailed with your answers if possible. Thank you.

excel.JPG


I have tried several formulas and methods but none of them gave me the desired result that I expected. I have not tried VBA though because I dont know how to use it
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try:
VBA Code:
Sub ReplaceName()
    Application.ScreenUpdating = False
    Dim sAddr As String, fnd As Range, x As Long: x = 2
    Set fnd = Range("B:B").Find("Transfer1", LookIn:=xlValues, LookAt:=xlWhole)
    If Not fnd Is Nothing Then
        sAddr = fnd.Address
        Do
            fnd = Range("A" & x)
            x = x + 1
            Set fnd = Range("B:B").FindNext(fnd)
        Loop While fnd.Address <> sAddr
        sAddr = ""
    End If
    Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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