I have this code below, but instead of print the contents of A1 (i.e. CELL(""contents"", A1)), I would like the leftmost characters of A1 before the first space. Please advise.
With Workbooks("Book1").Worksheets("Sheet2").Range("C1:C" & i)
.Formula = "=IF((IF((CONCATENATE(IF(LEFT(TRIM(A1),1)=""R"",""TRUE"",""FALSE""), ISNUMBER(VALUE(MID(A1,2,1)))))=""TRUETRUE"",1,2))=1,**CELL(""contents"", A1)**,CELL(""contents"", B1))"
.Value = .Value
End With