Hello I have a list of names in a sheet called "List" and a list of IDs given. I am trying to use VBA to take that list of names and copy it into another sheet called "Output" and and paste it in column A starting at row 3 and do it X amount of times and X is the number of IDs so if there is two IDs given then the list of names is pasted twice and also the first paste has the first ID and the second time pasting it has the second ID and the ID goes two columns over in column C.
There is also formulas in column B and D and trying to get those to go down with the list as well, the formula for column B is =IF(A3<>"","Go","")
and in column C the formula is =IF(A3<>"","ACT","")
here is an example of a list of names and a list of ID provided
there are 4 names and 2 ideas so when pasting there should be, at least from this example the four names with ID 12345 and that would be from A3 to A6 since there is 4 names and the same ID 12345 should be with those names from C3 to C6.
and since there is 2 ID there the same list of names is used and put into the next open cell open in A so in this example case A7 to A10 and the second ID 54321 is put two columns over in column C from C7 to C10. Would consider that there can be X amount of names and V amount of IDs so considering for name from A2 to the last row used in that column and the IDs from C2 to the last row used in that column
here is an example output from the example list
thank you in advance!
There is also formulas in column B and D and trying to get those to go down with the list as well, the formula for column B is =IF(A3<>"","Go","")
and in column C the formula is =IF(A3<>"","ACT","")
here is an example of a list of names and a list of ID provided
there are 4 names and 2 ideas so when pasting there should be, at least from this example the four names with ID 12345 and that would be from A3 to A6 since there is 4 names and the same ID 12345 should be with those names from C3 to C6.
and since there is 2 ID there the same list of names is used and put into the next open cell open in A so in this example case A7 to A10 and the second ID 54321 is put two columns over in column C from C7 to C10. Would consider that there can be X amount of names and V amount of IDs so considering for name from A2 to the last row used in that column and the IDs from C2 to the last row used in that column
here is an example output from the example list
thank you in advance!