Hello,
I am trying to populate some data by relying on a table I have named Area_Table. Here is what the table looks like:
<tbody>
[TD="class: xl65"]Unique ID[/TD]
[TD="class: xl66, width: 64"]Area 1[/TD]
[TD="class: xl66, width: 64"]Area 2[/TD]
[TD="class: xl66, width: 64"]Area 3[/TD]
[TD="class: xl66, width: 64"]Area 4[/TD]
[TD="class: xl66, width: 64"]Area 5[/TD]
[TD="class: xl66"]1001[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]1002[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]1003[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]1004[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]1005[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
</tbody>
Here is what I am trying to populate by using the Area_Table:
[TABLE="width: 205"]
<tbody>[TR]
[TD]Unique ID[/TD]
[TD]Area[/TD]
[TD]Age[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]25[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, for each unique ID in the Area_Table, I want to populate ages 20-25 for all of the 'Y' areas. The 'N' areas are NOT populated. The hope is that a simple click of a button will populate the data for me. I assume since I am relying on a table, that the range will become dynamic, which will allow me to add/remove unique IDs pretty easily. I'm hoping a simple macro can address this problem since I have a lot of data to populate. Any ideas?
Thanks so much for the help!
I am trying to populate some data by relying on a table I have named Area_Table. Here is what the table looks like:
<tbody>
[TD="class: xl65"]Unique ID[/TD]
[TD="class: xl66, width: 64"]Area 1[/TD]
[TD="class: xl66, width: 64"]Area 2[/TD]
[TD="class: xl66, width: 64"]Area 3[/TD]
[TD="class: xl66, width: 64"]Area 4[/TD]
[TD="class: xl66, width: 64"]Area 5[/TD]
[TD="class: xl66"]1001[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]1002[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]1003[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]1004[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
[TD="class: xl66"]1005[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]Y[/TD]
[TD="class: xl66"]N[/TD]
</tbody>
Here is what I am trying to populate by using the Area_Table:
[TABLE="width: 205"]
<tbody>[TR]
[TD]Unique ID[/TD]
[TD]Area[/TD]
[TD]Age[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 1[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]Area 5[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]Area 1[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]Area 2[/TD]
[TD]25[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, for each unique ID in the Area_Table, I want to populate ages 20-25 for all of the 'Y' areas. The 'N' areas are NOT populated. The hope is that a simple click of a button will populate the data for me. I assume since I am relying on a table, that the range will become dynamic, which will allow me to add/remove unique IDs pretty easily. I'm hoping a simple macro can address this problem since I have a lot of data to populate. Any ideas?
Thanks so much for the help!