How to automatically add a prefix to the contents of an Excel table

Source: Internet
Author: User

First, if you want to add a fixed content to the contents of a column of cells,

Method One
In the original cell implementation, in two cases

If the content of the original cell is a numeric content, add a prefix such as "ABC" before the original number
Select these cells----right-click----Format Cells---Custom---type write "ABC" g/Universal format---OK

If the contents of the original cell are text content, add the prefix "ABC" before the original content.
Select these cells----right-click----Format Cells---Custom---type write "ABC" @---OK

Method Two
Use the formula to realize
Assuming that the data is written in column A, you can write the formula in cell B1
=if (a1= "", "", "ABC" &A1)
Drop-down Fill formula
The formula means that if cell A1 is empty, a null value is returned, otherwise the "ABC" is added before the contents of the A1 cell

Second, if you want to add a fixed content to a column of cell content, then

Method One
In the original cell implementation, in two cases

If the contents of the original cell are numeric, add a prefix such as "ABC" after the original number
Select these cells----right-click----Format Cells---Custom---type write g/universal format "ABC"---OK

If the contents of the original cell are text content, add a prefix like "ABC" after the original content
Select these cells----right-click----Format Cells---Custom---type write @ "ABC"---OK

Method Two
Use the formula to realize
Assuming that the data is written in column A, you can write the formula in cell B1
=if (a1= "", "",a1& "ABC")
Drop-down Fill formula
The formula means that if cell A1 is empty, a null value is returned, otherwise the contents of cell A1 are added "ABC"

The assumption is to add a fixed content "ABC" to the contents of a column before adding "EFG" at the back, then

Method One
In the original cell implementation, in two cases

If the original content is a digital content, the
Select these cells----right-click----Format Cells---Custom---type write "ABC" g/Universal format "EFG"---OK

If the contents of the original cell are text content, the
Select these cells----right-click----Format Cells---Custom---type write "ABC" @ "EFG"---OK

Method Two
Use the formula to realize
Assuming that the data is written in column A, you can write the formula in cell B1
=if (a1= "", "", "ABC" &A1& "EFG")
Drop-down Fill formula
The formula means that if cell A1 is empty, a null value is returned, otherwise "ABC" is added to the contents of the A1 cell, followed by "EFG"

How to automatically add a prefix to the contents of an Excel table

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.