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

Data Analysis

  • How to calculate correlation coefficient Correlation in Excel
  • Remove Duplicates Example in Excel
  • Move chart to a separate worksheet in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • Excel Pie Chart

References

  • Left Lookup in Excel
  • Extract data with helper column in Excel
  • To count total rows in a range in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation number multiple 100
  • Excel Data validation must not contain
  • Excel Data validation unique values only
  • Excel Data validation exists in list

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

  • How to use Excel AND Function
  • Check multiple cells are equal in Excel
  • How to use Excel OR Function
  • Invoice status with nested if in Excel
  • Return blank if in Excel

Date Time

  • Get days between dates ignoring years in Excel
  • How to calculate Quarter of Date in Excel
  • Convert decimal minutes to Excel time
  • Roll back weekday to Friday base on a particular date in Excel
  • Get days before a date in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Group numbers at uneven intervals in Excel
  • Running count group by n size in Excel
  • If cell contains one of many things in Excel
  • Group arbitrary text values in Excel

General

  • Freeze and Unfreeze Panes in Excel
  • How to get Excel workbook path only
  • Currency vs Accounting Format in Excel
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
  • How to calculate decrease by percentage in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning