JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 788
- Office Version
- 365
- Platform
- Windows
Hi,
i have a list of data on sheet("data") in columns A:C in the following format:
[TABLE="class: s570a4-19 MzlEq"]
<tbody>[TR="class: s570a4-20 bKSoXW"]
[TH="class: s570a4-25 eCDbZz, align: center"]OrderNumber[/TH]
[TH="class: s570a4-25 eCDbZz, align: center"]Quantity[/TH]
[TH="class: s570a4-25 eCDbZz, align: center"]CountryCode[/TH]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0001[/TD]
[TD="class: s570a4-21 fyFZeq"]12[/TD]
[TD="class: s570a4-21 fyFZeq"]01[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0002[/TD]
[TD="class: s570a4-21 fyFZeq"]1[/TD]
[TD="class: s570a4-21 fyFZeq"]01[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0003[/TD]
[TD="class: s570a4-21 fyFZeq"]4[/TD]
[TD="class: s570a4-21 fyFZeq"]02[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0004[/TD]
[TD="class: s570a4-21 fyFZeq"]1[/TD]
[TD="class: s570a4-21 fyFZeq"]03[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0005[/TD]
[TD="class: s570a4-21 fyFZeq"]6[/TD]
[TD="class: s570a4-21 fyFZeq"]04[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0006[/TD]
[TD="class: s570a4-21 fyFZeq"]1[/TD]
[TD="class: s570a4-21 fyFZeq"]04[/TD]
[/TR]
</tbody>[/TABLE]
I need to copy everything with CountryCode 01 into range "label01" on Sheet("Labels") and repeat for each country code. I usually do this manually with copy/paste values but its very repetitive.
Though if there are more than 10 with same country code, rest will go on to the following label.
(label ranges are 3col x 10row)
example:
CountryCode: 01 - 6 rows (goes into range "label01")
CountryCode: 02 - 14 rows (10 goes into "label02" and 4 goes into "label03"
CountryCode: 03 - 8 rows (goes into "label04")
I dont know how difficult this is, but any pointers on how i could go about this would be appreciated.
i have a list of data on sheet("data") in columns A:C in the following format:
[TABLE="class: s570a4-19 MzlEq"]
<tbody>[TR="class: s570a4-20 bKSoXW"]
[TH="class: s570a4-25 eCDbZz, align: center"]OrderNumber[/TH]
[TH="class: s570a4-25 eCDbZz, align: center"]Quantity[/TH]
[TH="class: s570a4-25 eCDbZz, align: center"]CountryCode[/TH]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0001[/TD]
[TD="class: s570a4-21 fyFZeq"]12[/TD]
[TD="class: s570a4-21 fyFZeq"]01[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0002[/TD]
[TD="class: s570a4-21 fyFZeq"]1[/TD]
[TD="class: s570a4-21 fyFZeq"]01[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0003[/TD]
[TD="class: s570a4-21 fyFZeq"]4[/TD]
[TD="class: s570a4-21 fyFZeq"]02[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0004[/TD]
[TD="class: s570a4-21 fyFZeq"]1[/TD]
[TD="class: s570a4-21 fyFZeq"]03[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0005[/TD]
[TD="class: s570a4-21 fyFZeq"]6[/TD]
[TD="class: s570a4-21 fyFZeq"]04[/TD]
[/TR]
[TR="class: s570a4-20 bKSoXW"]
[TD="class: s570a4-21 fyFZeq"]0006[/TD]
[TD="class: s570a4-21 fyFZeq"]1[/TD]
[TD="class: s570a4-21 fyFZeq"]04[/TD]
[/TR]
</tbody>[/TABLE]
I need to copy everything with CountryCode 01 into range "label01" on Sheet("Labels") and repeat for each country code. I usually do this manually with copy/paste values but its very repetitive.
Though if there are more than 10 with same country code, rest will go on to the following label.
(label ranges are 3col x 10row)
example:
CountryCode: 01 - 6 rows (goes into range "label01")
CountryCode: 02 - 14 rows (10 goes into "label02" and 4 goes into "label03"
CountryCode: 03 - 8 rows (goes into "label04")
I dont know how difficult this is, but any pointers on how i could go about this would be appreciated.
Last edited: