Problem: I want to analyze sales by weekday. Can I calculate the weekday from a date?
Strategy: Use the TEXT function. The first argument for this function is a cell containing a date. The second argument is any custom number format in quotes. =TEXT(A2,"DDDD") will give you a weekday. =TEXT(A2,"MMM") will give you the month abbreviation.
- Convert dates to weekdays.
Note that unlike applying a date format, the TEXT function actually converts the date to text. You can sort by column B and all of the Mondays will sort together.