Need help to do Macro.

bentxoxo

New Member
Joined
Jan 13, 2016
Messages
29
Hi Everyone,
Am wondering if someone could do a macro on this to help me to speed up the process.

I do following steps when I receive new address sheet to match with old.

Old-Data sheet1
Select Colum H [ Phone1 ]
Ctrl+F [Find & Replace] [ - ],[ + ],[space],[ . ] (Removing symbols and spaces from phone numbers)

New-Data-Sheet2
Delete Column C,D,E,F
Select Column D and Insert
Select Column I & J [ Area Code ] & [ Phone Number ]
Ctrl+F [Find & Replace] [ - ],[ + ],[space],[ . ] (Removing symbols and spaces from area code & phone numbers)
Insert Column K after [ Phone Number ]
In Column K add formula [ =CONCATENA(I2,J2) ] and copy formula till end.
Select All > Data > Sort > [ * ] My data has headers
Sort by Column L [ Country ]
Insert Column L and add formula [ =RIGHT(K2,9) ] for AUS only and copy formula where country is AUS.
Insert Column L and add formula [ =RIGHT(K2,10) ] for NZ only and copy formula where ****ry is NZ.
Copy column L from line 2 to end of the column and paste special [ value only ] at J2
Delete Column K & L
Select Column J, right click and convert all to numbers.
Go to Column D2 and add following formula
[ =INDEX(Old-Data sheet1!A:A, MATCH('New-Data-Sheet2'!J2,Old-Data sheet1!H:H,0)) ] Copy formula till end.

Highly appreciate your help on this!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Why not simply use the macro recorder, doing the steps you provided ???
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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