Excel运用公式设置单元格文本连接
时间:2023-06-06 18:24:33
前提要求: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运用公式设置单元格文本连接
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10创意者更新15063.483更新补丁KB4025342下载地址 X86/X64
2023-02-08 23:41:51
![](https://img.aspxhome.com/file/2023/29/a260531_0s.jpg)
WPS word中的表格如何设置长和宽的数值?
2022-02-01 12:32:48
![](https://img.aspxhome.com/file/2023/4/a186154_0s.png)
Win10 20h2怎么开启蓝牙?
2023-05-25 03:50:36
![](https://img.aspxhome.com/file/2023/26/a223920_0s.jpg)
word 如何批量把蓝色的字体改成红色的字体
2023-04-27 06:17:00
![](https://img.aspxhome.com/file/2023/7/35607_0s.png)
win10怎么查找蓝牙设备_win10查找蓝牙设备教程
2023-11-04 18:02:31
![](https://img.aspxhome.com/file/2023/3/a300575_0s.jpg)
在wps文字中怎么输入上下标
2022-11-16 11:04:17
EXCEL中如何横向输入数据?横向输入数据的2种方法
2023-03-23 14:22:23
![](https://img.aspxhome.com/file/2023/6/42816_0s.jpg)
win7如何安装打印机 win7安装usb打印机问题分析及解决
2022-02-02 18:23:06
![](https://img.aspxhome.com/file/2023/29/a257733_0s.jpg)
word怎么删除取消页码?
2022-11-13 22:24:26
![](https://img.aspxhome.com/file/2023/9/33659_0s.jpg)
在PPT中插入可编辑的EXCEL图表
2023-05-24 16:09:03
![](https://img.aspxhome.com/file/2023/6/37916_0s.jpg)
怎么设置bios硬盘启动
2022-09-06 05:15:18
![](https://img.aspxhome.com/file/2023/2/a287542_0s.png)
不用软件如何清理Win10电脑缓存?
2022-02-22 12:28:36
![](https://img.aspxhome.com/file/2023/26/a220147_0s.jpg)
Win10专业版powershell怎么打开?
2023-02-25 09:47:49
![](https://img.aspxhome.com/file/2023/26/a223207_0s.png)
Win10专业版无internet安全怎么办?
2022-09-07 14:37:33
![](https://img.aspxhome.com/file/2023/26/a222238_0s.png)
win10新增哪些emoji表情 win10新增"竖中指"emoji表情汇总
2022-08-22 11:25:00
![](https://img.aspxhome.com/file/2023/28/a250355_0s.jpg)
Word2007:SmartArt图形样式的选择
2023-05-20 20:02:13
![](https://img.aspxhome.com/file/2023/6/25286_0s.jpg)
将Word2010文档直接保存为PDF文件
2023-12-14 00:13:32
![](https://img.aspxhome.com/file/2023/9/21779_0s.jpg)
Windows10系统启用管理员账户的步骤
2023-06-23 02:35:45
![](https://img.aspxhome.com/file/2023/26/a226612_0s.jpg)
ppt怎么绘制减速慢行的警示牌标志?
2023-04-15 21:44:58
![](https://img.aspxhome.com/file/2023/10/a345811_0s.jpg)
win10手机预览版已知bug汇总(附解决方法)
2022-11-18 11:15:56
![](https://img.aspxhome.com/file/2023/29/a251758_0s.png)