I am having difficulties in trying to loop my cell column values to fulfill a series that copies data depending on the count of data. This is what I need to do
A1 AA B1 2 C1 AA
A2 AA B2 2 C2 AB
A3 AB B3 2 C3 AC
A4 AB B4 1 C4 AD
A5 AC B5 C5
A6 AC B6 C6
A7 AD B7 B7
- Column B tells how many times C will show in A
- I need to loop Columns B and C to create the series in Column A
How can I loop through cells to display the values in series while ignoring the blank cells?
I tried looping one cell, but I cannot create a loop through each cell.
Sub loop_cells()
Dim var As Long
Set Rng = Range("C1")
var = Range("B2").Value
i = 1
Do Until i = var
Range("A1:A" & var).Value = Rng
i = i + 1
Loop
End Sub