Skip to content
Guide

Excel QR Code Generator Formula: One Cell or Bulk

The Excel QR code generator formula is =IMAGE("https://quickchart.io/qr?text="&ENCODEURL(A2)): paste it next to a column of links and drag down. Here is the one-cell version, the bulk drag-down, the add-in for older Excel, and how to get the codes onto paper.

Joe Foster · FounderAug 18, 20268 min readUpdated Nov 21, 2026

The Excel QR code generator formula is =IMAGE("https://quickchart.io/qr?text=" & ENCODEURL(A2)): paste it next to a column of links and drag down. The IMAGE() function draws each code in its cell. Drag it down and you have five hundred. Same catch as every Office method: each code is static, frozen the moment you print. Here's the formula, the fallback for older Excel, and what to do when the printed codes still need to work after a URL change.

Microsoft 365 or Excel 2024 for Windows: one formula, bulk codes. Older Excel: QR4Office add-in. Codes that have to survive a URL change: generate them dynamic first, then paste them in.

The Excel QR code generator formula uses IMAGE() to draw each code from a free QR API. Put a link in A2 and this in B2:

=IMAGE("https://quickchart.io/qr?text=" & ENCODEURL(A2))

It works in Excel for Microsoft 365 and Excel 2024 for Windows. Excel for Mac and Excel for the web have IMAGE() but not ENCODEURL(), which Microsoft's ENCODEURL reference says is not available there. On those, a link with no spaces, &, # or + works without it: =IMAGE("https://quickchart.io/qr?text=" & A2). One code first, then five hundred, then the part Excel can't do.


QR code generator Excel formula: one cell, one code

