Gingertrees
Well-known Member
- Joined
- Sep 21, 2009
- Messages
- 697
Organizing addresses again, I have a long list with up to 7 rows per entry. I have labeled this thusly:
Since not all businesses have Fax info, or a website, sometime there is no line 4 or 5, so the numbers go like this:
...1
...2
...3
...6
...7
...1
...2
...3
...4
...6
...7
(etc)
This is in one big column of numbers (column B). There's always a 1,2,3, 6,and 7. The middle ones get tricky.
I want to change from that column to rows with 7 columns.
IS there some way (vlookup? VBA?) that Excel can know "7=last column in a row, start new row". Also, "4 does not exist, skip to next cell"
Name.......Addr........Phone...Fax...Web...Contact...Directions
Crosspost at the bottom of a long and ignored thread:
http://www.mrexcel.com/forum/showthread.php?t=613879&page=2
Code:
[COLUMN A..............][.B..]
SMITH'S PARTS............1
300 MAIN ST, ABE NC......2
PHONE: 300-222-2222......3
FAX......................4
WEB: WWW.____.NET........5
CONTACT: JON SMITH.......6
GET DIRECTIONS...........7
OAKVILLE STORE...........1
12 ARBOR RD, BLISS ID....2
PHONE: 800-345-2222......3
FAX......................4
CONTACT: JERRY JACK......6
GET DIRECTIONS...........7
Since not all businesses have Fax info, or a website, sometime there is no line 4 or 5, so the numbers go like this:
...1
...2
...3
...6
...7
...1
...2
...3
...4
...6
...7
(etc)
This is in one big column of numbers (column B). There's always a 1,2,3, 6,and 7. The middle ones get tricky.
I want to change from that column to rows with 7 columns.
IS there some way (vlookup? VBA?) that Excel can know "7=last column in a row, start new row". Also, "4 does not exist, skip to next cell"
Name.......Addr........Phone...Fax...Web...Contact...Directions
Crosspost at the bottom of a long and ignored thread:
http://www.mrexcel.com/forum/showthread.php?t=613879&page=2