Q
quetzalc0atl
Dear all,
I have some data which I would like to reformat with the help of a
marco.
The data is originally in this format for some 5-600 rows.
The No. of P'codes value is a count of the number of Retrieved P'codes
which are found from column C onwards
N'hood No.of P'codes P'codes
Chaddlewood Area 2 PL7 2HH PL7 2AN
Chaddlewood Area 4 PL7 2ZA PL7 2WZ PL7 2ES PL7 2XS
Plympton St Maurice 2 PL7 2HJ PL7 2BH
Plympton St Maurice 2 PL7 2AR PL7 2AG
Plympton St Maurice 4 PL7 2PS PL7 1AD PL7 1QW PL7 1QS
Colebrook & Newnham 2 PL7 4ES PL7 4EF
Elburton & Dunstone 2 PL9 8JW PL9 8DY
Elburton & Dunstone 3 PL9 8HL PL9 8HJ PL9 8HN
Elburton & Dunstone 3 PL9 8AU PL9 8AT PL9 8HW
I would like to reformat the above data to look like this on a new
sheet
P'code N'hood
PL7 2HH Chaddlewood
PL7 2AN Chaddlewood
PL7 2ZA Chaddlewood
PL7 2WZ Chaddlewood
PL7 2ES Chaddlewood
PL7 2XS Chaddlewood
PL7 2HJ Plympton St Maurice
PL7 2BH Plympton St Maurice
PL7 2AR Plympton St Maurice
PL7 2AG Plympton St Maurice
PL7 2PS Plympton St Maurice
PL7 1AD Plympton St Maurice
PL7 1QW Plympton St Maurice
PL7 1QS Plympton St Maurice
PL9 8JW Elburton & Dunstone
PL9 8DY Elburton & Dunstone
PL9 8HL Elburton & Dunstone
PL9 8HJ Elburton & Dunstone
PL9 8HN Elburton & Dunstone
PL9 8AU Elburton & Dunstone
PL9 8AT Elburton & Dunstone
PL9 8HW Elburton & Dunstone
I thought that a nested loop could be used but ended up confusing
myself, as I found that I was unable to either copy the range of the
P'codes or cycle through the columns to retrieve the postcodes based
on the No. of P'codes value.
If anyone could shed any light on how I may go about solving this
problem I would be greatly appreciative.
Thanks,
Clive
I have some data which I would like to reformat with the help of a
marco.
The data is originally in this format for some 5-600 rows.
The No. of P'codes value is a count of the number of Retrieved P'codes
which are found from column C onwards
N'hood No.of P'codes P'codes
Chaddlewood Area 2 PL7 2HH PL7 2AN
Chaddlewood Area 4 PL7 2ZA PL7 2WZ PL7 2ES PL7 2XS
Plympton St Maurice 2 PL7 2HJ PL7 2BH
Plympton St Maurice 2 PL7 2AR PL7 2AG
Plympton St Maurice 4 PL7 2PS PL7 1AD PL7 1QW PL7 1QS
Colebrook & Newnham 2 PL7 4ES PL7 4EF
Elburton & Dunstone 2 PL9 8JW PL9 8DY
Elburton & Dunstone 3 PL9 8HL PL9 8HJ PL9 8HN
Elburton & Dunstone 3 PL9 8AU PL9 8AT PL9 8HW
I would like to reformat the above data to look like this on a new
sheet
P'code N'hood
PL7 2HH Chaddlewood
PL7 2AN Chaddlewood
PL7 2ZA Chaddlewood
PL7 2WZ Chaddlewood
PL7 2ES Chaddlewood
PL7 2XS Chaddlewood
PL7 2HJ Plympton St Maurice
PL7 2BH Plympton St Maurice
PL7 2AR Plympton St Maurice
PL7 2AG Plympton St Maurice
PL7 2PS Plympton St Maurice
PL7 1AD Plympton St Maurice
PL7 1QW Plympton St Maurice
PL7 1QS Plympton St Maurice
PL9 8JW Elburton & Dunstone
PL9 8DY Elburton & Dunstone
PL9 8HL Elburton & Dunstone
PL9 8HJ Elburton & Dunstone
PL9 8HN Elburton & Dunstone
PL9 8AU Elburton & Dunstone
PL9 8AT Elburton & Dunstone
PL9 8HW Elburton & Dunstone
I thought that a nested loop could be used but ended up confusing
myself, as I found that I was unable to either copy the range of the
P'codes or cycle through the columns to retrieve the postcodes based
on the No. of P'codes value.
If anyone could shed any light on how I may go about solving this
problem I would be greatly appreciative.
Thanks,
Clive