例如,我的Cell A1有“4,0,0,0,4”,我想知道我是否可以在B中输入一个公式来吐出“4”。
+==================================================+===================================+
| Col A - Source | Col B - Result on referencing Col A
+==================================================+===================================+
| 4, 0, 0, 0, 4 | 4 |
+--------------------------------------------------+-----------------------------------+
| 268, 0, 0, 0, 268 | 268 |
+--------------------------------------------------+-----------------------------------+
| 282, 283, 0, 0, 0, 0 | 282, 283 |
+--------------------------------------------------+-----------------------------------+
| 0, 0, 0, 0, 0 | |
+--------------------------------------------------+-----------------------------------+
| 0, 0, 4324, 4325, 4326, 0, 4324 | 4324, 4325, 4326 |
+--------------------------------------------------+-----------------------------------+
| 450, 1307, 1308, 1309, 1310, 1321, 0, 0, 0, 1309 | 450, 1307, 1308, 1309, 1310, 1321 |
+--------------------------------------------------+-----------------------------------+
答案 0 :(得分:0)
您可以使用此公式=SUBSTITUTE(A2&",","0,","")
删除零,但是您需要使用一些VBA或删除重复按钮来删除重复值。
另一种方法是应用"数据" => "列中的文字"到A列然后提取最大值。这将忽略零并为每行提取一个数字。但是不会提取多个值,例如282, 283
。