charleymax
New Member
- Joined
- Sep 10, 2010
- Messages
- 39
Hi all,
I want to write a quick macro to run when required... I want it to take a sheet I have in another spreadsheet and take each line where say column C has data in it and copy it once to the new sheet if the cell in column A is either blank or contains a single number without commas. If the cell in column A has 2 numbers seperated by a comma i.e. 16, 17 I need it to copy the row twice and split a value in another column (say column D) between the new rows. So A has "14, 15" and D has "2"... I need 2 new rows with 14 in A for one and 15 in A for the next and for each to have 1 (half of the original 2) in col D....
I want to write a quick macro to run when required... I want it to take a sheet I have in another spreadsheet and take each line where say column C has data in it and copy it once to the new sheet if the cell in column A is either blank or contains a single number without commas. If the cell in column A has 2 numbers seperated by a comma i.e. 16, 17 I need it to copy the row twice and split a value in another column (say column D) between the new rows. So A has "14, 15" and D has "2"... I need 2 new rows with 14 in A for one and 15 in A for the next and for each to have 1 (half of the original 2) in col D....