* と / がそれぞれ1つずつしかないという前提で。
Sub Sample()
Dim i As Long
Dim buf As Range
Dim spl1, spl2
For i = 3 To 800
Set buf = Cells(i, \u0026quot;X\u0026quot;)
'数式が =IFERROR で始まる場合
If InStr(buf.Formula, \u0026quot;=IFERROR\u0026quot;) Then
'* で分割する
spl1 = Split(buf.Formula, \u0026quot;*\u0026quot;)
' / で分割する
spl2 = Split(buf.Formula, \u0026quot;/\u0026quot;)
'J1の値で挟む
buf.Formula = spl1(0) \u0026amp; \u0026quot;*\u0026quot; \u0026amp; Range(\u0026quot;J1\u0026quot;).Value \u0026amp; \u0026quot;/\u0026quot; \u0026amp; spl2(1)
End If
Next i
End Sub