StephenMatthews
New Member
- Joined
- Sep 26, 2013
- Messages
- 28
Hi Guys,
I have an Excel spreadsheet that lists various lines of data for hundreds of addresses, under each address there is a list of products but what I want is to transfer those lines of data from column B into columns C, D & E with an "X" or a "Tick" as per the example below and then delete the duplicate line/s so only one address line is listed showing the products in their designated columns. I have branch numbers ie 000789 which could be used to identify the branch as opposed to an address which could be subject to errors. I would like a Macro to do this for me and would need to create the additional columns being C, D & E with the headings and then move the data from Column B into the assigned columns. I hope someone can help me with this, I tried IF formulas but would prefer a Macro so when I run the Report it does all this automatically for me.
[table="width: 250, class: grid, align: center"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[td]C[/td]
[td]D[/td]
[td]E[/td]
[/tr]
[tr]
[td]1[/td]
[td]Address[/td]
[td]List[/td]
[td]Sandwich[/td]
[td]Sweets[/td]
[td]Drink[/td]
[/tr]
[tr]
[td]2[/td]
[td]High Street, London[/td]
[td]Sweets[/td]
[td][/td]
[td]X[/td]
[td]X[/td]
[/tr]
[tr]
[td]3[/td]
[td]High Street, London[/td]
[td]Drinks[/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]4[/td]
[td]Park Road, London[/td]
[td]Sandwich[/td]
[td]X[/td]
[td][/td]
[td]X[/td]
[/tr]
[tr]
[td]5[/td]
[td]Park Road, London[/td]
[td]Drink[/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]6[/td]
[td]The Avenue, Coventry[/td]
[td]Sandwich[/td]
[td]X[/td]
[td]X[/td]
[td][/td]
[/tr]
[tr]
[td]7[/td]
[td]The Avenue, Coventry[/td]
[td]Sweets[/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[/table]
Thanks
Stephen.
I have an Excel spreadsheet that lists various lines of data for hundreds of addresses, under each address there is a list of products but what I want is to transfer those lines of data from column B into columns C, D & E with an "X" or a "Tick" as per the example below and then delete the duplicate line/s so only one address line is listed showing the products in their designated columns. I have branch numbers ie 000789 which could be used to identify the branch as opposed to an address which could be subject to errors. I would like a Macro to do this for me and would need to create the additional columns being C, D & E with the headings and then move the data from Column B into the assigned columns. I hope someone can help me with this, I tried IF formulas but would prefer a Macro so when I run the Report it does all this automatically for me.
[table="width: 250, class: grid, align: center"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[td]C[/td]
[td]D[/td]
[td]E[/td]
[/tr]
[tr]
[td]1[/td]
[td]Address[/td]
[td]List[/td]
[td]Sandwich[/td]
[td]Sweets[/td]
[td]Drink[/td]
[/tr]
[tr]
[td]2[/td]
[td]High Street, London[/td]
[td]Sweets[/td]
[td][/td]
[td]X[/td]
[td]X[/td]
[/tr]
[tr]
[td]3[/td]
[td]High Street, London[/td]
[td]Drinks[/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]4[/td]
[td]Park Road, London[/td]
[td]Sandwich[/td]
[td]X[/td]
[td][/td]
[td]X[/td]
[/tr]
[tr]
[td]5[/td]
[td]Park Road, London[/td]
[td]Drink[/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]6[/td]
[td]The Avenue, Coventry[/td]
[td]Sandwich[/td]
[td]X[/td]
[td]X[/td]
[td][/td]
[/tr]
[tr]
[td]7[/td]
[td]The Avenue, Coventry[/td]
[td]Sweets[/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[/table]
Thanks
Stephen.