by Allen Wyatt
(last updated January 2, 2014)
You probably already know that you can use the WEEKDAY function to return a numeric representation of the day of the week. For instance, the following returns the weekday number for whatever date is in cell A7:
The numeric value can be helpful, but what you really might want is to have a name for the day of the week, such as Monday, Tuesday, etc. In this case you need to use the TEXT function to find out the answer:
The TEXT function returns a text string that is formatted according to whatever you specify in the second parameter. In this case the parameter is "dddd", which means "give me the full weekday." Provided the value in cell A7 is a real date, the function returns the desired name of the day of the week for that date.
You can get different variations of the day of the week by changing the format string used with the TEXT function. For instance, if you wanted only the three-letter day of the week, you could use the following:
This returns Mon, Tue, Wed, etc. If you make the format string even shorter (such as "d" or "dd") you no longer get days of the week, but instead get numeric days of the month.
If you no longer have a need for a particular comment in a cell, you'll want to get rid of it. Here are a couple of ways ...Discover More
Want to make a particular cell or range of cells stand out? One way to do it is by changing the border color of the ...Discover More
Do you remember working with Roman numerals when you were in school? Sheets allows you to put those lessons to work by ...Discover More