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

Data Analysis

  • How To Load Analysis ToolPak in Excel
  • Working With Tables in Excel
  • How to add Trendline to a chart in Excel
  • Excel Pie Chart
  • How to calculate average last N values in a table in Excel

References

  • Vlookup Examples in Excel
  • Lookup entire row in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • How to use Excel TRANSPOSE Function
  • How to reference named range different sheet in Excel

Data Validations

  • Excel Data validation date in specific year
  • Excel Data validation no punctuation
  • Excel Data validation require unique number
  • Excel Data validation must begin with
  • Excel Data validation number multiple 100

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

  • Not Equal To ‘<>‘ operator in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel
  • Check multiple cells are equal in Excel
  • Invoice status with nested if in Excel

Date Time

  • Convert date to Julian format in Excel
  • Get month from date in Excel
  • Display the current date and time in Excel
  • YEAR function: Description, Usage, Syntax, Examples and Explanation
  • Get day name from date in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • Group times into unequal buckets in Excel
  • Group numbers at uneven intervals in Excel
  • Group arbitrary text values in Excel
  • Map inputs to arbitrary values in Excel

General

  • Share Excel data with Word documents
  • How to get amount with percentage in Excel
  • How to calculate percent sold in Excel
  • How to get Excel workbook path only
  • Common Errors in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning