column number from one cell to the other

donlincolnmre2

Board Regular
Joined
Dec 23, 2006
Messages
142
Hello

I’m looking for a macro to copy records and phone number. The row without phone numbers (referring to COLUMN J) have lots more columns and lot more data I need a macro to transfer or copy the phone number from rows below into to the row above (master record) in case there are multiple child records, and only 1 master record, the macro should insert a row and copy the master row into it.

I suppose the macro should check the numeric and just first alphabetic portion of the address to find the match (e.g. 11213 FOSTER ) since some address have apts and that would throw the macro off.

Then the macro would count how many times the record appeared below and then create the master record and then copy the child records phone number into them.

This is a real challenging one, any help would be greatly appreciated.

If all else failed and it can’t be done then the macro should just copy the very first child record phone number into the master record.

COLUMN F= ADDRESS
G=CITY
H=STATE
I=ZIP
J=PHONE NUMBERS

Below is the DUMMY DATA.



F G H I j


1121 LOTEBUSH LN BARSTOW CA 91601 3679-H5
11213 FOSTER RD NORWALK, CA 91601 736-F2
11213 FOSTER RD NORWALK, CA 91601 5624091827
11213 FOSTER RD NORWALK, CA 91601 5628638970
11215 HATTERAS ST NORTH HOLLYWOOD CA 91601 562-J1
11215 HATTERAS ST N HOLLYWOOD, CA 91601 8185087796
11215 HATTERAS ST NORTH HOLLYWOOD, CA 91601 8186237910
11216 DEBRA AVE SAN FERNANDO CA 91344
11216 S FIGUEROA LOS ANGELES, CA 9134 704-B6
11216 S FIGUEROA ST LOS ANGELES, CA 9134 3232421161
11216 S FIGUEROA ST, APT 2 LOS ANGELES, CA 9134 3234189687
11216 S FIGUEROA ST, APT 3 LOS ANGELES, CA 9134 3237561280
11216 S FIGUEROA ST, APT 7 LOS ANGELES, CA 9134 3237579304
11216 S FIGUEROA ST, APT 8 LOS ANGELES, CA 9134 3237799190
11226 FORBES AVE GRANADA HILLS CA 91344 501-D1
11248 TERRA VISTA PKWY 83 RANCHO CUCAMONGA CA 91730 573-D7
 

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.
The data is merged from two different files and then sorted on the Address, one file has the number and other doesn't, the file that does have number, has other information missing, so I need to transfer the number in to master record that has lot more information.
Hope that help.!
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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