在 excel 文件中,我想从左边重写一个字符串来写
In an excel file I want to rewrite a string from left to write
在我的 excel 文件中有一列包含 123456789
(作为示例)
我想找到一个 excel 函数来将这个字符串重写为 987654321
您需要为此创建一个新的 module
。 (alt+F11 然后右击 'insert new module')
然后你可以在你的模块中写这样的东西:
Function Reverse(str As String) As String
Reverse = StrReverse(str)
End Function
这样您就可以调用 =Reverse(A1)
来反转单元格文本。
在我的 excel 文件中有一列包含 123456789
(作为示例)
我想找到一个 excel 函数来将这个字符串重写为 987654321
您需要为此创建一个新的 module
。 (alt+F11 然后右击 'insert new module')
然后你可以在你的模块中写这样的东西:
Function Reverse(str As String) As String
Reverse = StrReverse(str)
End Function
这样您就可以调用 =Reverse(A1)
来反转单元格文本。