I have this table which transposes cells based on value, if B2 = True then C2 copies to K2, J2 copies to L2 ELSE C2 copies to M2.
How do I make all ELSE conditions to write at the M column in the Row with the TRUE condition to the same cell adding on next line?
Here is the image, output of the code is green, and the yellow cell is what I wanted to happen.
Public Sub SetCellValues()
Dim colB As Integer
Dim I As Integer
colB = Cells(Rows.Count, 2).End(xlUp).Row
For I = 2 To colB
'If a match is found:
If Worksheets("Sheet1").Cells(I, 2) = "User Story" Then
' Copy
Worksheets("Sheet1").Cells(I, 11) = Worksheets("Sheet1").Cells(I, 3)
Worksheets("Sheet1").Cells(I, 12) = Worksheets("Sheet1").Cells(I, 10)
Else
'Can we make all 'issue' titles line up in one cell at the 'user story' rows above it?
Worksheets("Sheet1").Cells(I, 13) = Worksheets("Sheet1").Cells(I, 3)
End If
Next I
End Sub


