In some cases, you may want to obtain a specific segment from a field.
For example, you may want to obtain the last few characters of fixed length from a string. The following figure shows the effect.
You can use the Split Field function to split the field with one click, or use the text functions to obtain specific characters from a field.
You can download the sample data Supplier Info.xlsx.
Choose More > Split Field on the data editing page to enter the function page, as shown in the following figure.
Split the field by the separator (-) and enter 2 in Split Result, as shown in the following figure.
Taking the RIGHT function as an example, you can obtain the last eight digits of Phone Number to create the RIGHT Function field.
1. Create an analysis subject with the sample data Supplier Info, click Field Settings, and select the Contact Name and Phone Number fields, as shown in the following figure.
2. Click Formula Column and add the RIGHT Function column using the RIGHT function. The obtained column returns the last eight digits of phone numbers, as shown in the following figure.
The following table introduces the functions.
In this case, you can obtain the last few characters of fixed length from a string. The following figure shows the effect.
You can use the LEFT and FIND functions. The FIND function can locate a character in a string.
You can download the sample data Field Interception.xlsx.
For example, you can obtain user accounts and create the LEFT Interception (Unfixed) field from the User Account and Password field.
1. Create an analysis subject with the downloaded Field Interception table. All fields are selected by default.
2. Click Formula Column, name the column LEFT Interception (Unfixed), enter the formula LEFT(User Account and Password,FIND(":",User Account and Password)), and click OK, as shown in the following figure.
The following table explains the formula.
In this case, you can obtain all characters from the first character to the colon (:) in the string, as shown in the following figure.
You can use the RIGHT, FIND, and LEN functions.
You can use the sample data in section "Returning All Characters Before a Specific Character."
1. Choose More > Split Field on the data editing page to enter the function page, as shown in the following figure.
Split the field by the separator (:) and enter 2 in Split Result, as shown in the following figure.
You can obtain the passwords from the User Account and Password field and create the Password column.
Click Formula Column, name the column Password, enter the formula RIGHT(User Account and Password,LEN(User Account and Password)-FIND(":",User Account and Password)), and click OK, as shown in the following figure.
In this case, you can obtain all characters after the colon (:), as shown in the following figure.
You can download the sample data Field Interception (Unfixed Length).xlsx.
You can obtain the passwords from the middle of the User Account and Password field, and create a column.
Repeat the above steps and split the User Account and Password-2 field by the comma (,), as shown in the following figure.
1. Create an analysis subject with the downloaded Field Interception (Unfixed Length) table. All fields are selected by default.
2. Click Formula Column, name the column LEFT Interception (Unfixed Length), enter the formula MID(User Account and Password,FIND(":",User Account and Password)+1,FIND(",",User Account and Password)-FIND(":",User Account and Password)-1), and click OK, as shown in the following figure.
In this case, you can obtain all characters between the colon (:) and the comma (,), as shown in the following figure.
You can download the sample data Text Interception.xlsx.
1. Create an analysis subject with the downloaded Text Interception table. All fields are selected by default.
2. Click Formula Column, name the column Remove the Suffix, and enter the formula LEFT(Company,LEN(Company)-6), and click OK, as shown in the following figure.
In this case, the Office suffix is removed from the field and only the company names are saved, as shown in the following figure.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy