Excel cannot send an email from a cell formula alone. A formula can only build the subject line and body text; the actual sending needs either a hyperlink that opens your mail app or a short VBA macro. The quickest working method is a HYPERLINK formula that creates a mailto: link, and the most automated method is a VBA macro triggered by a button or a worksheet event. This guide covers both, plus the mistakes that stop them working.
What You'll Need
- Excel for Microsoft 365, Excel 2019 or later on Windows or Mac. The
mailto:method works in any version; VBA needs the desktop app, not Excel for the web. - An email client set as the default on your computer (Outlook, Apple Mail, Thunderbird or similar). The
mailto:link opens whatever is registered as default. - For the VBA method: Outlook installed and signed in on the same machine. Excel's
CreateObject("Outlook.Application")talks to the locally installed Outlook; it does not work with webmail alone. - Macro security set to allow macros in the workbook's folder, or the file saved as
.xlsmand trusted. You will be warned before enabling macros.
Step-by-Step
Method 1: Formula that opens a pre-filled email
- Put the recipient address in one cell, for example
A2, the subject inB2and the body text inC2. Keeping these in cells makes the formula easy to edit later. - In the cell where you want the clickable link, enter:
=HYPERLINK("mailto:"&A2&"?subject="&ENCODEURL(B2)&"&body="&ENCODEURL(C2),"Send email") - Press Enter. The cell shows the text Send email as a blue link.
- Click the link. Your default mail app opens a new message with the address, subject and body already filled in. You still press Send yourself.
- To notify several people, separate addresses with a semicolon inside the
mailto:string, for example"mailto:"&A2&";"&A3&"?subject=...". Outlook accepts semicolons; some other clients prefer commas, so test with your own client. - If you want the body to include a line break, insert
%0D%0Abetween lines inside the body string, becauseENCODEURLdoes not convert a cell's line breaks into the encoded form reliably.
Method 2: VBA macro that sends automatically
- Save the workbook as
.xlsm(File > Save As > Excel Macro-Enabled Workbook). Nothing else in this method works in a plain.xlsxfile. - Press
Alt+F11on Windows (orFn+Option+F11on Mac) to open the VBA editor. - In the Project pane, right-click your workbook, choose Insert > Module, and paste a short procedure such as:
Sub SendNotice()Dim OutApp As Object, OutMail As ObjectSet OutApp = CreateObject("Outlook.Application")Set OutMail = OutApp.CreateItem(0)With OutMail.To = Range("A2").Value.Subject = Range("B2").Value.Body = Range("C2").Value.SendEnd WithSet OutMail = NothingSet OutApp = NothingEnd Sub - Close the editor and return to Excel. Press
Alt+F8, selectSendNoticeand click Run. Outlook sends the message from the account that is currently signed in. - To make it a one-click action, insert a shape or button (Insert > Shapes), right-click it, choose Assign Macro and pick
SendNotice. - If you want the macro to run when a cell changes, put a
Worksheet_Changeprocedure in the sheet's code module instead of a standard module. Be careful: an automatic send on every edit can fire many emails, so restrict it to one specific cell with anIf Target.Address = "$D$2" Thencheck. - Replace
.Sendwith.Displaywhile testing. That opens the message for review instead of sending it, so you can check the recipient and body before anything leaves your machine.
Menu labels and dialog wording vary slightly between Excel versions, platforms and regions. If a label in these steps does not match what you see, look for the closest equivalent in the same area of the ribbon or editor.
Common Mistakes
- Expecting a formula to send mail.
HYPERLINKonly opens a draft. No cell formula can send a message on its own. - Leaving spaces in the address or subject. Unencoded spaces break the
mailto:link. UseENCODEURLon the subject and body, and trim addresses withTRIM(). - Using a comma-separated address list in Outlook. Outlook expects semicolons between recipients in the
Tofield; commas can be treated as part of one address. - Saving as
.xlsx. Macros are stripped from a standard workbook without warning, and the button then does nothing. - Testing with
.Send. Use.Displayfirst; a wrong cell reference can send a blank or misaddressed email immediately. - Assuming it works in Excel for the web. The browser version does not run VBA macros, and
mailto:behaviour depends on the browser and the mail app installed on the device.
Tips
- Keep recipient, subject and body in named cells or a small table so the formula or macro never needs editing.
- Build the subject with
TEXT(TODAY(),"yyyy-mm-dd")to date-stamp notifications automatically. - Add a check cell using
IF(ISBLANK(A2),"No recipient",...)so a blank address is obvious before anyone clicks. - For recurring reminders, pair the macro with a scheduled task or run it manually at set times; Excel has no built-in timer that sends mail while the file is closed.
- Keep a copy of the workbook before enabling macros from any source you did not create, and only run code you understand.
Troubleshooting
The link does nothing. Check that a default mail app is set in your operating system. On Windows, open Settings > Apps > Default apps and confirm the Mail entry; on Mac, open Mail and set it as the default mail reader. Then re-click the link.
The message opens with a blank subject or body. The cell reference is probably empty or the text contains characters that were not encoded. Wrap the subject and body in ENCODEURL and confirm the referenced cells actually contain text.
The macro errors on CreateObject. Outlook is not installed, not signed in, or the bitness of Office differs in a way that blocks automation. Open Outlook manually, sign in, close it, and try again. If it still fails, the machine may be managed by an IT policy that blocks programmatic sending; ask the administrator rather than working around it.
The macro runs but no message arrives. Check Outlook's Sent Items and Outbox. A message stuck in the Outbox usually means Outlook is offline or the account needs re-authentication. Also check that the address cell contains a valid address with no stray spaces.
Macros are disabled. A yellow security bar appears when the file opens. Only enable content for workbooks you created or trust. If the file came from elsewhere, do not enable macros; ask the sender for a macro-free version instead.
Nothing works after an Office update. Close Excel and Outlook completely, reopen them, and retest. If the problem persists, repair the Office installation from the operating system's app settings; this does not delete your files.
Frequently Asked Questions
Can Excel send an email without Outlook?
The mailto: formula works with any default mail app, including Apple Mail or Thunderbird. The VBA method relies on a locally installed Outlook; it does not send through Gmail or other webmail on its own.
Does this work in Excel for the web or on mobile?
No. Excel for the web and the mobile apps do not run VBA macros, and mailto: links behave differently depending on the browser and device. Use the desktop app for either method.
Can a formula send automatically when a cell changes?
No. Formulas recalculate but cannot send mail. Only a macro can react to a change, and it should be limited to one specific cell to avoid sending many messages.
Will the email send if the workbook is closed?
No. Both methods need Excel open and the file loaded. For reminders while the file is closed, use your mail app's own scheduling or a calendar reminder instead.
Is it safe to enable macros in a downloaded workbook?
Only if you trust the source. Macros can do anything your account can do, including sending mail and changing files. When in doubt, keep macros disabled and rebuild the short procedure yourself.