3 ways you can start using the TEXT Function right now

This guide will show you how to use the TEXT Function to format your data

This is how to format data Formula-style!

In our 1st Formula Friday I showed you how to extract the month and year from a date using the TEXT Function. We are going to continue exploring the TEXT function with 3 more formulas you can start using right now.

How to extract week day from date

It only makes sense to kick things off with the one related option I did not share in the previous post. And that is how to extract the weekday of a date.

=TEXT([reference cell],”dddd”)

=TEXT([reference cell],”ddd”)

Now you have the power to unlock the exact day people were born!

How to pad a number with zeros

This is a really good one for those missing leading zeros.

=TEXT([reference cell],”000000”)

You can take this to the next level by using this formula. And specify how many characters should be in the text, without typing all the zeros individually.

=TEXT([reference cell],REPT(“0”,[number of characters]))

How to display a number with a custom format

There are so many custom formats you can apply to display the data. Mircosoft have a fact sheet which goes into more detail on each type of format you can use.

And I have listed few examples below:

=TEXT([reference cell],”00-0000-00”)

=TEXT([reference cell],“£#,###.00”)

=TEXT([reference cell],“#.00%”)

Ready to take your data analysis to the next level?

Get in touch today.

One thing to keep in mind

Using the TEXT Function changes the format of the value from numerical to text. So if you need to maintain the numerical value, make sure to use the VALUE Function as we discuss here.

And use the formatting menu to select the format you want to display. 

The TEXT Function is a really great way to tidy up data.

CSV files and excel downloads can be pulled from so many sources. The likelihood of them all having the exact same format is slim. But with a little sprinkling of Excel magic anything is possible.

I hope you have found a formula you can start using in your day to day. Even if it’s just to make everyone think you know the weekday all your fave celebs were born on. Any joy that can be spread with Excel is a good thing in my book. 

If you have any other burning questions, drop me a line.

Until next time,

Ax

Like this post? You should see my newsletter.

Subscribe to the Excel & ME newsletter to get updates that will empower you to inform your business decisions with data.

Related Articles from Excel & ME

How to use sumifs function blog post feature image

SUMIFS. The People’s favourite Function

An introductory guide to the SUMIFS Function
Find and remove duplicates blog post feature image

How to find or remove duplicates

A guide to finding and removing duplicates in Excel
How to use the IF function blog post feature image

Getting started with IF statements

An introductory guide to the IF Function
How to use hlookup function blog post feature image

How to HLOOKUP

This is a step-by-step guide for how to use the HLOOKUP Function in Excel
How to use find function blog post feature image

Intro to the FIND Function

An introductory guide to the FIND function
How to use vlookup function blog post feature image

How to VLOOKUP

This is a step-by-step guide for how to use the VLOOKUP Function in Excel