TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.1K subscribers
Post #2273 2.89K
๐Ÿ“Š Excel Basics #31 โ€“ TEXT() Function

Sometimes the value in Excel is correct, but you want to display it in a specific format.

For example:

โ€ข "17-Aug-2026" โ†’ "August 2026"

โ€ข "0.25" โ†’ "25%"

โ€ข "125000" โ†’ "โ‚น125,000"

That's where the TEXT() function is useful.

๐Ÿ“Œ What is the TEXT() Function?

TEXT() converts a number or date into text using a format you specify.

Syntax:

=TEXT(value, format_text)


โš ๏ธ The result of TEXT() is text, not a numeric value.

๐Ÿ“Œ Example 1 โ€“ Format a Date

Suppose:

A2 = 17-Aug-2026

Formula:

=TEXT(A2,"dd-mm-yyyy")


Result:

17-08-2026

Another example:

=TEXT(A2,"mmmm yyyy")


Result:

August 2026

๐Ÿ“Œ Example 2 โ€“ Extract the Month Name

=TEXT(A2,"mmmm")


Result:

August

Short month name:

=TEXT(A2,"mmm")


Result:

Aug

๐Ÿ“Œ Example 3 โ€“ Format Numbers

Suppose:

A2 = 125000

Formula:

=TEXT(A2,"#,##0")


Result:

125,000

๐Ÿ“Œ Example 4 โ€“ Format Currency

=TEXT(A2,"โ‚น#,##0")


Result:

โ‚น125,000

You can also use:

=TEXT(A2,"โ‚น#,##0.00")


Result:

โ‚น125,000.00

๐Ÿ“Œ Example 5 โ€“ Format Percentage

Suppose:

A2 = 0.25

Formula:

=TEXT(A2,"0%")


Result:

25%

With decimals:

=TEXT(A2,"0.00%")


Result:

25.00%

๐Ÿ“Œ Example 6 โ€“ Combine Text with a Date

Suppose:

A2 = 17-Aug-2026

Formula:

="Report generated on "&TEXT(A2,"dd-mmm-yyyy")


Result:

Report generated on 17-Aug-2026

This is especially useful for dynamic report titles and dashboard labels.

๐Ÿ“Œ Common Date Format Codes

โ€ข dd โ†’ Day

โ€ข ddd โ†’ Short day name

โ€ข dddd โ†’ Full day name

โ€ข mm โ†’ Month number

โ€ข mmm โ†’ Short month name

โ€ข mmmm โ†’ Full month name

โ€ข yy โ†’ Two-digit year

โ€ข yyyy โ†’ Four-digit year

Example:

=TEXT(A2,"dddd, dd mmmm yyyy")


Result:

Monday, 17 August 2026

๐Ÿ“Œ Important Difference

Changing the cell's number format only changes how the value looks.

TEXT() actually converts the value into text.

For example:

=TEXT(A2,"โ‚น#,##0")


may look like a currency value, but the result is text and shouldn't be used directly for mathematical calculations.

๐Ÿ“Œ Real-World Uses

โ€ข Format dates in reports.

โ€ข Create dynamic dashboard titles.

โ€ข Display currency values.

โ€ข Format percentages.

โ€ข Create readable messages.

โ€ข Combine numbers or dates with text.

๐Ÿ“Œ Common Mistake

โŒ Using TEXT() when you still need to perform calculations on the result.

If you only need to change how a number or date looks, consider using Cell Format โ†’ Number Format instead.

โœ… Quick Tip

Remember:

TEXT() โ†’ Convert a value into formatted text

Examples:

โ€ข =TEXT(A2,"mmmm yyyy") โ†’ August 2026

โ€ข =TEXT(B2,"โ‚น#,##0") โ†’ โ‚น125,000

โ€ข =TEXT(C2,"0.00%") โ†’ 25.00%

Double Tap โค๏ธ For More
  • โค 9
  • ๐Ÿ‘ 1
More from @excel_analyst
  1. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
  2. Oct 7, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 5 This part focuses on Tables, Filters & Data Analysis shortcutsโ€ฆ
  3. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  4. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  5. Sep 29, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 3 This part focuses on Formatting Shortcuts โ€” quickly format celโ€ฆ
  6. Sep 29, 2026๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐—ง๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐—”๐—œ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿš€ โ€‹ Explore 6 free resourceโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’