🎉 Black Friday Sale: 40% OFF everything with code BF40 · ends 1 Dec  Shop now →

Medical Store and Pharmacy Billing System in Excel VBA

A paper register can bill a patient, but it cannot tell you which batch is about to expire or which clinic still owes you money. The Medical Store and Pharmacy Billing System V1.0 in Excel VBA keeps billing, batch stock and house accounts in one Excel file and flags expiry for you.

Watch the Medical Store and Pharmacy Billing System in Excel VBA: Batch and Expiry walkthrough

Medical Store and Pharmacy Billing System V1.0 in Excel VBA

Excel VBA Advanced with AI courseLaunch offer
🎓 NEXTGENTEMPLATES ACADEMY
Want to build VBA systems like these yourself?
Excel VBA Advanced with AI

Arrays, dictionaries, UserForms, events, class modules, error handling and file/folder automation, with AI as your pair programmer. 6h 28m of video across 14 modules, with practice and solution files for every lesson.

What Is a Pharmacy Billing System in Excel?

This pharmacy billing software in Excel is medical store billing software in a macro-enabled workbook for a small pharmacy or medical store, a pharmacy management system in Excel that runs on your own PC. You add your medicines and suppliers, receive each delivery as a batch with its manufacturing and expiry dates, and bill patients through a form with type-to-search batches and a basket of lines. The workbook takes stock from the batch you picked, keeps house accounts with credit limits, and builds four dashboards and a monthly Profit and Loss from the same registers.

Inside the System

MAIN menu

The file opens here every time. Five live KPI chips (Net Sales, Bills, Gross Profit, Expired and Expiring Batches, and Due on House Accounts) sit above colour-coded cards for Pharmacy Billing, Batch and Expiry, Medicines and Suppliers, House Accounts, Dashboards, Expenses and Profit, Print and Documents, and Setup and Help.

MAIN menu of the Medical Store and Pharmacy Billing System with pharmacy billing, batch and expiry, medicines and suppliers, house accounts, dashboards, expenses and print buttons

Pharmacy Sales Dashboard

Net Sales, Prescription Sales, Profit, Units Sold and Discount Given, with Net Sales by Month, Share of Net Sales by Medicine Category and the Top 10 Medicines by Net Sales. Slicers for Counter, Schedule and Payment Status drive every figure.

Pharmacy Sales Dashboard with net sales, prescription sales, profit, units sold, net sales by month and top 10 medicines by net sales

Stock and Expiry Dashboard

Stock Value at Cost, Units in Stock, Units Expiring in 90 Days and Expired Stock Value, with Stock Value by Medicine Category, Share of Stock Value by Expiry Status and Units in Stock by medicine. Filter by Medicine Category, Expiry Status and Schedule.

Stock and Expiry Dashboard with stock value at cost, units in stock, units expiring in 90 days and share of stock value by expiry status

House Accounts Dashboard

Due on Accounts, Sold on Account, Payments Collected and Credit Extended, with Sold on Account and Collected by Customer Type, Share of Total Billed by Customer Type and the top customers by balance. Filter by Customer Type, Credit Status and City.

House Accounts Dashboard with due on accounts, sold on account, payments collected, credit extended and total billed by customer

Expense Dashboard

Total Expenses, Expenses Net of Tax, Vouchers, Average Voucher and Sales Tax Paid, with Expenses by Month, Share of Expenses by Payment Mode and Expenses by Category.

Expense Dashboard with total expenses, expenses by month, share of expenses by payment mode and expenses by category

How to Use

Six numbered steps on one page: set up once, add medicines and suppliers, receive stock batches, bill at the counter, watch expiry and stock, and run house accounts and profit.

How to Use page with six steps from setup to house accounts and profit

Profit and Loss

A live monthly statement: revenue, cost of goods sold, gross margin, every operating expense, net profit and a sales tax summary. Pick the financial year and every cell recalculates.

Profit and Loss statement by month with revenue, cost of sales, operating expenses, net profit and a sales tax summary

Sales Bill Register

One row per bill line with the bill number, customer, prescriber, Rx number, counter, batch, expiry date and medicine category. New Bill, Edit Bill, Delete Bill, Print Bill and Attach Rx sit on the action bar.

Sales Bill Register with bill number, customer, prescriber, batch, expiry date and medicine category on every line

Batch and Expiry Register

Every stock receipt with batch number, supplier invoice, manufacturing and expiry dates, quantity received and sold, stock in hand, days to expiry and an expiry status of Good, Expires in 90 Days, Expired or Sold Out. Expiry Alerts and Show All sit on the action bar.

Batch and Expiry Register with batch number, supplier invoice, manufacturing and expiry dates, quantity and expiry status

Medicine Master

Each medicine with Rx Only or OTC schedule, pack size, cost, retail price, margin, sales tax rate, reorder level, stock in hand and nearest expiry, plus a stock status.

Medicine Master with Rx Only or OTC schedule, pack size, cost, retail price, margin, sales tax rate, reorder level and stock

Customer Accounts

Walk-in customers, regular patients and house accounts with credit limits, the total billed, paid and charged to account, the balance and a credit status.

Customer Accounts with walk-in patients, regular patients and house accounts with credit limits and balances

Supplier Register

Wholesalers with contact, payment terms, batches received, purchase value and stock value.

Supplier Register with wholesalers, payment terms, batches received and purchase value

Payments Register

Receipts for house account payments, each with date, customer, amount, payment mode and reference. Receive Payment and Print Receipt sit on the action bar.

Payments Register with receipts for house account payments by date, customer and payment mode

Expense Register

Rent, staff wages, utilities, insurance and more, each with voucher, category, paid to, tax and payment mode.

Expense Register with voucher, category, paid to, tax and payment mode

Document Register

Scanned prescriptions, insurance cards and supplier invoices linked to the bill, customer or batch they belong to, with file type and size. Open Selected File opens any of them in one click.

Document Register with scanned prescriptions, insurance cards and supplier invoices linked to bills, customers and batches

Category Master

Counters, medicine categories, manufacturers, billed by staff and prescribers in one place. Extend them here or from the Manage Dropdown Lists form and every drop-down follows.

Category Master with counters, medicine categories, manufacturers, billed by staff and prescribers

Settings

Pharmacy name, license number, currency and sales tax rate, document numbering, permissions, the document folder and the paper size for printing.

Settings page with pharmacy details, license number, currency, sales tax rate, document numbering, permissions and paper size

How a Batch Moves Through the System

A wholesaler delivers ibuprofen. You open Receive Stock Batch and enter the batch number, supplier invoice, manufacturing date, expiry date, quantity and purchase rate. At the counter, New Pharmacy Bill lets you search that batch by medicine, batch number or expiry date and add it to the basket. When the bill is saved, the batch’s stock drops and its margin is worked out from the purchase rate. As the expiry date approaches, the batch shows up on Expiry Alerts, the medicine expiry tracker in Excel that lists expired batches and those expiring within 90 days. In the sample file, 982 bills produce net sales of $46,324 and a net profit of $7,664 over ten months.

Good Habits for Medical Store Billing in Excel

Receive every delivery as its own batch, even for a medicine you already stock, because expiry is tracked per batch. Check Expiry Alerts at the start of each week and return or discount short-dated stock. Set a reorder level on every medicine so Low Stock means something. Keep a credit limit on each house account and record payments the day they arrive. Attach the scanned prescription to the bill, which saves a search later.

Pros and Limits

  • One file for billing, batch stock, house accounts and expenses
  • Expiry alerts and low stock flags from the stock you actually hold
  • No subscription, and your data stays on your PC
  • Needs Excel 2016 or later for Windows with macros enabled
  • Single user, no insurance claims, no e-prescribing, and it does not work on Mac or in Excel for the web

Frequently Asked Questions

What is the Medical Store and Pharmacy Billing System in Excel VBA?

It is one macro-enabled Excel file that runs a small pharmacy or medical store: counter billing, stock kept batch by batch with manufacturing and expiry dates, expiry alerts, house accounts for clinics and care homes, expenses and a monthly Profit and Loss. Bills and stock go in through forms, and the dashboards update themselves.

How do I bill a patient?

Choose New Pharmacy Bill, pick the customer, the prescriber and the Rx number, then type-to-search a medicine batch and add it to the basket. Add as many lines as the bill needs and save. Stock is taken from the batch you picked.

How does batch and expiry tracking work?

Every stock receipt is a batch with a batch number, supplier invoice, manufacturing date, expiry date, quantity and purchase rate. A bill line names the batch it sells from, so stock, margin and expiry are tracked per batch. Expiry Alerts lists expired batches and batches that expire within 90 days.

Does it warn me about low stock?

Yes. Each medicine has a reorder level. The Medicine Master and the Stock and Expiry Dashboard flag Low Stock and Out of Stock items, together with the nearest expiry date.

Can I run house accounts for clinics and care homes?

Yes. Customers can be walk-in, regular patients or house accounts with a credit limit. Bills can be put on account, Receive Payment records what they pay, and the House Accounts Dashboard shows the amount due and who is over limit. A payment receipt can be printed.

Can I print bills?

Yes. Print Pharmacy Bill and Print Payment Receipt work on A4, 4 inch or 3 inch thermal paper. Choose the paper size once on the Settings sheet. Each bill line shows the batch number and expiry date.

Which Excel do I need?

Microsoft Excel 2016 or later for Windows with macros enabled. It does not work on Mac, in Excel for the web or in Google Sheets, because the entry forms are VBA UserForms.

Does it connect to insurance plans or e-prescribing?

No. It does not connect to insurance claims, e-prescribing or any outside service. It is a single-user desktop workbook and your data stays on your own PC. You can attach a scanned prescription or insurance card to a bill from the Document Library.

Can I try it before I buy?

Yes. A 7-day free trial is available from the product page. It is a separate file with every form, register and dashboard working, and it stops working after 7 days.

Is sample data included?

Yes. The file ships with ten months of sample data for a small Ohio pharmacy: 982 bills, 84 batches, 24 medicines, 23 customers and 5 suppliers, plus an illustrated PDF user manual, so every dashboard is populated when you open it.

Get the Medical Store and Pharmacy Billing System

Get the system here: Medical Store and Pharmacy Billing System V1.0 in Excel VBA. You can try it free for 7 days first. For another macro-enabled system, see the Warranty Claim Management System in Excel VBA.

🎓 Learn to build this yourself. Excel VBA Advanced with AI · $69 one-timeStart the course →
Scroll to Top