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>
</tbody>
Here is what I am trying to populate by using the Area_Table:
<tbody>
</tbody>
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:
Unique ID | Area 1 | Area 2 | Area 3 | Area 4 | Area 5 |
1001 | Y | N | N | N | Y |
1002 | Y | N | N | N | N |
1003 | N | Y | Y | Y | N |
1004 | Y | Y | Y | Y | N |
1005 | Y | Y | Y | Y | N |
<tbody>
</tbody>
Here is what I am trying to populate by using the Area_Table:
Unique ID | Area | Age |
1001 | Area 1 | 20 |
1001 | Area 1 | 21 |
1001 | Area 1 | 22 |
1001 | Area 1 | 23 |
1001 | Area 1 | 24 |
1001 | Area 1 | 25 |
1001 | Area 5 | 20 |
1001 | Area 5 | 21 |
1001 | Area 5 | 22 |
1001 | Area 5 | 23 |
1001 | Area 5 | 24 |
1001 | Area 5 | 25 |
1002 | Area 1 | 20 |
1002 | Area 1 | 21 |
1002 | Area 1 | 22 |
1002 | Area 1 | 23 |
1002 | Area 1 | 24 |
1002 | Area 1 | 25 |
1003 | Area 2 | 20 |
1003 | Area 2 | 21 |
1003 | Area 2 | 22 |
1003 | Area 2 | 23 |
1003 | Area 2 | 24 |
1003 | Area 2 | 25 |
<tbody>
</tbody>
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!