R for Excel
Ask a question about your data in plain English. Your AI writes the R code, R runs right inside Excel, and the answer comes back as tables, plots and a report.
2 Ask your AI
3 Run R code
4 Results
A statistician's toolkit, one panel away
R is the language statisticians use. R for Excel puts it beside your workbook, so you can use it without installing R or learning its syntax.
Ask in plain English
Type the question you're investigating. The app writes a prompt that describes your data so your AI's code fits it first time.
R runs inside the add-in
R is compiled to WebAssembly (webR) and runs on your computer. There's nothing to install, and your data isn't uploaded to analyze it.
Results back in Excel
Tables land on sheets as clean, formatted ranges. Plots insert as pictures at the selected cell.
The AI explains itself
Every reply says why the analysis suits the question and its assumptions. A second prompt turns R's output into a plain-English interpretation.
Many analyses, one workbook
Each analysis has its own tab. They're saved in the workbook, and you can download one and import it into another.
A report you can hand in
Copy the whole analysis as Markdown, or download it as a web page that opens in Word and prints to PDF.
From question to report in six numbered steps
The panel follows one analysis from top to bottom.
Data
Choose an Excel Table or a block of cells. Each becomes an R data frame. Tables grow with your data, and the app re-reads them every run.
Ask your AI
Write your question, then Copy prompt. Paste it into ChatGPT, Claude, Copilot, Gemini or any assistant.
Run R code
Paste the whole reply back. The app keeps the code, shows the explanation, and Run does the rest, installing any packages it needs.
Results
Console output, plots and tables appear. Send a table to a new sheet or the selected cell, or send everything at once.
Interpretation
Copy a second prompt with R's output into the same conversation, and paste the plain-English interpretation back.
Report
Copy the finished analysis as Markdown, or download it as one HTML page with the plots embedded.
Something went wrong? If R reports an error, Copy a prompt to fix it bundles the code, the error and your data description for your AI. Anything printed before the error is kept.
The prompt is the only thing that leaves your computer
R runs locally. The AI never connects to your workbook. It gets a description of your data, and you can read it before you send it.
- Column summaries, not your spreadsheet. Names, types, ranges, and up to twelve category values with counts.
- Sample rows are optional. Untick Include 5 sample rows for confidential data, and rename sensitive columns first if needed.
- Read it first. Show the prompt displays exactly what will be copied.
- No lock-in. Use the assistant your organization already allows, or none: paste code from a textbook instead.
## What I want to find out Does advertising spend predict sales? ## The data ads · 48 rows × 4 columns Ad_Spend number min 1.2k · mean 5.8k · max 12k Sales number min 18k · mean 61k · max 140k Region text North 12 · South 12 · East 12 · West 12 ## The R environment No files, no internet, no interactive input. Missing values are NA. Base R preferred. ## What to send back 1. R code (one complete block, commented) 2. Why this analysis
| SUMMARY OUTPUT · example layout | ||
|---|---|---|
| Regression Statistics | ||
| Multiple R | 0.874 | |
| R Square | 0.764 | |
| Observations | 48 | |
| ANOVA | df | Significance F |
| Regression | 1 | 2.1E-15 |
| Coefficients | Std Error | P-value |
| Intercept | 3,812 | 0.0004 |
| Ad_Spend | 0.61 | 2.1E-15 |
Illustrative values.
Formatted like the Analysis ToolPak
A single call, excel_out(), turns an R result into a tidy range. A regression comes out in the familiar SUMMARY OUTPUT layout, so students can compare it with Excel's own.
- It understands R's results. Tests, linear and generalized models, ANOVA, Tukey comparisons and tables are laid out for you.
- Clean sheets. Gridlines off, light borders, italic headers, and columns sized to fit.
- Full precision. Numbers aren't rounded, so you decide the decimals with Excel's own formatting.
Nine ready-made analyses that adapt to your data
Pick one from Examples… and it fills in your own columns. If your data doesn't fit, it uses R's built-in mtcars data.
- Descriptive statistics
- Histogram
- Confidence interval & one-sample t-test
- Compare two groups (t-test)
- Correlation
- Simple regression
- Multiple regression
- One-way ANOVA
- Chi-square test of independence
Or type any R you like. Packages named in library() install on first use when they're available for webR.
Every analysis is a tab you can carry anywhere
An analysis is its description, its data sources, its question and its code. It saves in the workbook, and travels beyond it when you want.
- Tabs for every question. Switch between analyses without losing any of them, or pop one out into a window of its own.
- Download and import. Save an analysis as a small file and open it in another workbook. It holds the setup, not your results or data.
- One report. Download it as a single HTML page with the plots embedded. Open it in Word to save as .docx, or print it to PDF.
For teachers
Give students a workbook with the R for Excel app already set to start. They run the textbook's code, or ask an AI, and compare their output with Excel's ToolPak.
For analysts
Reuse a good analysis on next month's data: import it into the new workbook, point it at the new table, and click Run.
It's a folder of plain web files
R for Excel is itself a JOLT app. Open it, read it, copy it, and make your own.
| File | What it does |
|---|---|
jolt.json | The app's name, version, and permissions: it runs in Excel, and may connect to webr.r-wasm.org and repo.r-wasm.org, and nowhere else. |
main.js | The panel, built with VanJS, and every call to Excel. |
rsession.js | Starts R, binds data frames, installs packages and captures output. |
data.js · prompt.js | Plain functions: Excel values to R columns, and the prompts for your AI. |
jolt.R | The R helpers, including excel_out(). |
report.js · markdown.js | The report and the formatted explanations. |
Because it's a JOLT app, you can keep a copy in a workbook, or publish it once so every workbook uses the same version, whichever suits your class or team.
Install JET, then add the app
Free to install and use, with no fees, ever.
R for Excel is a preview. It isn't on the JAM app market yet, so it has no install code. Its source is public, and the code is yours to read, run or adapt.
- Install JET in Excel. It's the runner for every JOLT app.
- Open the app's source on GitHub: availabooks/jolt-apps · r.
- Follow Run from URL or code, or load the folder with JADE or JUICE.
When it's published, you'll install it from JAM with a single code and can review it with your own AI first.
What do I need?
Excel on Windows, Mac or the web, with JET installed, and an internet connection to start R and to install packages.
How long does it take to start?
The first start downloads about 30 MB, so give it a minute. After that R starts much faster, because the browser keeps the download.
Do plots work on a Mac?
They need a recent macOS and Safari (16.4 or later). Without it, your code still runs but plots aren't captured.
What if my code never finishes?
Click Restart R. That ends the session and clears every variable.
Is every R package available?
No. R runs as WebAssembly, so only packages built for webR can be installed.
Make your next analysis a conversation.
See what else your own AI can build for Excel.