如何将单元格中的第一个文本标识为数字或文本,并在Excel中进行交换

[英]How to identify the first text in a cell as a number or text and swap them in Excel


I have a cell containing the following text: B 624. i need to swap the text to: 624 B. There are many instances where this occurs, some with other text like: E 625 that i also need to swap.

我有一个包含以下文本的单元格:B 624.我需要将文本交换到:624 B.有很多情况发生这种情况,其中一些文本如:E 625我还需要交换。

1 个解决方案

#1


With data in A1 in B1 enter:

使用B1中A1中的数据输入:

=MID(A1,FIND(" ",A1)+1,9999) & " " & LEFT(A1,FIND(" ",A1)-1)

This assume that there are two parts separated by a single space.

这假设有两个部分由单个空格分隔。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2015/05/05/6fd865113ac69774567213154f4c8029.html



 
  © 2014-2022 ITdaan.com 联系我们: