Convert weekday string to number in Excel and Google Sheets
=MATCH(A2,{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"},0)
=MATCH(A3,{"Sunday","Tuesday","Wednesday","Thursday","Friday","Saturday","Monday"},0)
A2 = week starting on Monday; A3 = week starting on Sunday
Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.Convert weekday string to number in Excel
How to convert weekday strings to number in Excel?CONVERT WEEKDAY STRING TO NUMBER — EXCEL FORMULA AND EXAMPLE
=MATCH(A2,{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"},0)
=MATCH(A3,{"Sunday","Tuesday","Wednesday","Thursday","Friday","Saturday","Monday"},0)
A2 = week starting on Monday
A3 = week starting on Sunday
For a custom, start week change the day order in the curly bracket
Convert weekday string to number in Google Sheets
How to convert weekday string to number in Google Sheets?CONVERT WEEKDAY STRING TO NUMBER — GOOGLE SHEETS FORMULA AND EXAMPLE
=MATCH(A2,{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"},0)
=MATCH(A3,{"Sunday","Tuesday","Wednesday","Thursday","Friday","Saturday","Monday"},0)
C2 = week starting on Monday
C3 = week starting on Sunday
For a custom, start week change the day order in the curly bracket
- Combine date and time
- Convert date to text
- Convert time to text
- Convert seconds to time format
- Convert 1-12 to month name
- Convert month name to number
- Convert date to month and year
- Convert numbers of days to year/month/day
- Dynamic current date and time
- Dynamic current time
- Dynamic today and yesterday date
- Convert number stored as a text to date
- Convert weekday string to number
- Sum by month
- SUMIF cells if contains part of a text string
- Sum total sales based on quantity & price
- Count blank cell
- Count cell between two values
- Combine two or more cell
- Extract left before first space
- Extract the nth words in a text string
- Flip the first and last name
- SUMIF formulas and example
- SUMIFS formulas and example
- COUNTIF formulas and example
- IF formulas and example
- TEXT formulas and example
- CONVERT formulas and example
- Change the negative number to zero
- Change negative to positive numbers
- Calculate percentage changes for containing zero or negative values
- Count cells over 10 characters
- Count cells that are not blank
- Count if cells contain a specific text
- Count cells that begin with a specific text
- COUNTIF based on multiple criteria