Importing products

Import products from a CSV or Excel file — the template, what every column means, accepted formats, and how to fix problems.

7 min readUpdated 16 November 2026

You can import from two places. They use the same kind of file; the difference is whether stock is included.

Add ProductsAdd Products with Stock
SidebarInventory → Add ProductsInventory → Add Products with Stock
One row isone productone batch (a product can have several rows)
Stock columnsnonerequired
Problem rowsshown in red in a preview; the import waits until your file is fixedadded to your list, highlighted, so you can fix them there
Download the template, fill it in, and import.
Demo coming soon
Download the template, fill it in, and import.

Step by step

  1. Click Import file at the top of the page.
  2. Click Template (CSV) or Template (Excel). The template has every column in the right order, and example rows to copy from.
  3. Fill it in. Keep the headings in the first row and don't leave blank rows between products.
  4. Choose your file, or drop it on the box. It must be .csv, .xlsx or .xls.
  5. RxShelf reads it straight away and tells you what it found.

What you see after choosing a file

Add Products shows your file as RxShelf read it. The template and column notes step aside to make room for a scrollable table of your rows, numbered like your spreadsheet. Any cell with a problem is red — hover it to see why — and a line above the table says how many problems there are and in how many rows (for example 3 problems in 3 rows). The Add button stays off until there are none. Fix the problems in your spreadsheet, then click Change and choose the file again.

Add Products with Stock shows a summary — products, batches and units — and a note of anything it couldn't use. Your products go straight onto the list, where problems are highlighted for you to fix.

If the file can't be read at all — a required column is missing, or it's too big — the template and column notes stay in view so you can see what's needed.

Columns

Column names aren't case-sensitive, and common alternatives work — for example Qty for quantity, Exp Date for expiry_date or Cost (₦) for cost_price. Anything RxShelf doesn't recognise is ignored, and you'll be told which columns were skipped.

Product columns — required in both

ColumnWhat to putExample
nameThe brand or trade name.Emzor Paracetamol
generic_nameThe active ingredient. Drugs only — leave the cell blank for consumables, but keep the column.Paracetamol
dosage_formThe form of the drug. Drugs only, same as above.Tablet
unit_of_measureWhat one unit is at the till — Tablet, Capsule, Card, Strip, Sachet, Bottle, Pack, Pair, Tube, Vial, Ampoule, Piece, Item or Unit. Required for every row.Tablet

Stock columns — required when importing with stock

ColumnWhat to putExample
quantityUnits in this batch. A whole number of 1 or more; 1,000 is fine.500
expiry_dateThe batch's expiry date. Drugs only — leave blank for consumables. See Dates.30/06/2027
cost_priceWhat you paid per unit, in ₦. ₦1,250.50 is fine.45
selling_priceWhat you sell it for per unit, in ₦. You may leave a cell blank if you give a markup — it's worked out from the cost.65

Optional columns — both

ColumnWhat to put
strengthSuch as 500mg. Part of what makes a product unique.
manufacturerSuch as GSK. Also part of what makes a product unique.
categoryThe category name. Matched to your existing categories by name.
reorder_levelLow-stock alert level, a whole number. Blank means 10.
pack_sizesBigger units the till can sell by, in one cell. See Pack sizes.
typedrug or consumable. Leave it out and a row with a generic name is a drug, one without is a consumable.

Optional columns — only when importing with stock

ColumnWhat to put
markupThe retail markup % for that batch, such as 30. The first batch's markup also becomes the product's default.
batch_numberThe manufacturer's lot number. Leave blank if you don't have it — RxShelf never makes one up.
supplierThe supplier's name. Must match one of your suppliers; if it doesn't, it's left blank and you're told.
wholesale_price, rw_pricePer-unit prices for wholesale and the RW tier. Only if you use them.

Optional columns — only when importing without stock

ColumnWhat to put
default_markupYour usual retail markup % for the product. It pre-fills the selling price when you later stock the product in. A plain Markup heading is read as this.

Product details — at the end of every template

ColumnWhat to put
nafdac_noThe NAFDAC registration number, such as A4-1234.
skuYour own reference code.
default_wholesale_markup, default_rw_markupDefault markup % for wholesale and RW. Only if you use them.

Wholesale and RW columns only appear in the template, and are only read, if you sell wholesale (RW also needs the RW price switched on in Settings). If a file contains them anyway, they're skipped and you're told.

Two batches of one product

When importing with stock, give each batch its own row and repeat the product's columns on both. Rows for the same product (same name, generic, strength, dosage form and manufacturer) are joined into one product with several batches. The first row's product details are the ones used.

In Add Products, one row is one product, so a repeated row is flagged as a duplicate.

Dates

Write expiry dates the way you normally would. Dates are read day first, which is how Nigerian pharmacies write them. These all work:

You writeRxShelf reads
30/06/202730 June 2027
03/04/20273 April 2027 (not 4 March)
06/2027 or Jun 2027the last day of June 2027
2027-06-3030 June 2027
a real date cell in Excelthat date

If a date can't be read, that cell is flagged so you can correct it.

Pack sizes

Put them in one cell, separated by semicolons: Card=10; Carton=100. You can add up to 5. Each needs a label of 20 characters or fewer and a whole number of pieces above 0.

Common messages

MessageWhat to do
We couldn't find: …A required column is missing or named differently. Use the template, or rename your column.
Generic name is required for drugsThe row is a drug, so fill in generic_name. For a consumable, set type to consumable.
Dosage form is required for drugsFill in dosage_form.
Unit is requiredFill in unit_of_measure.
Quantity must be a whole number of 1 or moreFix quantity — no decimals, and not zero.
Expiry date is required for drugsFill in expiry_date for that batch.
Enter a valid expiry dateThe date couldn't be read. Try 30/06/2027.
Cost price is required / Selling price is requiredFill in the price, or give a markup so the selling price can be worked out.
Markup % must be between 0 and 999.99Fix the markup.
Pack size 2: pieces must be a whole number above 0Fix the second entry in pack_sizes.
Duplicate of row 5The same product appears earlier in the file.
Already in your listThe product is already on your list (Add Products with Stock).

Limits

  • Up to 1,000 products per file (in Add Products, that means 1,000 rows — one row is one product). For more, split the file and import the parts one after another.
  • Files with more than 5,000 rows are too big to read at once — split them first.