Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Range("B2").Activate ActiveCell.Formula = "=LEFT(I2,IF(ISERROR(FIND(",",I2,1)),LEN(I2),FIND(",",I2,1)-1))"
解決策を投稿した人は数人いますが、私は関連性があると思われるものをすべて試しました。
Formulaと...の切り替えからFormulaR1C1、数式の前後での二重引用符、三重引用符、さらには四重引用符の使用まで。
Formula
FormulaR1C1
この時点での助けは素晴らしいでしょう。
これはあなたのために働くはずです
Range( "B2")。Formula = "= LEFT(I2、IF(ISERROR(FIND(" "、" "、I2,1))、LEN(I2)、FIND(" "、" "、I2,1) -1))」
そうでない場合は、どのバージョンのExcelを使用していますか?