Johnsmith999
New Member
- Joined
- Dec 27, 2018
- Messages
- 3
Hi,
I want to set up a simple vlu loop to copy data from one sheet to another
and I want the loop to end when when the loop reaches the end of the list.
let's assume the list of items with prices (columns 1&2) is on sheet 1 and the vlu required (column 3) is on sheet 2
Its early days for me, I am trying to teach myself using utube videos etc. but can't seem to grasp the idea of variables and how they interact with do until, do while, next, etc.
Please help..
[TABLE="width: 323"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]cake[/TD]
[TD="align: right"]0.75[/TD]
[TD][/TD]
[TD][/TD]
[TD]tea[/TD]
[/TR]
[TR]
[TD]chips[/TD]
[TD="align: right"]1.20[/TD]
[TD][/TD]
[TD][/TD]
[TD]sandwich[/TD]
[/TR]
[TR]
[TD]chocolate[/TD]
[TD="align: right"]0.55[/TD]
[TD][/TD]
[TD][/TD]
[TD]pizza[/TD]
[/TR]
[TR]
[TD]crisp[/TD]
[TD="align: right"]0.70[/TD]
[TD][/TD]
[TD][/TD]
[TD]pastie[/TD]
[/TR]
[TR]
[TD]curry[/TD]
[TD="align: right"]2.50[/TD]
[TD][/TD]
[TD][/TD]
[TD]drink[/TD]
[/TR]
[TR]
[TD]drink[/TD]
[TD="align: right"]0.50[/TD]
[TD][/TD]
[TD][/TD]
[TD]curry[/TD]
[/TR]
[TR]
[TD]pastie[/TD]
[TD="align: right"]1.30[/TD]
[TD][/TD]
[TD][/TD]
[TD]crisp[/TD]
[/TR]
[TR]
[TD]pizza[/TD]
[TD="align: right"]1.50[/TD]
[TD][/TD]
[TD][/TD]
[TD]chocolate[/TD]
[/TR]
[TR]
[TD]sandwich[/TD]
[TD="align: right"]1.99[/TD]
[TD][/TD]
[TD][/TD]
[TD]chips[/TD]
[/TR]
[TR]
[TD]tea[/TD]
[TD="align: right"]0.75[/TD]
[TD][/TD]
[TD][/TD]
[TD]cake[/TD]
[/TR]
</tbody>[/TABLE]
I want to set up a simple vlu loop to copy data from one sheet to another
and I want the loop to end when when the loop reaches the end of the list.
let's assume the list of items with prices (columns 1&2) is on sheet 1 and the vlu required (column 3) is on sheet 2
Its early days for me, I am trying to teach myself using utube videos etc. but can't seem to grasp the idea of variables and how they interact with do until, do while, next, etc.
Please help..
[TABLE="width: 323"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]cake[/TD]
[TD="align: right"]0.75[/TD]
[TD][/TD]
[TD][/TD]
[TD]tea[/TD]
[/TR]
[TR]
[TD]chips[/TD]
[TD="align: right"]1.20[/TD]
[TD][/TD]
[TD][/TD]
[TD]sandwich[/TD]
[/TR]
[TR]
[TD]chocolate[/TD]
[TD="align: right"]0.55[/TD]
[TD][/TD]
[TD][/TD]
[TD]pizza[/TD]
[/TR]
[TR]
[TD]crisp[/TD]
[TD="align: right"]0.70[/TD]
[TD][/TD]
[TD][/TD]
[TD]pastie[/TD]
[/TR]
[TR]
[TD]curry[/TD]
[TD="align: right"]2.50[/TD]
[TD][/TD]
[TD][/TD]
[TD]drink[/TD]
[/TR]
[TR]
[TD]drink[/TD]
[TD="align: right"]0.50[/TD]
[TD][/TD]
[TD][/TD]
[TD]curry[/TD]
[/TR]
[TR]
[TD]pastie[/TD]
[TD="align: right"]1.30[/TD]
[TD][/TD]
[TD][/TD]
[TD]crisp[/TD]
[/TR]
[TR]
[TD]pizza[/TD]
[TD="align: right"]1.50[/TD]
[TD][/TD]
[TD][/TD]
[TD]chocolate[/TD]
[/TR]
[TR]
[TD]sandwich[/TD]
[TD="align: right"]1.99[/TD]
[TD][/TD]
[TD][/TD]
[TD]chips[/TD]
[/TR]
[TR]
[TD]tea[/TD]
[TD="align: right"]0.75[/TD]
[TD][/TD]
[TD][/TD]
[TD]cake[/TD]
[/TR]
</tbody>[/TABLE]