SShortSingh.
Back to feed

Google Sheets formulas silently break in Excel, hiding errors behind IFERROR fallbacks

0
·1 views

When a Google Sheet is exported to .xlsx format, Google-specific functions like ARRAYFORMULA, QUERY, and FILTER do not exist in Excel and fail to evaluate. Rather than displaying an error, Excel wraps these unrecognised functions as DUMMYFUNCTION placeholders, which are then caught by any outer IFERROR logic in the original sheet. This causes cells to silently return fallback text — such as a dash or 'no matches' — making the file appear healthy when it is not. A developer discovered 203 such affected cells in a file being distributed via openpyxl, prompting them to write a Python script to detect Google-only function strings in formula cells. The recommended fix involves replacing dynamic-array functions with universally compatible alternatives like SUMPRODUCT and INDEX/MATCH, which work across Excel 2016, 2019, and 365.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Codeberg Bans AI-Generated Code After Members Vote 71% in Favor

Codeberg, a Berlin-based non-profit Git platform with a democratic membership structure, voted between July 9–22, 2026 to restrict AI-generated code uploads, with 358 votes in favor and 144 against out of 516 total. The new Terms of Use prohibit content primarily composed of code written by generative AI tools such as Claude or OpenAI Codex. Enforcement will be handled case-by-case rather than through automated mass deletions, and older repositories predating large language models are not affected. Supporters argue the policy addresses a practical imbalance: while AI makes code generation cheap, human volunteer reviewers still bear the full cost of evaluating every pull request. The Zig programming language community has since migrated its infrastructure to Codeberg, citing GitHub's push toward AI-assisted workflows as a key reason.

0
ProgrammingDEV Community ·

One Developer Built a 131-Test AI Eval Harness After a Chatbot Hallucinated a Discount

A solo developer building AI agents for WhatsApp discovered that passing all unit tests was no guarantee of safe production behavior after a lead qualification bot invented a non-existent 15% discount for a client. The incident caused no direct revenue loss but damaged trust, and the root cause was traced to subtle drift in the LLM's internal reasoning rather than any code bug. In response, the developer built a four-layer evaluation harness now comprising 131 tests, running on Oracle Cloud Infrastructure at just $0.03 per full run. Unlike standard unit tests, which verify deterministic code outputs, the harness also evaluates semantic intent, catching cases where an LLM might misclassify user messages after a model update. The developer now mandates that no new AI agent feature ships without first passing through this evaluation framework.

0
ProgrammingDEV Community ·

AI Gateway Pattern Lets Developers Use One Key for Claude, GPT, and Gemini

Managing multiple AI model providers typically requires separate API keys, SDKs, and billing accounts for each, adding complexity unrelated to the core product. The AI gateway pattern solves this by routing all requests through a single OpenAI-compatible endpoint using one credential, regardless of the target model. On Neon's serverless platform, enabling the gateway via a config flag automatically injects the required token and base URL into the deployed function, eliminating manual key management. A developer tested the setup by sending identical chat requests through a single handler to GPT, Claude, and Gemini, all returning correct responses with the same code. One noted compatibility issue is that GPT-5 models require the max_completion_tokens parameter, while other providers use max_tokens.

0
ProgrammingDEV Community ·

Why storing company data as static columns erases historical truth

A software developer argues that storing company attributes like CEO names and headquarters as simple database columns is fundamentally flawed, because these facts change over time and static fields cannot capture that history. When a value is overwritten, the previous data is permanently lost, making it impossible to answer questions tied to a specific point in time. The proposed fix is an event-based schema where each change is recorded as a new row with a valid_from date, a valid_to date, and a source URL, preserving the full timeline. The author also highlights the need to store date precision alongside dates, since sources often only specify a year or quarter rather than an exact day. The core principle offered is that any company fact capable of changing should be modelled as a dated, sourced event rather than a column.

Google Sheets formulas silently break in Excel, hiding errors behind IFERROR fallbacks · ShortSingh