我已将文本从 pdf 文件复制到 Excel(2010)。我使用“文本到列”来创建单独的列。
现在我已经完成了这部分任务,我想将另一段文本粘贴到同一个文件中。
但现在 Excel 直接使用我用来分割这个新文本的文本到列,我现在(显然)不想分割它。我尝试将文本粘贴到新工作表上。我尝试将这段文本粘贴到新的工作簿中,但文本仍然被excel直接分割。
我尝试粘贴为文本,并尝试粘贴为 Unicode 文本。但到目前为止,我还没有找到解决这个问题的方法。如何让 Excel“忘记”它已将文本拆分为列?
我想检查列D到O中的所有单元格.如果单元格为空,则用硬零替换它.
我有这个代码:
Sub replace()
Dim rng As Range, cell As Range
Dim aantalrijen As Long
With Worksheets("Schaduwblad")
aantalrijen = .Range("A1", .Range("A1").End(xlDown)).Cells.Count - 1
Set rng = .Range(.Cells(2, "D"), .Cells(aantalrijen, "O"))
For Each cell In rng
cell = WorksheetFunction.Substitute(cell, "", "0")
Next
End With
End Sub
Run Code Online (Sandbox Code Playgroud)
此代码在处理期间挂起.只有选项是按Escape结束例行程序.
是否可以在匹配公式中使用空单元格?
我的单元格A3中有一个值.我想使用矩阵A4:A13(或任何其他矩阵)中的"匹配"来搜索此值.但是,在这种情况下,单元格A4是空的(我无法帮助它,这是从另一个程序返回数字的方式).为了能够在这个矩阵中搜索,我想我可以用{empty}替换A3中的值.代替作品.但是,匹配公式不起作用.
那么实际的公式是:
=match("";A4:A13;0)
我无法更改搜索范围内的空单元格.给出了一个.还有什么我可以做的才能使这项工作?
编辑:
这是我的文件的目标:我有一个仪表板,上面有数字.在此表中,在A栏中有第一个:帐户名称,品牌1,品牌2,品牌3,品牌4,品牌5(如果适用),A.VOGEL,OTHER(帐户总数的结果减去所有的总和)品牌).
所以在这种情况下,单元格A3:A10.这些数字来自不同的表格.这个输出如下:
a1 = account name (other cells in this row are empty
a2 = empty, b2 contains a value that cannot be used, c2 shows the brand name (and because in this case, it represents the account total and no brand, c2 is empty) and from D2 : L2, there are values, corresponding to the given value in a1.
a3 = empty, b3 contains a value that cannot be used, c3 has the …