Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Conditional Formatting Rules in Excel
  • Filter Data Based on Date in Excel
  • How to Create Column Chart in Excel
  • Excel Bar Chart
  • Reverse List in Excel

References

  • Count unique text values with criteria
  • Find closest match in Excel
  • Vlookup Examples in Excel
  • Lookup entire row in Excel
  • How to get first column number in range in Excel

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation date in next 30 days
  • Excel Data validation no punctuation
  • Excel Data validation allow uppercase only
  • Excel Data validation specific characters only

Pad week numbers with zeros in Excel

by

To pad week numbers (or any number) with zeros using a formula, you can use the TEXT function.

Formula

=TEXT(WEEKNUM(date,type),"00")

Explanation

In the example show, D5 contains this formula:

=TEXT(WEEKNUM(B5,21),"00")

Which returns the string “07”.

How this formula works

The TEXT function can apply number formats of any kind, including currency, date, percentage, etc. By applying a number format like “00”, “000”, “0000”, you can “pad” numbers with as many zeros as you like. Zeros will only be added where needed.

Number format only

The TEXT function converts numbers to text as a normal step in applying the number format.

If you are concatenating (joining) the result to another text string, this is fine, but if you just want to apply visual padding to a free-standing number set of numbers, you can apply a custom number format without using a formula.

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • Invoice status with nested if in Excel
  • How to use Excel NOT Function
  • Extract multiple matches into separate rows in Excel
  • TRUE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Calculate number of hours between two times in Excel
  • Get last working day in month in Excel
  • Convert Unix time stamp to Excel date
  • NETWORKDAYS function: Description, Usage, Syntax, Examples and Explanation
  • Extract date from a date and time in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • Map text to numbers in Excel
  • If cell contains one of many things in Excel
  • Categorize text with keywords in Excel
  • How to randomly assign people to groups in Excel

General

  • Creating and Opening an existing file in Excel
  • How to get original price from percentage discount in Excel
  • How to generate random date between two dates in Excel
  • Excel Operators
  • Basic error trapping example in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning