Bird
Raised Fist0
Google Sheetsspreadsheet~20 mins

TEXT formatting for dates in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Date Formatting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Format date as full weekday name
You have a date in cell A1: 2024-06-15. Which formula will display the full weekday name (e.g., "Saturday")?
A=TEXT(A1, "ddd")
B=TEXT(A1, "dddd")
C=TEXT(A1, "mm/dd/yyyy")
D=TEXT(A1, "yyyy-mm-dd")
Attempts:
2 left
💡 Hint
Use the TEXT function with the right format code for full weekday name.
📊 Formula Result
intermediate
2:00remaining
Format date as day-month-year with short month name
Given a date in cell B2: 2024-12-01, which formula formats it as "01-Dec-2024"?
A=TEXT(B2, "dd-mmm-yyyy")
B=TEXT(B2, "mm-dd-yyyy")
C=TEXT(B2, "dd-mm-yyyy")
D=TEXT(B2, "yyyy-mmm-dd")
Attempts:
2 left
💡 Hint
Use the format code for day, short month name, and year.
❓ Function Choice
advanced
2:00remaining
Choose formula to display date as "Month day, year"
You want to show the date in cell C3 as "June 5, 2024". Which formula will do this correctly?
A=TEXT(C3, "mmm dd yyyy")
B=TEXT(C3, "mm dd, yyyy")
C=TEXT(C3, "m/d/yyyy")
D=TEXT(C3, "mmmm d, yyyy")
Attempts:
2 left
💡 Hint
Look for full month name and day without leading zero.
📊 Formula Result
advanced
2:00remaining
Format date to show ISO week number
Given a date in D4, which formula shows the ISO week number (1 to 53) of that date?
A=ISOWEEKNUM(D4)
B=WEEKNUM(D4, 2)
C=TEXT(D4, "ww")
D=WEEKDAY(D4)
Attempts:
2 left
💡 Hint
ISO week number starts on Monday and can be different from WEEKNUM.
❓ data_analysis
expert
3:00remaining
Count dates formatted as "MMM-YY" in a range
You have dates in cells A1:A10. You want to count how many dates appear as "Jun-24" when formatted with =TEXT(date, "MMM-YY"). Which formula correctly counts these dates?
A=COUNTIF(ARRAYFORMULA(TEXT(A1:A10, "MMM-YY")), "Jun-24")
B=COUNTIF(A1:A10, "Jun-24")
C=SUMPRODUCT(--(TEXT(A1:A10, "MMM-YY") = "Jun-24"))
D=COUNTIF(A1:A10, TEXT("Jun-24", "MMM-YY"))
Attempts:
2 left
💡 Hint
You need to convert dates to text first, then compare.

Practice

(1/5)
1. What does the formula =TEXT(A1, "dd/mm/yyyy") do when A1 contains a date?
easy
A. It changes how the date looks by showing day, month, and year in that order.
B. It converts the date into a number representing days since 1900.
C. It adds the day, month, and year values together as numbers.
D. It changes the date value to text but keeps the original date format.

Solution

  1. Step 1: Understand the TEXT function usage

    The TEXT function formats the date in A1 using the pattern "dd/mm/yyyy" which means day/month/year.
  2. Step 2: Recognize the output type

    The output is text showing the date in the specified format, not a number or calculation.
  3. Final Answer:

    It changes how the date looks by showing day, month, and year in that order. -> Option A
  4. Quick Check:

    TEXT formats date display = It changes how the date looks by showing day, month, and year in that order. [OK]
Hint: TEXT changes date appearance without altering the date value [OK]
Common Mistakes:
  • Thinking TEXT changes the date value itself
  • Confusing date formatting with date calculations
  • Assuming output is a number instead of text
2. Which of these is the correct formula to display the date in cell B2 as "March 15, 2024" in Google Sheets?
easy
A. =TEXT(B2, "mm dd yyyy")
B. =TEXT(B2, "MMM-dd-yyyy")
C. =TEXT(B2, "dd/MM/yyyy")
D. =TEXT(B2, "MMMM dd, yyyy")

Solution

  1. Step 1: Identify the format for full month name

    "MMMM" shows the full month name like "March"; "dd" is day with two digits; "yyyy" is four-digit year.
  2. Step 2: Match the format to the desired output

    "March 15, 2024" matches "MMMM dd, yyyy" exactly.
  3. Final Answer:

    =TEXT(B2, "MMMM dd, yyyy") -> Option D
  4. Quick Check:

    Full month name format = =TEXT(B2, "MMMM dd, yyyy") [OK]
Hint: "MMMM" means full month name, "MMM" means short month [OK]
Common Mistakes:
  • Using "mm" which shows month as number, not name
  • Forgetting the comma in the format string
  • Using wrong case letters in format codes
3. If cell C3 contains the date 2024-12-01, what will the formula =TEXT(C3, "ddd, mmm d") display?
medium
A. Sun, Dec 1
B. Sunday, December 01
C. Sun, 12 1
D. 12/01/2024

Solution

  1. Step 1: Decode the format codes

    "ddd" shows the short day name (Sun), "mmm" shows short month name (Dec), "d" shows day without leading zero (1).
  2. Step 2: Apply to the date 2024-12-01

    December 1, 2024 is a Sunday, so output is "Sun, Dec 1".
  3. Final Answer:

    Sun, Dec 1 -> Option A
  4. Quick Check:

    Short day and month names = Sun, Dec 1 [OK]
Hint: "ddd" = short weekday, "mmm" = short month name [OK]
Common Mistakes:
  • Using "ddd" and expecting full day name
  • Confusing "d" with "dd" for day formatting
  • Assuming output remains a date, not text
4. The formula =TEXT(D4, "mm/dd/yyyy") returns an error. Which fix will correct it?
medium
A. Change the format string to "MM/DD/YYYY"
B. Remove the quotes around the format string
C. Ensure D4 contains a valid date value
D. Use =TEXT(D4, mm/dd/yyyy) without quotes

Solution

  1. Step 1: Check formula syntax

    The formula syntax is correct with quotes around the format string and correct format codes (lowercase mm, dd, yyyy).
  2. Step 2: Verify cell content

    If D4 does not contain a valid date, TEXT will error. Fix is to ensure D4 has a proper date value.
  3. Final Answer:

    Ensure D4 contains a valid date value -> Option C
  4. Quick Check:

    Valid date input needed = Ensure D4 contains a valid date value [OK]
Hint: TEXT needs a valid date input, not text or empty [OK]
Common Mistakes:
  • Removing quotes around format string causing syntax error
  • Changing format codes to uppercase incorrectly
  • Ignoring invalid or empty cell input
5. You want to create a list of dates in column A and show their weekday names in column B using TEXT. Which formula in B2 correctly shows the full weekday name for the date in A2?
hard
A. =TEXT(A2, "ddd")
B. =TEXT(A2, "dddd")
C. =TEXT(A2, "wwww")
D. =TEXT(A2, "day")

Solution

  1. Step 1: Understand weekday format codes

    "ddd" gives short weekday name (Mon), "dddd" gives full weekday name (Monday).
  2. Step 2: Choose the code for full weekday name

    To show full weekday name, use "dddd" in the TEXT formula.
  3. Final Answer:

    =TEXT(A2, "dddd") -> Option B
  4. Quick Check:

    Full weekday name needs "dddd" = =TEXT(A2, "dddd") [OK]
Hint: "dddd" = full weekday name, "ddd" = short weekday [OK]
Common Mistakes:
  • Using "ddd" and expecting full weekday name
  • Using invalid format codes like "wwww" or "day"
  • Forgetting quotes around format string
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard