Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a sheet in which every row needs to be copied to a new sheet, but a
variable number of times. Example (source sheet): Column A Column B "Two" Pete "Three" John "Three" Cindy I want to look at *text* in column A and say "if A1 is Two then copy this row to DestinationSheet 2 times, if text is Three copy 3 times." There will only be 2 or 3 different conditions. When the loop is complete, DestinationSheet would look like: Column A Column B "Two" Pete "Two" Pete "Three" John "Three" John "Three" John "Three" Cindy "Three" Cindy "Three" Cindy What is the most efficient way to do this? Thanks in advance! Patti |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you copy a sheet times 50 | Excel Discussion (Misc queries) | |||
Insert Variable Number of Rows; With Loop | Excel Worksheet Functions | |||
Loop Macro a variable number of times | Excel Discussion (Misc queries) | |||
Loop thru rows to copy to another excel spreadsheet | Excel Worksheet Functions | |||
constructing a copy-paste loop that skips rows | Excel Programming |