excel - How to separate different data types of values in a column in Excel
问题描述
I have an Excel problem, and I hope everyone can help me with it. Thank you.
So I have a column as below full of phone numbers and full names:
*People had option to put their full names or just their phone numbers when joining a Zoom meeting.
Full_Name | Department |
---|---|
14044445555 | A |
Bob Max | A |
16788889999 | B |
Sarah Harrison | C |
How can I separate them into a table as below:
First_Name | Last_Name | Phone_Number | Department |
---|---|---|---|
14044445555 | A | ||
Bob | Max | A | |
16788889999 | B | ||
Sarah | Harrison | C |
I have tried to use "Text to Columns", but it only worked with people who put their full names.
Thank you very much.
解决方案
If you want to do it by formulas only then add three columns before department. As per my below screenshot use formulas like
B2=IF(ISNUMBER(A2),"",TRIM(LEFT(SUBSTITUTE(A2," ", REPT(" ",100)),100)))
C2=IF(ISNUMBER(A2),"",TRIM(RIGHT(SUBSTITUTE(A2," ", REPT(" ",100)),100)))
D2=IF(ISNUMBER(A2),A2,"")
Then drag down and across right as needed.
推荐阅读
- python-3.x - 检查消息回复是否为回复类型消息 discord.py
- amazon-web-services - 如何查找未在 Terraform 代码中使用的所有 tfvars 变量的列表?
- c# - 获取字节值作为字符串
- r - QCC 包中的违规运行
- python - python pyinstaller --noconsole 和 --windowed 之间的区别
- amazon-web-services - 监控 AWS S3 复制
- python - 如何使用 torchtext 拆分我的数据集?
- javascript - React jsx 不从 fetch 渲染音频源文件
- python - 我该如何调试?RuntimeError:梯度计算所需的变量之一已被就地操作修改
- google-sheets - 具有多组信息的条码,能够自动标记