EXTRACT TEXT
Posted: Sat Jun 10, 2023 6:21 am
Hi Dear
I need your help how to write code to extract text from mixed number and text.
I have a code below.any one can help with simplified code
As well as provide me with excel 365 formula as well.
Thanks
I need your help how to write code to extract text from mixed number and text.
I have a code below.any one can help with simplified code
Code: Select all
Sub MyMacro()
Sheets("Sheet1"). Select
' Find last row in column D with data
lr = Cells(Rows.Count, "D").End(xlUp).Row
' Enter formulas
Range("F2:F" & lr).FormulaR1C1 = "=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(RC[-2],1,""""),2,""""),3,""""),4,""""),5,""""),6,""""),7,""""),8,""""),9,""""),0,"""")"
End Sub
Thanks