bradenkeith
New Member
- Joined
- May 4, 2014
- Messages
- 32
I am in need of a simplified code that draws data to a series of cells depending on a particular cell's value. To keep things organized, I will illustrate what I need with the following example and figure out the rest on my own.
Imagine there is a line of infinite persons, each person is wearing a hat of a different color, and the purpose of this exercise is to associate the color of a persons hat with their respective place in line. It seems simple enough; however, I need all information consolidated visibly to two cells (A2:B2).
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Place in line[/TD]
[TD]Color of Hat[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10[/TD]
[TD]Blue[/TD]
[/TR]
</tbody>[/TABLE]
A spinner will be used to change the value of cell A2 by increments of 1 (from 1 to infinity), and the code I am looking for must draw data to cell B2 upon activating said spinner. All data will be drawn from the following Table ("Table 1"):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Table 1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Place in Line[/TD]
[TD]Color of Hat[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]2[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]3[/TD]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]4[/TD]
[TD]Brown[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]5[/TD]
[TD]White[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]6[/TD]
[TD]Brown[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]7[/TD]
[TD]Brown[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]8[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]9[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]10[/TD]
[TD]Blue[/TD]
[/TR]
</tbody>[/TABLE]
The tricky part is that I also need to be able to change Cell B2 thereby updating Table 1 with new information. Can it be done?
Imagine there is a line of infinite persons, each person is wearing a hat of a different color, and the purpose of this exercise is to associate the color of a persons hat with their respective place in line. It seems simple enough; however, I need all information consolidated visibly to two cells (A2:B2).
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Place in line[/TD]
[TD]Color of Hat[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10[/TD]
[TD]Blue[/TD]
[/TR]
</tbody>[/TABLE]
A spinner will be used to change the value of cell A2 by increments of 1 (from 1 to infinity), and the code I am looking for must draw data to cell B2 upon activating said spinner. All data will be drawn from the following Table ("Table 1"):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Table 1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Place in Line[/TD]
[TD]Color of Hat[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]2[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]3[/TD]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]4[/TD]
[TD]Brown[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]5[/TD]
[TD]White[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]6[/TD]
[TD]Brown[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]7[/TD]
[TD]Brown[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]8[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]9[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]10[/TD]
[TD]Blue[/TD]
[/TR]
</tbody>[/TABLE]
The tricky part is that I also need to be able to change Cell B2 thereby updating Table 1 with new information. Can it be done?