rappinkapc
New Member
- Joined
- Apr 22, 2009
- Messages
- 1
I want to create a file where data from economics experiments can be entered on several different worksheets, and then a combined on a different worksheet. For example:
Worksheet 1 (Session 1, Round 1)
A
1 Price
2 15
3 14
4 13
5
6
7
etc.
Worksheet 2 (Session 1, Round 2)
A
1 Price
2 20
3 15
4 25
5 40
6
7
etc.
Worksheet 3 (The one I want to be able to create)
A B C
1 Session Round Price
2 1 1 15
3 1 1 14
4 1 1 13
5 1 2 20
6 1 2 15
7 1 2 25
8 1 2 40
The problem is, I don't know how many rows there will be in each worksheet (it varies each time the experiment is run). I am having trouble with two things. First, I can't figure out how to combine the "price" arrays into one array. Second, I can't figure out how to only display the non-null values (e.g. if I define my array for sheet 1 as A2:A40, and there are only 3 values, zeros will be displayed for the remaining values). I hope I am clear. If not, let me know what else I can clarify.
Thanks.
Worksheet 1 (Session 1, Round 1)
A
1 Price
2 15
3 14
4 13
5
6
7
etc.
Worksheet 2 (Session 1, Round 2)
A
1 Price
2 20
3 15
4 25
5 40
6
7
etc.
Worksheet 3 (The one I want to be able to create)
A B C
1 Session Round Price
2 1 1 15
3 1 1 14
4 1 1 13
5 1 2 20
6 1 2 15
7 1 2 25
8 1 2 40
The problem is, I don't know how many rows there will be in each worksheet (it varies each time the experiment is run). I am having trouble with two things. First, I can't figure out how to combine the "price" arrays into one array. Second, I can't figure out how to only display the non-null values (e.g. if I define my array for sheet 1 as A2:A40, and there are only 3 values, zeros will be displayed for the remaining values). I hope I am clear. If not, let me know what else I can clarify.
Thanks.