Excel 4单元格的文本连接
时间:2022-12-05 12:35:15
前提OR要求:A1,B1,C1,D1四个格子中有数,用公式来做文本的自动连接,显示格式 A(B)/C(D)。
若A,B,C,D都为0,啥都不显示。
若C,D同为0,不显示/C(D),即/0(0)不显示;
若A,B中有一个为0一个不为0,不显示为0的项;同理,C,D中有一个为0,一个不为0时,不显示为0的。
具体实现(EXCEL公式):
=IF(AND(A1=0,B1=0,C1=0,D1=0),"",IF(AND(A1=0,B1=0,C1=0,D1<>0),"0/("&D1&")",
CONCATENATE(IF(A1=0,"",A1),IF(B1=0,"","("&B1&")"),IF(AND(C1=0,D1=0),"","/"),CONCATENATE(IF(C1=0,"",C1),
IF(D1=0,"","("&D1&")")))))
实现效果:
总的来说,基本满意。
标签:Excel,4单元格的文本连接
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Word2007带圈字符使用技巧
2023-12-06 15:13:43
![](https://img.aspxhome.com/file/2023/7/19697_0s.jpg)
Excel如何批量创建人名文件夹
2022-06-02 17:34:22
![](https://img.aspxhome.com/file/2023/7/38097_0s.png)
购买新电脑激活office时微软账号出现异常怎么办?
2023-11-05 21:03:55
![](https://img.aspxhome.com/file/2023/2/16542_0s.png)
让Word文档中的文字快速产生表格
2022-02-02 06:10:14
如何将word文档字体整体按缩小比例
2023-11-30 00:37:49
![](https://img.aspxhome.com/file/2023/1/18731_0s.jpg)
Word2007怎样从任意页开始设置页
2023-12-07 13:59:53
![](https://img.aspxhome.com/file/2023/9/20109_0s.jpg)
win10系统通过查看日志检查电脑状态的方法
2023-08-26 23:14:40
![](https://img.aspxhome.com/file/2023/0/46900_0s.jpg)
Word自动编号常见问题解决
2022-12-11 15:30:32
![](https://img.aspxhome.com/file/2023/7/22547_0s.gif)
word怎样添加字体
2023-06-24 06:45:13
word 2013新建一个空白文档的方法
2022-04-06 17:21:12
![](https://img.aspxhome.com/file/2023/8/32888_0s.jpg)
实用却鲜为人知的Word快捷键
2023-11-09 03:36:47
![](https://img.aspxhome.com/file/2023/0/16950_0s.gif)
win7怎么免费升级到win10系统?win7免费升级到win10系统教程
2023-11-11 04:20:28
![](https://img.aspxhome.com/file/2023/1/48551_0s.jpg)
word图片定位
2023-10-15 16:57:54
![](https://img.aspxhome.com/file/2023/7/34747_0s.gif)
wps表格如何恢复菜单栏?
2023-07-29 10:48:17
![](https://img.aspxhome.com/file/2023/1/53621_0s.jpg)
Win10便签纸在哪里打开?
2023-11-14 11:07:33
![](https://img.aspxhome.com/file/2023/9/49349_0s.jpg)
win101903无法更新怎么办?win101903无法更新教程
2023-11-06 21:03:43
![](https://img.aspxhome.com/file/2023/6/47926_0s.jpg)
word怎么把图片或者多个图片组合起来?
2022-11-05 00:59:17
![](https://img.aspxhome.com/file/2023/7/23917_0s.jpg)
win10远程桌面怎么用?win10远程桌面操作方法?
2023-09-29 04:30:35
![](https://img.aspxhome.com/file/2023/3/47333_0s.jpg)
Win10电脑的安全模式有什么用?怎么强制开启Win10电脑安全模式?
2023-11-21 01:20:47
![](https://img.aspxhome.com/file/2023/9/50029_0s.png)
word2010怎么利用加号减号制作表格?
2022-10-17 01:30:56
![](https://img.aspxhome.com/file/2023/4/30204_0s.jpg)