tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
Ok,
So Column K has Items listed in it
and Column L Has the number of items ordered
So
K L
ToyBOX 20 for example(carries on down the column with different Items on)
so In Column P I want a macro that will go down column K look at the number column L and create alit on that many of the items.
Example
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[TD][/TD]
[TD]P
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item
[/TD]
[TD]Quantity
[/TD]
[TD][/TD]
[TD]New Item list I want
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Bag1
[/TD]
[TD]2
[/TD]
[TD][/TD]
[TD]Bag1<strike></strike>
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Hat
[/TD]
[TD]4
[/TD]
[TD][/TD]
[TD]Bag1<strike></strike>
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]scaff
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]Hat<strike></strike>
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]vood [/TD]
[TD]5
[/TD]
[TD][/TD]
[TD]Hat<strike></strike>
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Hat<strike></strike>
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Hat<strike></strike>
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]scaff<strike></strike>
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Ok,
So Column K has Items listed in it
and Column L Has the number of items ordered
So
K L
ToyBOX 20 for example(carries on down the column with different Items on)
so In Column P I want a macro that will go down column K look at the number column L and create alit on that many of the items.
Example
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[TD][/TD]
[TD]P
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item
[/TD]
[TD]Quantity
[/TD]
[TD][/TD]
[TD]New Item list I want
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Bag1
[/TD]
[TD]2
[/TD]
[TD][/TD]
[TD]Bag1<strike></strike>
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Hat
[/TD]
[TD]4
[/TD]
[TD][/TD]
[TD]Bag1<strike></strike>
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]scaff
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]Hat<strike></strike>
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]vood [/TD]
[TD]5
[/TD]
[TD][/TD]
[TD]Hat<strike></strike>
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Hat<strike></strike>
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Hat<strike></strike>
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]scaff<strike></strike>
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]vood<strike></strike>
[/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]