You need a version of Excel with the IMAGE function: Excel for Microsoft 365, Excel 2024, or Excel for the web (Microsoft's IMAGE reference lists the Mac and mobile apps too, but ENCODEURL is not available on Mac or the web). Put a link in A2, then in B2:

=IMAGE("https://quickchart.io/qr?text=" & ENCODEURL(A2))

Press Enter. The code renders in the cell. Three pieces:

1/ ENCODEURL(A2) escapes your link so characters like &, # and spaces don't break the request. Excel for Mac and Excel for the web don't have it (see above).

2/ The QuickChart QR API returns a PNG of the code.

3/ IMAGE() displays it in the cell, sized to fit.

Scan it with your phone right off the screen. It's a real code, not a preview.


The drag-down: five hundred codes before lunch

This is where Excel beats a point-and-click generator. Column A holds your links: one per asset tag, name badge, ticket, table card. Select B2, grab the fill handle, and drag down.

Every row computes its own code. Five rows or five hundred, same gesture.

Tune the output with API parameters:

# Bigger, with high error correction (survives print wear):
=IMAGE("https://quickchart.io/qr?text="&ENCODEURL(A2)&"&ecLevel=H&size=400")

# Brand-colored modules (keep them dark on light):
=IMAGE("https://quickchart.io/qr?text="&ENCODEURL(A2)&"&dark=003D5C&size=300")

What the formula depends on

Excel doesn't draw these codes. Every cell asks QuickChart's servers for an image, so the sheet depends on that service:

  • The free tier has limits. QuickChart's free Community plan allows 1,000 QR codes a month and 60 a minute, with no SLA, per its QR API pricing page. A drag-down longer than 60 rows asks for more than a minute's allowance at once. A serialized run bigger than 1,000 needs a paid QuickChart plan or a different pipeline (more below).
  • No service, no codes. If QuickChart is down, or your network blocks quickchart.io, the codes don't render. Excel shows #CONNECT! when it can't reach the server, so paste the results as pictures once they load.
  • The image is static. Each picture encodes the link itself. Nothing can be edited after printing, and no scans are counted.
  • These are screen-resolution PNGs. Fine for handouts and badges. For a poster or anything glossy, export real files from a generator instead. The print sizing guide has the numbers.

Older Excel: the add-in fallback

A hand with a pen reviewing printed spreadsheet charts Photo: Lukas on Pexels

=IMAGE(...) returning #NAME? means your Excel predates the function. Excel 2021, 2019, 2016, and earlier don't have it. The fix is QR4Office, the free official add-in: Insert ▸ Get Add-ins ▸ search "QR4Office" ▸ Add, then open it from Insert ▸ My Add-ins, paste your link, and insert.

One code at a time. No drag-down. The add-in has no idea your column of links exists. Right tool for a single code in a worksheet, wrong tool for a hundred. (The full add-in walkthrough, including Word and PowerPoint, lives in the Microsoft Office guide.)

And if you've heard about the Ctrl+F9 field-code trick (DISPLAYBARCODE "your-link" QR): that's Word. Field codes don't exist in Excel, so there's nothing to activate. In Excel the formula does the same job, and you can drag it down.


Getting codes out of the grid

A code in a cell is a live formula result, not a file. To use it anywhere else:

1/ Into Word (handouts, badge sheets): copy the cell, then in Word use Paste Special ▸ Picture. The code freezes as an image and survives the trip.

2/ A handout template: lay out a two-column table. Name in one column, pasted code in the other. Word's mail-merge handles the names; Excel's drag-down handled the codes. Between them you've built a badge printer out of office software.

3/ As standalone files: Excel can't export a cell image cleanly. If you need actual PNG/SVG files per code (print vendors usually do), generate them in a real QR tool instead of screenshotting cells one at a time.


The catch: every one of them is frozen

Same limit as every Office method. The formula writes each URL permanently into its pattern. Static codes. After the badges are printed:

→ URL changes → all five hundred badges now point at a 404 → No scan data → you'll never know if anyone used them → Fixing it → a full reprint, plus the laminating

For links that will never move (a homepage on letterhead), static is the right call and you're done. For event badges, campaign cards, anything with a shelf life, you want the pattern pointing at a redirect you control. Unsure which you need? Static vs dynamic, two-minute read.


Old way (formula only) vs. new way (codes you can steer)

Old way. The sheet bakes the final URL into every code:

→ One wrong link in column A → reprint run → Destination moves after print day → reprint run → "How many people scanned badge 47?" → nobody knows

New way. The sheet feeds a generator that makes editable codes:

  1. Export your link column as a CSV.
  2. Upload it to QRBliss bulk generation (Business plan). Every row becomes a dynamic code with its own short link, exported as real PNG/SVG files.
  3. Or for a handful of codes: make up to 15 dynamic codes free at QRBliss with a free account, and paste them into the sheet like any image.
  4. URL changes later? Edit the redirect. The printed run keeps working. Nothing gets relaminated.

Scan counts by code, country, and device come with it. "Did the badges work?" becomes a column you can sort.


Excel vs. QRBliss

Excel =IMAGE() formulaQRBliss
CostFree (needs M365 or Excel 2024 for Windows)Free tier
Bulk from a column/CSVYes (drag down)Yes (CSV upload, Business)
OutputIn-cell PNG (screen-res)Real PNG / SVG files
Editable after printNoYes, dynamic
Scan analyticsNoneCounts, country, device
Logo + brand colors in the codeColor params onlyYes, auto-palette
Works offline once placedAfter paste-as-pictureYes (files)

The recommendation

  • A few codes in a worksheet, links that won't change? The formula. Two minutes, zero installs.
  • Excel 2021 or older? QR4Office add-in, one code at a time.
  • A print run that has to survive a URL change, or that you want to measure? Generate dynamic codes at QRBliss (15 free), or feed the whole CSV to bulk generation and place the exported files.

📌 What's shifted from 2024 to 2026: the formula used to be a power-user trick. Now IMAGE() is in Microsoft 365 and Excel 2024, so making five hundred codes is easy. The hard part is still what they point at after the print run ships.

For the full tool field, see the 7 best free QR code generators.


Drag the formula 📊 → Generate dynamic (free) → Paste, print, keep control ♻️

Frequently asked questions

How do I generate a QR code in Excel?

In Excel for Microsoft 365 on Windows, put your link in A2 and enter =IMAGE("https://quickchart.io/qr?text=" & ENCODEURL(A2)) in another cell. The code renders in the cell. Drag the formula down and every row gets its own QR code. Older Excel versions without the IMAGE function should use the free QR4Office add-in instead.

Why does my Excel QR formula show a #NAME? or #VALUE! error?

#NAME? almost always means your Excel is missing a function the formula uses. IMAGE needs Excel for Microsoft 365, Excel 2024, or Excel for the web, not Excel 2021, 2019, or 2016. ENCODEURL is not available in Excel for Mac or Excel for the web, so there, drop it for a plain link with no spaces, & or #. #CONNECT! means Excel couldn't reach the image server, so check your connection. #VALUE! or a broken image usually means the URL cell is empty, or the quotes around the QuickChart address got mangled. Retype them in Excel rather than pasting from a formatted document.

Can Excel make QR codes without an internet connection?

Not with the formula method. IMAGE() fetches each code from the QuickChart API, so it needs a connection while codes render. Once you paste the results as pictures, the file is self-contained. For a fully offline workflow, generate codes in a dedicated tool and insert them as images.

Does Ctrl+F9 make QR codes in Excel like it does in Word?

No. That trick uses Word's DISPLAYBARCODE field code, and field codes are a Word feature. Excel has no equivalent. In Excel, the IMAGE() formula fills the same role, and it's better for bulk work because it lives in a cell you can drag down.

Can Excel generate QR codes for free?

Yes, if your Excel has the IMAGE function: Excel for Microsoft 365, Excel 2024, or Excel for the web (on Mac and the web, without ENCODEURL). The formula calls QuickChart's free QR API, so there is no add-in to buy, but the free API tier is limited to 1,000 QR codes a month and 60 a minute. Older Excel versions can use the free QR4Office add-in, one code at a time.

Are QR codes made in Excel static or dynamic?

Static. The formula bakes each destination URL permanently into its pattern, so nothing can be edited after printing and no scans are tracked. For codes you can redirect later, or count scans on, generate dynamic codes first and paste them into the sheet as images.

Create your first QR code.

Free tier. No signup required to start. Dynamic codes included.

Make a QR →