Bird
Raised Fist0
Excelspreadsheet~20 mins

TEXT function for formatting in Excel - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
TEXT Function Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
What is the output of this TEXT formula?
Given the date in cell A1 as 2024-06-15, what will be the result of the formula =TEXT(A1, "dddd, mmmm dd, yyyy")?
Excel
=TEXT(A1, "dddd, mmmm dd, yyyy")
A06/15/2024
BSat, Jun 15, 2024
CSaturday, June 15, 2024
D15-06-2024
Attempts:
2 left
💡 Hint
The format code "dddd" shows the full weekday name, and "mmmm" shows the full month name.
📊 Formula Result
intermediate
2:00remaining
What does this TEXT formula output for a number?
If cell B1 contains the number 1234.567, what is the result of =TEXT(B1, "#,##0.00")?
Excel
=TEXT(B1, "#,##0.00")
A1,234.57
B1234.567
C1.234,57
D1234,57
Attempts:
2 left
💡 Hint
The format uses commas for thousands and rounds to two decimals.
❓ Function Choice
advanced
2:00remaining
Which TEXT format code will display time as 2:05 PM?
You have a time value in cell C1. Which format code in =TEXT(C1, "format_code") will show the time as 2:05 PM?
Ahh:mm AM/PM
Bhh:mm am/pm
Ch:mm am/pm
Dh:mm AM/PM
Attempts:
2 left
💡 Hint
Use 'h' for hours without leading zero and uppercase 'AM/PM' for uppercase meridian indicator.
🎯 Scenario
advanced
2:00remaining
Formatting a number as currency with TEXT
You want to display the value in cell D1 as US dollars with a dollar sign, commas, and two decimals, like "$1,234.50". Which formula will do this correctly?
A=TEXT(D1, "#,##0.00")
B=TEXT(D1, "$#,##0.00")
C=TEXT(D1, "\$#,##0.00")
D=TEXT(D1, "$0.00")
Attempts:
2 left
💡 Hint
In Excel format codes, the dollar sign does not need escaping.
❓ data_analysis
expert
2:00remaining
How many unique formatted outputs are produced?
Given the values in cells E1:E4 as {0.5, 1, 1.5, 2} and the formula =TEXT(E1, "0.0") copied down to E4, how many unique text outputs will appear?
Excel
=TEXT(E1, "0.0")
A4
B3
C2
D1
Attempts:
2 left
💡 Hint
The format "0.0" shows one decimal place, so each value rounds to one decimal.

Practice

(1/5)
1. What does the Excel TEXT function do?
easy
A. It deletes all formatting from a cell.
B. It calculates the sum of numbers in a range.
C. It finds the largest number in a list.
D. It changes how numbers or dates look by turning them into styled text.

Solution

  1. Step 1: Understand the purpose of TEXT function

    The TEXT function converts numbers or dates into text with a specific format you choose.
  2. Step 2: Compare with other options

    Options B, C, and D describe different functions unrelated to TEXT.
  3. Final Answer:

    It changes how numbers or dates look by turning them into styled text. -> Option D
  4. Quick Check:

    TEXT formats numbers/dates as text [OK]
Hint: TEXT formats numbers/dates as text with style [OK]
Common Mistakes:
  • Thinking TEXT calculates or sums numbers
  • Confusing TEXT with formatting removal
  • Assuming TEXT changes the actual number value
2. Which of these is the correct syntax to format the number in cell A1 as currency with two decimals using TEXT?
easy
A. =TEXT(A1, "dd/mm/yyyy")
B. =TEXT(A1, "$#,##0.00")
C. =TEXT(A1, "0.00%")
D. =TEXT(A1, "General")

Solution

  1. Step 1: Identify currency format pattern

    "$#,##0.00" formats numbers as currency with commas and two decimals.
  2. Step 2: Check other formats

    A uses "dd/mm/yyyy" for date, B uses "0.00%" for percentage, D uses "General" for general text, so only C fits currency formatting.
  3. Final Answer:

    =TEXT(A1, "$#,##0.00") -> Option B
  4. Quick Check:

    Currency format uses "$#,##0.00" [OK]
Hint: Use "$#,##0.00" inside TEXT for currency [OK]
Common Mistakes:
  • Using percentage or date formats for currency
  • Forgetting the $ sign inside quotes
  • Missing commas for thousands separator
3. Given cell A1 contains the date 2024-06-15, what will the formula =TEXT(A1, "dddd, mmmm dd, yyyy") display?
medium
A. Saturday, June 15, 2024
B. 15/06/2024
C. 06/15/2024
D. 2024-06-15

Solution

  1. Step 1: Understand the format string

    "dddd" shows full weekday name, "mmmm" full month name, "dd" day with two digits, "yyyy" full year.
  2. Step 2: Apply to date 2024-06-15

    June 15, 2024 is a Saturday, so the output is "Saturday, June 15, 2024".
  3. Final Answer:

    Saturday, June 15, 2024 -> Option A
  4. Quick Check:

    Format "dddd, mmmm dd, yyyy" = Saturday, June 15, 2024 [OK]
Hint: dddd = weekday, mmmm = full month name [OK]
Common Mistakes:
  • Confusing day/month order
  • Using short month/day codes
  • Ignoring weekday name format
4. You want to format the number 0.85 in cell B2 as a percentage with one decimal place using TEXT. Which formula?
medium
A. =TEXT(B2*100, "0.0%")
B. =TEXT(B2, "0.0")
C. =TEXT(B2, "0.0%")
D. =TEXT(B2, "0.0%%")

Solution

  1. Step 1: Understand percentage formatting in TEXT

    In TEXT, the format "0.0%" automatically multiplies the number by 100 and adds the % sign, so TEXT(0.85, "0.0%") displays "85.0%".
  2. Step 2: Compare other options

    A multiplies by 100 first (85), then "0.0%" makes "8500.0%"; B shows "0.9"; D with "0.0%%" shows "0.9%" (%% is literal % without scaling).
  3. Final Answer:

    =TEXT(B2, "0.0%") -> Option C
  4. Quick Check:

    TEXT(0.85, "0.0%") = "85.0%" [OK]
Hint: Use "0.0%" to convert decimal to formatted percentage [OK]
Common Mistakes:
  • Multiplying by 100 manually (over-formats to 8500%)
  • Omitting % (shows plain decimal "0.9")
  • Using %% (prevents scaling, shows "0.9%")
5. You have a list of prices in column A and want to create a new column B that shows prices formatted as dollars with commas and two decimals, but also adds the text " each" after the price. Which formula in B1 correctly does this?
hard
A. =TEXT(A1, "$#,##0.00") & " each"
B. =TEXT(A1 & " each", "$#,##0.00")
C. =TEXT(A1, "$#,##0.00 each")
D. =TEXT(A1, "$#,##0.00") + " each"

Solution

  1. Step 1: Format price as currency text

    Use TEXT(A1, "$#,##0.00") to format number with $ sign, commas, and two decimals.
  2. Step 2: Add text " each" after formatted price

    Concatenate with & operator: TEXT(...) & " each" adds the text after the formatted number.
  3. Final Answer:

    =TEXT(A1, "$#,##0.00") & " each" -> Option A
  4. Quick Check:

    Concatenate formatted text with & and string [OK]
Hint: Use & to join formatted text and extra words [OK]
Common Mistakes:
  • Trying to format number and text together inside TEXT
  • Using + instead of & for text concatenation
  • Putting text inside format string incorrectly
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