Automation · Excel VBA

Excel Custom Functions & VBA Toolkit

Twelve reusable VBA worksheet functions for lookups, April–March fiscal months, text, and Indian identifier-format and checksum checks.

What the toolkit does

Use the VBA modules for multiple and fuzzy lookups, April–March fiscal months, rupee amounts in words, text and workbook counts, and format checks for Indian identifiers.

The examples on this page show expected results. VBA runs in desktop Excel, and execution in Windows and macOS is tracked in the validation record.

Formula examples

For the lookup examples, use A2:B4 for key and value pairs and D2:D3 for company names from the fictional sample data.

MultipleLookup
=MultipleLookup("A",A2:B4,2)

Red,Green for matching rows in the fictional lookup data.

FuzzyLookup
=FuzzyLookup("Demo PVT LTD",D2:D3,75)

Demo Private Limited for the supplied fictional values.

InputMonth
=InputMonth(DATE(2026,4,1))

1 for April in an April–March fiscal year.

GetMonthName
=GetMonthName(12)

March.

IsPANNumber
=IsPANNumber("ZZZPZ0000Z")

TRUE for the fabricated format example.

IsGSTNumber
=IsGSTNumber("99ZZZPZ0000Z1ZZ")

TRUE for the fabricated GSTIN format example.

IsGSTChecksumValid
=IsGSTChecksumValid("99ZZZPZ0000Z1ZZ")

TRUE for the sample checksum.

IsTANNumber
=IsTANNumber("ZZZZ00000Z")

TRUE for the fabricated format example.

IsIFSCCode
=IsIFSCCode("ZZZZ0DEMO00")

TRUE for the fabricated format example.

ConvertToINRWords
=ConvertToINRWords(1.25)

One Rupees and Twenty Five Paise.

WordCount
=WordCount(F2)

3 when F2 contains “alpha beta gamma”.

WorksheetCount
=WorksheetCount()

The number of sheets in the caller’s workbook, including chart sheets.

Identifier checks evaluate text structure or a checksum. Confirm identity, registration and bank details through the appropriate official service.

Source and setup

The repository contains the MIT-licensed VBA modules, fictional lookup data and a test macro with 25 assertions. Start with a fresh workbook and follow your organisation’s macro policy.