简体   繁体   English

如何将数据从一列移动到另一列而不覆盖目标列中的现有值

[英]How to move data from one column to another without overwriting existing values in destination column

I'm hoping this is so simple I'm just over-looking the obvious answer, I want to move the values (pictured) in column A, en-masse.我希望这很简单,我只是忽略了明显的答案,我想整体移动 A 列中的值(如图)。 to the blank cells in column B without overwriting the existing values in column B. Note that the data in column B has differing number of rows?到 B 列中的空白单元格而不覆盖 B 列中的现有值。请注意,B 列中的数据具有不同的行数? Any ideas?有任何想法吗?

enter image description here在此处输入图像描述

There are a couple of options to do this:有几个选项可以做到这一点:

Option 1选项1

  • Place a filter onto the data在数据上放置一个过滤器
  • Filter column B for blank values过滤 B 列的空白值
  • Enter a formula into B1 that is =A1在 B1 中输入公式 =A1
  • Drag this down to the bottom of your cells将其拖到单元格的底部
  • Set the filter for all values为所有值设置过滤器
  • Select the whole of column B Select B栏全
  • Copy and Paste the data as values将数据复制并粘贴为值

Option 2选项 2

  • Create a new column after B在 B 之后创建一个新列
  • In this column enter the following formula - =IF(B1="",A1,B1)在此列中输入以下公式 - =IF(B1="",A1,B1)
  • Drag this down to the bottom of your data将其拖到数据的底部
  • Select the whole of column B Select B栏全
  • Copy and Paste the data as values将数据复制并粘贴为值
  • Delete column B删除 B 列
  • Column C then becomes column B C 列然后变为 B 列

I knew I was missing something...Copy Column A, highlight column B, 'Paste special', tick 'Skip blanks' checkbox and done.我知道我遗漏了一些东西......复制A列,突出显示B列,“粘贴特殊”,勾选“跳过空白”复选框并完成。 Many thanks for reading.非常感谢您的阅读。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在两张Excel工作簿之间将数据从一列复制并粘贴到另一张……而不会覆盖目标列的内容。 - how to copy & paste the data from one column to another between two sheets of excel workbook…without overwriting the destination column content..? 将值从一列移动到另一列 - Move values from one column to another column Excel:如何将数据从一列移动到另一列 - Excel: How to move data across from one column to another column 只需要将一个范围内的值复制到另一个范围内,而不会覆盖现有数据 - Need to copy only values from one range into another without overwriting existing data 如何在python中将选定的数据从一列移动到另一列 - How to move selected data from one column to another in python 将部分数据从Excel中的一列移至另一列 - Move partial data from one Column two another Column in Excel 如何使用python将数据从一个工作表添加到另一个工作簿中的现有工作表而不覆盖其他工作表的数据? - How to add data using python from one sheet to an existing sheet in another workbook without overwriting other sheet's data? 如何在获取每条记录的绝对值的同时从一列中获取值并移动到另一列? - How to take values from one column and move to another column while getting the absolute value of each record? 如何将特定数据从一列移动到 Pandas 上的新列? - How to move specific data from one column to a new column on Pandas? 如何将一列中的值应用于过滤数据中的另一列 - How to apply values in one column to another column in filtered data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM