Nepali Calendar Converter

B.S. to A.D. & A.D. to B.S. Date Converter Add-In for Microsoft Excel

Get the Excel Add-In

Download the professional .xlam file to enable conversion functions across all your local workbooks seamlessly.

📥 Download Add-In File (.xlam)

End-User Installation Guide

Follow these steps to permanently register the functions in Microsoft Excel:

  1. Click the Download Add-In File button above and save the file somewhere safe on your device (e.g., your Documents folder).
  2. Launch Microsoft Excel and open a blank workbook.
  3. Navigate to the Developer Tab on your ribbon line.
    Don't see it? Go to File → Options → Customize Ribbon → Check the "Developer" checkbox.
  4. Click on Excel Add-ins (the blocks icon).
  5. In the popup window, click the Browse... button, track down your downloaded NepaliCalendarConverter.xlam file, and click open.
  6. Ensure that NepaliCalendarConverter is ticked in the active list, then click OK.

💡 The functions are now natively available! You can type them in any cell of any workbook like a built-in Excel feature.

Available Custom Formulas

The add-in introduces three smart formulas that seamlessly parse arbitrary human-written layouts.

1. BSTOAD(BS_Date_String)

Converts a Bikram Sambat date into a native Gregorian Excel Date. This returns a true Excel Date Serial Number, which you can format using normal Excel cell tools.

=BSTOAD("2082-04-26")   â†’   Returns an Excel date serial you can format freely

2. ADTOBS(AD_Date, [OutputFormat])

Converts an standard Western date into a formatted Bikram Sambat (BS) text string. Since Excel doesn't handle BS dates natively, these are returned as clean text.

=ADTOBS("2025-08-11", "YYYY-MM-DD")   â†’   "2082-04-26"

3. DATECONVERT(Date_String, Direction, [OutputFormat])

A unified formula configuration tool for pipelines.

=DATECONVERT("26 Shrawan 2082", "BS2AD")

Accepted Input Layouts

The intelligent parser safely breaks down non-uniform user entries. All of the structural combinations listed below are fully parsed:

A.D. (English) Acceptable Syntax

Example SyntaxesStatus
2025-08-11Accepted
11-08-2025Accepted
08/11/2025Accepted
Aug 11, 2025Accepted
August 11, 2025Accepted
11 Aug 2025Accepted
Aug-11-2025Accepted

B.S. (Nepali) Acceptable Syntax

Example SyntaxesStatus
2082-04-26Accepted
26-04-2082Accepted
Shrawan 26 2082Accepted
26 Shrawan 2082Accepted
Shr 26 2082Accepted
2082 Shrawan 26Accepted

Output Token Customization Matrix

When running ADTOBS, you can define how your final string looks by passing formatting tokens into the second parameter:

Token Token Meaning / Extraction Output Sample Example
YYYY4-Digit Bikram Sambat Year Representation2082
MMMMFull Text Name of Nepali MonthShrawan
MMM3-Letter Text Abbreviation of Nepali MonthShr
MM2-Digit Padded Numeric Month Index04
DD2-Digit Padded Numeric Day Value26
Excel Formula Output Preview: 2082-04-26