This article brings you relevant knowledge about excel, which mainly introduces how to determine the day of the week today, including methods such as custom formats, text functions, WEEKDAY functions, etc. , let’s take a look at it, I hope it will be helpful to everyone.
Related learning recommendations: excel tutorial
How to determine what day of the week a date is? There are many ways to solve this problem:
Method 1: Custom format
If you need to display the date and week in the cell at the same time, you can select the area where the date is located and press the Ctrl 1 key combination. Set custom number format:
yyyy/m/d aaaa
Method 2: TEXT function
if needed in another line To display only the day of the week, you can use the following formula:
=TEXT(B1,"aaa")
The function of the TEXT function is to change the number into the specified Formatted text, in this case the format code uses "aaa", the result is that only the day of the week is displayed.
Method 3: WEEKDAY function
Using the WEEKDAY function, you can return the day of the week for a certain date in the form of a number.
=WEEKDAY(B1,2)
The second parameter uses 2, which means that the numbers 1~7 represent Monday to Sunday.
Method 4: Conditional formatting
Combine the WEEKDAY function with conditional formatting to highlight weekend dates.
Select the cell range A2:A9, create a new conditional formatting rule, use the formula:
=WEEKDAY(A2,2)>5
Finally click [Format] 】 button to set the fill color.
Method 5: MOD function
If you want to determine whether a certain date is a working day or a weekend, you can also use the MOD function to process it.
=IF(MOD(A2,7)
First use the MOD function to calculate the date and The remainder when divided by 7 is exactly 0 and 1 when dividing the serial value of a weekend date by 7.
Then use the IF function to judge. If the result of the MOD function is less than 2, it is the weekend, otherwise it is the working day.
Related learning recommendations: excel tutorial
The above is the detailed content of Teach you five ways to determine the day of the week in Excel. For more information, please follow other related articles on the PHP Chinese website!

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 English version
Recommended: Win version, supports code prompts!

Atom editor mac version download
The most popular open source editor