Excel 2007 几列具有不同的值,找到哪个数字在哪里
我有 6 列,其中最多有 320 个值。我说“最多”是因为每列中的值数量不同,并且列中的值也不同。
像这样:
A 列具有以下值,每个单元格中都有一个值:1,2,3,4,6,8,9
B 列具有以下值,每个单元格中都有一个值:1,3,4,6,7,8,10
我想知道各列之间有哪些数字不同,因此
我想知道 B 列中缺少 2,A 列中缺少 9。
最佳的情况是,如果每个数字可以占一行,并且当缺少时,我只会在该特定列的该行上得到一个空白单元格。 请记住,有 6 列。
这可能吗?有解决方法吗? 我更喜欢在 Excel 中执行此操作,但我可以使用其他解决方案,只要它能解决我的问题即可。
I Have 6 columns where I have up to 320 values. I say up to because the number of values differ in each column and the values also differ in the columns.
Like this:
Column A has the following values, one in each cell: 1,2,3,4,6,8,9
Column B has the following values, one in each cell: 1,3,4,6,7,8,10
etc.
I would like to know what numbers that differ between the columns, so I would like to know that 2 is missing in the B column and that 9 is missing from the A column.
Optimal would be if it were possible to have one line for each number and when there is missing I just get a blank cell on that line in that specific column.
Keep in mind that there are 6 columns.
Is this possible? Is there a workaround?
I would prefer to do this in Excel but I can use other solutions as well as long as it solves my problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我正确理解你的问题,以下内容可能会有所帮助。 (我假设这里没有标题行)
在 G 列中输入数字 1 到 320,例如 1,2,3,4,5,6,...320 - 所以这占用了 320 行。
在单元格 H1 中输入以下内容:
将上述公式拖动到 6 列 - 因此 H1 到 M1,然后选择 6 个单元格 (H1:M1) 并将它们向下拖动到第 320 行。
在缺少的数字单元格中,您将得到一个“#N” /A”显示,因此您可以替换上面的 vlookup 并根据需要使用 if 条件。比如:
希望这有帮助。
If I understand your question correctly the following might help. (I'm assuming no header row here)
In column G put the numbers 1 to 320, e.g. 1,2,3,4,5,6,...320 - so this takes up 320 rows.
In cell H1 put the following:
Drag the above formulae across 6 columns - so H1 to M1 and then select the 6 cells (H1:M1) and drag them down to row 320.
In the missing numbers cells you will get a "#N/A" display so you could replace the above vlookup and use an if condition if you want. Something like:
Hope this helps.