当前位置:网站首页>How to merge multiple columns in an excel table into one column
How to merge multiple columns in an excel table into one column
2022-07-27 08:31:00 【Sizchristov】
Catalog
Method 1 : For the case of small amount of data , Consider the following methods :
Method 2 : When the amount of data is too large or there are multiple tables to fill
Method 1 : For the case of small amount of data , Consider the following methods :
Step one : Set in the bottom cell of the first column
,B1 Indicates the first data position in the next column to be filled

Step two : Fill right first to the last column , Fill down again until the first column appears 0 until .


Step three : Delete redundant columns and 0, Just keep the first column .
Method 2 : When the amount of data is too large or there are multiple tables to fill
The method of manual filling is no longer applicable , At this time, the following function method can be considered , You need to ensure that all columns of the dataset have the same number of rows ( This function is verbose , Further optimization is needed , If the number of lines is not the same, you can refer to the following method ):
Step one : Insert a new column before the first column , And set enough serial numbers .

Step two : First, leave a row at the bottom of the data to be merged , At the same time, in the second column of data (C Column ) Enter the relative position of the second column of data cells to be copied in the lower space of the blank row (C1), Finally, in this cell (C1) Enter the following function below , And set the parameters XX and NUM Back carriage return :
=IF(ISBLANK(INDIRECT(ADDRESS(ROW(INDIRECT(XX))+1,COLUMN(INDIRECT(XX)),4)))=TRUE,ADDRESS(ROW(INDIRECT(XX))-NUM,COLUMN(INDIRECT(XX))+1,4),ADDRESS(ROW(INDIRECT(XX))+1,COLUMN(INDIRECT(XX),4)) function
Used to determine whether the cell is empty . function
Reference text format address C1 The data of . function
Convert the specified rows and columns to cell relative addresses (C2), function
Output the number of rows and columns of cells at the specified address , The number NUM Represents the total number of rows in the dataset minus one , In this case NUM=5.XX Indicates the first reference address , In this case XX=C8.
The logic of the whole function is : According to the given cell relative address , Judge whether the cell below it is empty , If not, the cell coordinates of the next grid will be output , If yes, the relative coordinates of the first cell in the right column of the column will be output . The offset value here can be set freely as needed .

Step three : double-click C9 The cross in the lower right corner is quickly filled . After filling, fill in B Column and starting position after filling B8 Input function at
Then enter and fill quickly . Finally, keep the filled data in text format or numerical format , Delete extra columns and blank rows .

If the number of rows in each column of the data set to be merged is not the same ( Here's the picture ), Consider using the following replacement formula :

NUM=COUNTA(INDIRECT(ADDRESS(1,COLUMN(INDIRECT(XX))+1,4)):INDIRECT(ADDRESS(10000,COLUMN(INDIRECT(XX))+1,4)))The formula will NUM Value is replaced by the number of all non empty data in the right column under the current cell .
边栏推荐
- Process control - Branch
- Solve the problem of slow batch insertion of MySQL JDBC data
- All in one 1329 cells (breadth first search)
- After installing mysql, docker entered the container and found that he could not log in to MySQL
- 虚拟机克隆
- Download and usage of sequel Pro
- sql_ Mode strict mode (ansi/traditional/strict_trans_tables)
- Day3 -- flag state holding, exception handling and request hook
- QPushButton 按钮的创建与简单应用
- 带宽 与 货币
猜你喜欢

QT creator code style plug-in beautifier

情人节,我用字符画出了一个对象!

Virtual machine cloning

Realization of backstage brand management function

Day4 --- flask blueprint and rest ful

信息化项目风险控制与应用

ERP production operation control Huaxia

Breadth first search

How to view instances of software objects in QSIM?

Process control - Branch
随机推荐
It's better to be full than delicious; It's better to be drunk than drunk
List delete collection elements
JS basic knowledge - daily learning summary ①
CMD command and NPM command
SSTI template injection
File name wildcard rules for kettle
Chapter 2 foreground data display
无法获取下列许可SOLIDWORKS Standard,无法找到使用许可文件。(-1,359,2)。
Explain cache consistency and memory barrier
ROS2安装时出现Connection failed [IP: 91.189.91.39 80]
Initial summary of flask framework creation project
openGauss之TryMe初体验
Binglog backup data
docker 安装mysql后进入容器内部发现登录不了mysql
[netding cup 2020 Qinglong group]areuserialz (buuctf)
Background order management
MCDF顶层验证方案
Containerd failed to pull private database image (kubelet)
Realize SPU management in the background
Stored procedure test 1 -- first acquaintance of love