EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips Text Formula in Excel
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (36+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

Text Formula in Excel

By Madhuri ThakurMadhuri Thakur

Text Formula in Excel

Excel Text Formula (Table of Contents)

  • Text Formula In Excel
  • How to Use Text Formula in Excel?

Introduction to Text Formula in Excel

While working with Excel, we handle various kind of data types like Integers, Float, Boolean, Text, etc. Out of them, Text is one of the data types which we use widely. In this, we will cover the definition of text function and different ways to use the TEXT() function with examples.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

The function that converts the numbers or values into text format as specified by the user in the format_text and returns the text is called Text() Formula.

Syntax of TEXT() Formula

Text Formula Syntax

Below is arguments of the Text Formula:

  • Value: The data in a non-text format that we want to convert into text format.
  • Format_Text: The format in which the user expects the text should be Format text which should be in double-quotes.

How to Use Text Formula in Excel?

Below are the different examples to use text formula in excel.

You can download this Text Formula Excel Template here – Text Formula Excel Template

Example #1

Input a number in excel and see how it looks; normally, it will be considered in a general format.

Text Formula Example 1-1

We can convert that to a number by selecting the number format from the drop-down, then it will convert to a number format with zeros after the decimal point as below.

Text Formula Example 1-2

In case if we want to add zeros at the beginning of the number like below.

Text Formula Example 1-3

Now the movement, we move the cursor to the next cell; Excel will automatically clear the leading zeros. Then what is the solution if we want to add the leading zeros? The answer is TEXT() Formula.

For adding leading zeros, we need to give the format code as 000. The number of zeros depends on the requirement.

Observe the below screenshot.

Text Formula Example 1-4

When we gave three zeros for a two-digit number, one leading zero is added. When we gave four zeros, it created two leading zeros.

Example #2

Using the Text() formula, we can convert the date format into text format also. Date format is not similar in all the countries; few countries use date first, and few countries will use month first. In those cases, we may find it difficult to understand the correct date.

Text Formula Example 2-1

Observe the above date 2/3/2019. Here it may be March second or February third.

If we apply the TEXT() formula to this, we can find the exact date.

text formula example 2-2

Observe the above screenshot. Text format is “DD-MMM-YYYY”, and the result is 03-Feb-2019. First, we assume that the date is 02 – Mar -2019, but after applying the formula, we came to know that it is 03 – Feb – 2019.

DD represents a day with a number without leading zero; again, this DD can be used in different ways.

DD – represents the date in number format; if the date is a single number, it will come with leading zero.

DDD – represents the date in string formats like MON or TUE, etc.

DDDD – represents the full form of the day like MONDAY or FRIDAY, etc.

M – represents the month with a number without leading zero.

MM – represents the month with a leading zero.

MMM – represents the month in string format with the first three letters of the month.

MMMM – represents the full name of the month.

Similarly, for a year also.

We can set the format for a time and also with the below format text codes.

H – represents hours without leading zero.

HH – represents hours with leading zero and similarly, for minutes and seconds. Below is the example screenshot.

Text Formula Example 2-3

Example #3

When we want to display the percentage or currency or numbers after decimal points, TEXT () Formula can be achieved.

We will see a few examples for that text format codes.

Text Formula Example- 3

When we want two zeros after a decimal point, use “0.00” in the text format.

If we want the number to represent in dollars, give “$###” in the text format.

If we want the percentage, give “#%” in text format.

If we want the number separated by commas, then give “###,###” in text format.

Below are the Different Text Format Codes

0 – Represents the insignificant zeros. In the above example, if the number is 500.5, it will give the result as 500.50 in the first line formula.

# – Represents to display numbers. When we give “#.##” for 500.5, it will give a result of 500.5 as it does not display insignificant zeros.

– Represents for separation of the numbers. If we want to separate the numbers by comma, we can use the combination of #.

. – Represents a decimal point.

Special Characters

If we want to add any special characters, we can add them in between the double quotes; it will display in the same way how we insert. Find the below screenshot for reference.

Special characters-1

Concatenation of Texts

We can concatenate texts with numbers or can perform some calculation, and the results can be displayed in the required format.

Consider a small calculation like in a class 50 students are available, and there are 4 classes and fee for each student is 1000 rupees.

Concatenation of texts formula

We can now perform the calculation in the text function itself and display the results in the desired format.

If we want the result in Total cell as “Total fee for all children is ###,###”, we can achieve this using a combination of text and concatenation function.

Here “Total fee for all children is “ a string and the number results from calculation.

Concatenation of text -1

So the result will be as given below.

Concatenation of texts -2

There is a function to find out whether the data in a cell is text or not. So, we can check whether we converted to text or not.

Observe the above screenshot; we checked the data we converted using text formula completely in text format. The result from the formula is True, which means the data in cell I42 is in text format.

Concatenation of texts -3

Things to Remember About Text Formula in Excel

  • TEXT() is a very simple and understandable function to use.
  • Do not forget to keep the text format in double-quotes. If we missed keeping in double-quotes, the formula would give the error result as #value.
  • Before convert to text using Text() Formula, we can check whether data is in text format or not by using IS TEXT() Formula.
  • Use & symbol in between string and text Formula if you want to concatenate string and number operations.

Recommended Articles

This has been a guide to Text Formula in Excel. Here we discussed How to use Text Formula in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Excel Text with Formula
  2. Count Cells with Text in Excel
  3. Search For Text in Excel
  4. VBA Text
Popular Course in this category
Excel Advanced Training (16 Courses, 23+ Projects)
  16 Online Courses |  23 Hands-on Projects |  140+ Hours |  Verifiable Certificate of Completion
4.8
Price

View Course

Related Courses

Excel Training (23 Courses, 9+ Projects)4.9
Excel Data Analysis Training (17 Courses, 8+ Projects)4.8
Excel for Finance Training (18 Courses, 7+ Projects)4.7
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download Text Formula Excel Template

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download Text Formula Excel Template

EDUCBA

डाउनलोड Text Formula Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more