Aggie81
Try the following:
Sub x()
Dim LR As Integer
LR = Range("A" & Rows.Count).End(xlUp).Row
Dim c As Range
For Each c In Range(Cells(5, 1), Cells(6, 1))
If c.Value <> "" Then c.Offset(0, 2).Formula = "=XLOOKUP(A" + CStr(c.Row) + ",Items[ITEMNO],Items[DESC],"""",0)"
Next c
End Sub