Using excel to connect strings is a commonly used technique in our daily work. I believe that the most commonly used connection method is "&". But in fact, there are many ways to connect strings in excel, and the seemingly inconspicuous connection string has magical effects in some specific occasions. Are you curious? Hurry up and follow the author's instructions in Picture E and take a look!
[Foreword]
In the actual application of using EXCEL, we often use it for statistical convenience , if the data elements are divided into more details, the statistics will have more dimensions. Similarly, sometimes we also need to split very detailed content and merge it into one content and put it in a cell, maybe for reference, maybe for identification or reading. Let’s take a common small example - such as "Daily Data Report".
For the convenience of statistics, we will definitely make the content in 1:2 lines; but if the leader needs us to make a report, it is recommended to make it in 5:8 lines. This makes it more readable.
[Text]
In order to use EXCEL to deal with such problems more conveniently, EXCEL has prepared many methods for us——&, CONCATENATE and PHONETIC functions are used to handle it, and there will also be some "external force" methods to solve it. Today we will use the same simulation data to introduce it to everyone separately, hoping that students will not be in a hurry when encountering similar problems.
[Data source]
Data source processing requirements: connect the values of each field to form The new string is filled in column H.
Our simulation data adopts the format of "pure numbers". In order to facilitate the versatility of string connection, we also use the "one-digit" method, so that everyone can understand a certain number in it. It can also be a string that needs to be connected. Before looking at the following content, first think about how we will solve it. Learning with thinking will be of great benefit to students in absorbing knowledge and applying functions flexibly.
【Solution】
Method 1
I2 cell function:
=A2&B2&C2&D2&E2&F2&G2
This should be the most commonly used method of connecting strings by students. There is not much to introduce.
Method 2
I2 cell function:
=CONCATENATE(A2,B2, C2,D2,E2,F2,G2)
The CONCATENATE function can connect up to 255 parameters, and the total number of characters must not exceed 8192. In the EXCEL365 version, there are several new functions, among which the CONCAT function is an upgraded version of the CONCATENATE function. However, because higher versions of EXCEL are not yet so popular, we will not talk about these things that cannot be tested by everyone.
In addition, many people say that the EXCEL2016 version has these new functions TEXTJOIN, CONCAT, IFS, DATESTRING, NUMBERSTRING, IFS, MINIFS, and MAXIFS, but according to the author’s E diagram, not all of them The EXCEL2016 version has these functions. It is said that these functions were included in the EXCEL2016 version during testing, but after the EXCEL365 version was released, they were canceled in EXCEL2016. I don’t know, but if you have the conditions, it is still recommended to use a higher version of EXCEL so that you can try many new functions.
Method 3
I2 cell function:
{=SUM(A2:G2 *10^(COUNTA(A2:G2)-COLUMN(A:G)))}
This is an array function. You need to press "CTRL SHIFT ENTER" three times after entering the function. The key ends function entry and only applies to data sources with a single digit in the cell.
Function analysis:
This function uses mathematical thinking, taking the first row of data as an example, the idea is as follows:
Then let’s see what the rules are for the corresponding “0” on each bit, and whether our function perfectly meets my requirements:
From the above table, we can see that the COUNTA(A2:G2)-COLUMN(A:G) function can help us calculate how many 0s there will be in each digit. Using 10^ (^ is The meaning of exponentiation is equivalent to the usage of the POWER function) to determine which digit the number in each field is. For example, 10^6, which is 10 raised to the 6th power, is equal to 1000000. The overall function is listed in the following table:
Field name |
corresponding value |
multiplied by the corresponding number of digits |
##corresponding product |
Field 1 | 7 | ##10000007000000 | |
8 |
##100000 |
800000 |
Field 3 |
6 |
10000 |
##60000 | ##Field 4 |
1000 | 4000 | #Field 5 | |
100 | 000 |
||
Field 6 |
4 |
10 |
40 |
##Field 7 | 4 | 1 | 4 |
The above is the detailed content of Practical Excel skills sharing: the magical use of connection strings!. For more information, please follow other related articles on the PHP Chinese website!

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software