bonjour,
une proposition via une macro
Sub aargh()
With Sheets("feuil2")
dl = .Cells(Rows.Count, "O").End(xlUp).Row
For i = 16 To dl
r = .Cells(i, "R")
s = .Cells(i, "P")
t = .Cells(i, "Q")
If r = 1 Then
.Range(t).Value = .Range(s).Value
ElseIf r = 0 Then
Set re = .Range("D23:M34").Find("", lookat:=xlWhole, after:=.Range("M34"))
If Not re Is Nothing Then
re.Value = .Range(s).Value
.Range(s) = ""
End If
End If
Next i
End With
End Sub
lancer la macro via alt-F8