Hi Luke,
The values in column C on sheet 1 depends on Age and actual relation of these values with Age is very complex. However for a prototype I have updated the excel file and the same is attached here. In this excel file please refer to sheet 1. Cell B6 has value for variable Age. Depending on this Age, values in C12 to C17 is calculated (you can see the formula in these cells). Now please go to sheet 2 on which there is a table. In this table Column A has possible values for Age (12 to 27). The task is to pick the values of Age one by one. For Example, lets first pick the value 12 for Age which is in row 9. Put this value of Age (12) in Cell B6 on sheet 1. Then some values will be generated in C12-C17 (on Sheet 1). Then I have to copy only those values for which status is "Yes" (In this case I have to copy values in Cells C12, C13, C15 and C17). Then I have to paste these values in row 9 in table on Sheet 2 i.e. in front of Age 12. Then this whole process is to be repeated for all values of Age (i.e. from Age =12 to Age =27). Note that the status (Yes/No) in Column B on sheet 1 is to be filled by user and hence can be changed by user.
Since I have to repeat the process for Age =12 to Age = 27, I thought that for any value of Age, whatever value is generated in Cells C12-C17 on sheet 1, I should copy those value which have status "Yes" in column H under heading Desired Value on Sheet 1. Then I can copy this entire range under heading Desired Value and paste (transpose) in table on sheet2.
Please let me know that whether this explains what I want? If yes, please suggest the method/code
Thanks
Brijesh
Put this value in Cell B6 on sheet 1. Then for that value of age some values will be generated in C12 to C17 (on sheet 1). Next thing is to copy those values from C12-C17 for which status is "Yes" and then paste it to the row in t