Google has quietly rolled out a sandboxed Code Execution tool inside Gemini, allowing users to run Python directly in Google Sheets without any installations or programming knowledge. Simply describe what you need, and Gemini writes the script, executes it, and returns the result.
In benchmarks like SpreadsheetBench, the tool scored over 70%, demonstrating its ability to understand messy real-world spreadsheet problems. This feature is especially useful for tasks such as cleaning data, automating reports, and solving spreadsheet issues.
Previously, handling complex spreadsheet tasks required learning intricate formulas or hiring a specialist. Now, users can type commands like "pull every email address from this column and sort them by domain" and watch the magic happen.
A key aspect is that the code execution is sandboxed—it runs in a safe, isolated environment that cannot affect your system or files. This ensures security while empowering users to leverage AI for productivity.
The update blurs the line between office software and development tools, turning spreadsheets into app builders and documents into live workspaces. As Google continues to integrate AI into its Workspace suite, tasks that once required coding expertise become accessible to everyone.