mattloflin
MIS
Hello Everyone!
My task at hand is to copy cells to a different location based off of the information.
I have a template excel file where I copy the data to. The data is two columns and it varies in length.
it looks like:
col1 col2
bk/wh J1-32
wh/bl J2-12
bl/gr J3-27
There are 3 templates J1 Blue in cell B25 J2 Black in B15 and J3 Grey in B1. They all have cells to the right of them labeled 1 to 74.
I need a macro to say:
If col2 = j1 then copy col1 to the corresponding cell beside b25 (which is J1).
So bk/wh would be copied in the J1 template at the 32 number.
I have attached a file so download it and stuff. I can do all the formatting I just can't wrap my mind around the checking the number things.
The ranges can be set and all that however the col 1 will change in length and color and what cells correspond to what so it has to be an if statement or a for loop or something.
- Matt
"Never Give a Sword to a Man Who Can't Dance
My task at hand is to copy cells to a different location based off of the information.
I have a template excel file where I copy the data to. The data is two columns and it varies in length.
it looks like:
col1 col2
bk/wh J1-32
wh/bl J2-12
bl/gr J3-27
There are 3 templates J1 Blue in cell B25 J2 Black in B15 and J3 Grey in B1. They all have cells to the right of them labeled 1 to 74.
I need a macro to say:
If col2 = j1 then copy col1 to the corresponding cell beside b25 (which is J1).
So bk/wh would be copied in the J1 template at the 32 number.
I have attached a file so download it and stuff. I can do all the formatting I just can't wrap my mind around the checking the number things.
The ranges can be set and all that however the col 1 will change in length and color and what cells correspond to what so it has to be an if statement or a for loop or something.
- Matt
"Never Give a Sword to a Man Who Can't Dance