I have an Excel file like this:
Code: Select all
LINE# PLANTS FRUITS
Line1 3 2
Line2 2 3
Line1
Plant1
Fruit1
Line1
Plant1
Fruit2
Line1
Plant2
Fruit1
etc.
How can I do that?
Can you provide me with an example?
Thank you.
Code: Select all
LINE# PLANTS FRUITS
Line1 3 2
Line2 2 3
Code: Select all
fruit=fruit+1;
if (fruit>5)
{plant=plant+1;
fruit=1;}
if (plant>6)
{plant=1;
fruit=1;}
[code]
Thanks.