简体   繁体   English

将数据从B,C,D列移到A列-Excel

[英]Move data from columns B,C,D.. to column A - excel

我已经在B1-B20,C1-C20,D1-D20列中获取了数据。我想将其移动到A列中吗?是否有一种自动方法可以在excel中执行此操作而不使用VBA?

Moving it would require a macro 移动它需要一个宏

Getting it in A could work with a formula such as the following in A1, then copied down. 将其放入A中可以使用公式,例如A1中的以下公式,然后将其复制下来。

=OFFSET($A$1,MOD(ROW()-1,20),1+INT((ROW()-1)/20))

Here is a quick and dirty way of doing it. 这是一种快速而肮脏的方法。 It utilized INDIRECT() . 它利用了INDIRECT()

=IF(ROW()<=20,INDIRECT("B"&ROW()),IF(ROW()<=40,INDIRECT("C"&ROW()-20),INDIRECT("D"&ROW()-40)))

Here is an example that does the same thing except I have 3 rows instead of 20. 这是一个执行相同操作的示例,除了我有3行而不是20行。

在此处输入图片说明

Edit: @nutsch has a more efficient solution 编辑: @nutsch有一个更有效的解决方案

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

相关问题 如何查找A列中的重复行并将B列中的相应数据放入转置的C和D列中? - Howto lookup repeating rows in Column A and place the corresponding data from column B into transposed columns C & D? 需要Excel VBA列B和C或列D - Excel VBA Columns B and C OR Column D required 将所有@mentions和#hashtags从A列复制到Excel中的B和C列 - Copying all @mentions and #hashtags from column A to Columns B and C in Excel Excel-过滤列A中的唯一值并将相关值从列B中移动到其他列 - Excel - Filter unique values from Column A and move related values from Column B to other columns 将B列的拆分数据粘贴到D&E列中 - Pasting Split Data From Column B into Columns D & E 我有一个 Excel 表,它有 3 列 AB C 列,我希望 D 列是 RGB(A,B,C) 的颜色 - I have an Excel sheet that has 3 columns A B C columns and I want the D column to be the color of RGB(A,B,C) Excel IF A1是否存在于B列中,则C = D - Excel IF A1 exist in column B, then C = D Excel-如何比较2列中的单元格,如果B列匹配,则使用B列中匹配单元格旁边的C列中的值? - Excel - How to Compare Cells from 2 Columns then if Column B Matches, Use the Value in Column C next to the Matching Cell in Column B? 比较两列 A 和 B 以获取 3 列 C、D 和 E 中的数据 - Compare two columns A and B to get data in 3 columns, C,D & E VBA Excel-从列C提取数据并放入列D - VBA Excel - Extract data from Column C and place into Column D
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM