• AI Bootcamp
  • Marketingová Plzeň
  • SEO Pivo
  • Contact
  • [email protected]
  • Personal website
[email protected]
Personal website
SEO, AI and Marketing Blog
Martin Bangho
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN
Home AI & LLMs
Syntetická redakční ilustrace: Martin Bangho v bílé košili kontroluje modré a šedé válečky na společné základně.

AI for spreadsheets and charts: a review workflow that catches incorrect numbers

Martin Bangho by Martin Bangho
November 24, 2026
in AI & LLMs
Reading Time: 6 mins read
0
0

You cannot verify an AI analysis of a spreadsheet by asking the same model to check more strictly. You need to know what the columns mean, how much data was loaded and how to repeat the calculation. For a chart, you also need to see the actual image: correctly transcribing a value does not mean correctly interpreting the axis.

A practical workflow has three separate parts. Retrieval identifies the row that answers the question. Calculation processes a precisely defined dataset. Interpretation explains what the result does—and does not—establish. A language model can help with all three, but the evidence of correctness differs each time.

Define the question and the right denominator

“Which channel performs best?” is not a calculation brief. It could mean the most leads, the lowest cost or the highest proportion of visits generating a lead. First choose one question and define the result. Then specify the period, market, unit represented by one row and rule for missing values.

Further reading

Martin Bangho přikládá dřevěný válec ke kruhovému otvoru v kovové šabloně.

How to test a company AI assistant: questions, sources and errors before launch

November 24, 2026
Instalace Hermes: oddělená volba umístění agenta a modelu a následná kontrola prvního souborového úkolu.

How to download, install and set up Hermes Agent on a PC or VPS

November 24, 2026
Návrh skillu vede od vymezení tvrzení k porovnání s výňatkem a k doloženému závěru nebo pojmenování mezery.

How to create and test a custom skill for Hermes Agent

November 24, 2026
Ilustrační schéma: od neutrální postavy vedou šipky k symbolům textu, zvuku a digitálního prezentujícího.

AI avatars for video localization: when they help and what humans must review

November 24, 2026

In the original synthetic demonstration below, each row summarizes visits and leads for a subsegment. We assume at most one lead per visit; real data would require verification of that condition. We calculate the proportion of leads to visits only in complete, valid rows. The result is therefore neither the conversion rate of an entire website nor a client result.

If you first need to choose the marketing metrics themselves, see data measurement in content marketing. Here we address a narrower problem: whether a particular number in an AI output can be reproduced from the input data.

Check data types and incomplete rows

A CSV is not a ready-made database. It is text with rules for separating fields. Our file uses semicolons, decimal commas for costs and identifiers with leading zeros. Seemingly harmless automatic conversions can change a row’s identity or a financial value.

Original synthetic CSV: six rows, with no real reporting period or client
ID Channel Visits Leads Cost in CZK
001 SEO 100 10 1 250,50
002 SEO 900 9 2 000,00
003 SEO 200 empty field 500,00
004 PPC 0 0 0,00
005 PPC sto (Czech for “one hundred”) 2 300,00
006 PPC 50 missing field missing field

The check was performed in Python 3.14.9 using the standard csv and decimal modules, without calling a model. Importing through DictReader preserved the ID 001 as text. It also loaded visits as text rather than automatically converting them to numbers. The empty leads field in 003 returned an empty string; the missing field in the short row 006 returned None. This matches the CSV import documentation.

We excluded 003, 005 and 006 from the calculation. We did not fill missing leads with zero or silently replace the word “sto” with 100. A different approved cleaning policy is possible, but it must show which values it changes and why. Row 004 is a valid zero-total summary. Its own ratio of 0 divided by 0 is undefined, not zero percent.

Distinguish finding a row from performing a calculation

The question “What is the cost for ID 001?” requires retrieving one cell: CZK 1,250.50. A question about the combined rate requires processing every accepted row. If an application merely retrieves a few text snippets and passes them to a model, they may not contain the entire denominator. A fluent answer will not reveal that.

Ask the tool for the imported row count, filters used, excluded records and the calculation actually executed. An “Analyzing data” heading is not technical evidence. Also check file limits, workbook sheets and whether the application calculates over the data or merely reads a preview. Providing a screenshot of a table is not equivalent to providing a CSV.

Recalculate the numbers outside the language model

Valid rows 001, 002 and 004 contain a total of 1,000 visits and 19 leads. The combined rate is 19 ÷ 1,000 × 100 = 1.9%. The simple average of the rates for the two nonzero rows, 10% and 1%, is 5.5%. That is the wrong answer to a question about the combined rate, because it gives each row equal weight despite their different visit counts.

Total costs for accepted rows are CZK 3,250.50. Amounts are converted from text to the Decimal type only after explicitly removing the space and converting the decimal comma. That does not mean the same adjustment will safely repair every international export. Thousands and decimal separators must match the data dictionary.

The complete example below includes the input CSV and assertions. Save it as kontrola.py and run it with python3 kontrola.py. It uses only the standard library, does not access the network and makes no changes to the original data.

Complete verified Python example (expand)
import csv, io, json, platform
from decimal import Decimal

CSV = '''id;kanal;navstevy;poptavky;naklad_kc
001;SEO;100;10;1 250,50
002;SEO;900;9;2 000,00
003;SEO;200;;500,00
004;PPC;0;0;0,00
005;PPC;sto;2;300,00
006;PPC;50
'''

def check():
    rows = list(csv.DictReader(io.StringIO(CSV), delimiter=';'))
    assert rows[0]['id'] == '001'
    assert isinstance(rows[0]['navstevy'], str)
    assert rows[-1]['poptavky'] is None
    assert rows[2]['poptavky'] == ''
    valid, rejected = [], []
    for r in rows:
        try:
            n, p = int(r['navstevy']), int(r['poptavky'])
            cost = Decimal(r['naklad_kc'].replace(' ', '').replace(',', '.'))
            if n < 0 or p < 0 or p > n or cost < 0:
                raise ValueError('invalid range')
            valid.append((r['id'], n, p, cost))
        except (ValueError, TypeError, AttributeError):
            rejected.append(r['id'])
    n = sum(r[1] for r in valid)
    p = sum(r[2] for r in valid)
    rates = [Decimal(r[2]) / r[1] * 100 for r in valid if r[1] > 0]
    result = {
        'python': platform.python_version(),
        'input_rows': len(rows),
        'accepted_ids': [r[0] for r in valid],
        'rejected_ids': rejected,
        'visits_complete_rows': n,
        'leads_complete_rows': p,
        'weighted_percent': str(Decimal(p) / n * 100),
        'wrong_unweighted_percent': str(sum(rates) / len(rates)),
        'cost_complete_rows_CZK': str(sum(r[3] for r in valid)),
        'undefined_zero_visit_ids': [r[0] for r in valid if r[1] == 0],
    }
    assert (n, p, rejected) == (1000, 19, ['003', '005', '006'])
    assert result['weighted_percent'] == '1.900'
    assert Decimal(result['wrong_unweighted_percent']) == Decimal('5.5')
    assert result['cost_complete_rows_CZK'] == '3250.50'
    return result

if __name__ == '__main__':
    print(json.dumps(check(), ensure_ascii=False, indent=2))

In this synthetic demonstration, the error is specifically substituting an average of row rates for the weighted result. It is not a captured response from a particular AI product. The test demonstrates the behavior of the import and checking program, not a model’s success rate in data analysis.

For a chart, check the axis, unit and readability

Two horizontal bars: the correct combined rate of 1.9 percent and the incorrect unweighted average of 5.5 percent, on an axis from zero to six percent.
An original chart from the synthetic calculation. Both bars use the same axis from 0 to 6%. The second result is not an alternative estimate of conversion.

The correct interpretation is: the combined rate for complete, valid rows is 1.9%. The incorrect interpretation is: the website converts at 5.5%. The second sentence changes both the calculation and the scope of the conclusion. Even the first sentence does not permit filling in excluded rows or predicting business outcomes.

When reviewing someone else’s chart, first read the title, period, axes, units and legend. Check whether the axis starts at zero, whether it is logarithmic and whether a source is given. Then compare several printed values with the table. Do not estimate precise numbers from bar heights if data labels or original data are unavailable.

Open the original file and the actual mobile view. The entire page can have the correct width while the table breaks decimal numbers across lines. For wide tables, a labeled horizontally scrollable region is preferable to shrinking text until it is unreadable. Add a written result to the chart so that important information is not conveyed only through color or pixels.

Keep a reproducible verification record

Retain the original export, its checksum, script version, data dictionary, excluded-row list and output with the report. If AI proposed the code, save the version actually run, not just the conversation. Apply the same rules to the next export and record changes as a new methodology version.

For an SEO gap analysis, that trail matters more than another normalized score without inputs. And when calculating SEO ROI, check the assumptions as well. Without that, the arithmetic can be exact while the decision is wrong.

Need to turn an AI report into verifiable evidence?

I can help define the decision question, checking workflow and limits of AI use in marketing analysis. Tell me which number you currently cannot trace back to its inputs. We can define any deeper analytical implementation according to the dataset’s scope and responsibilities.

Tags: AnalysisGuide
Previous Post

How to brief and review AI visuals for your brand

Next Post

AI research from PDFs and videos: from a summary to a traceable claim

Martin Bangho

Martin Bangho

I’m Martin Bangho. I’ve worked in digital marketing and built websites since 2015. These days I help companies with SEO and with getting found in AI search. I question things, and I’m picky about the details, but I’m an optimist. I believe marketing can be honest and still make money for a business. When I’m not working on marketing or running my business, you’ll probably find me at the gym, at a hip-hop gig or out with friends. On this blog I write about questions that come up with clients, what I test myself and what I make of the results. Hermes, my AI assistant, helps me write. I bring the notes, the results and my own take. Hermes helps me structure the article, catch grammar mistakes and get back to the point when I’ve gone off on my third tangent in the middle of a sentence. I review and edit every article myself before it goes out, so it says exactly what I mean.

Related articles

Populární AI nástroje
AI & LLMs

Popular AI tools

November 24, 2026
Marketingové strategie v době AI: Jak se připravit na novou dobu
AI & LLMs

Marketing strategy in the age of AI: how to prepare for a new era

November 24, 2026
Adversarial Machine Learning: Jak se manipuluje s AI
AI & LLMs

Adversarial machine learning: how AI can be manipulated

November 24, 2026
Muž v bílé košili propojuje kabelové konektory na dřevěném přípravku vedle malé krabice.
AI & LLMs

UCP and ACP: what they do and when to integrate them into an online store

November 24, 2026
Next Post
Redakční AI ilustrace: konzultant v bílé košili kontroluje lupou list s geometrickými tvary; vedle leží otevřená kniha.

AI research from PDFs and videos: from a summary to a traceable claim

Odebírat
Upozornit na
0 Komentáře
Nejstarší
Nejnovější Nejlépe hodnocené

Martin Bangho

SEO Consultant & AI Strategist

I use data to build marketing plans with people across a business, from sales and development to content. The aim is to strengthen the brand and help it compete.

Tags

Analysis B2B B2C Brand E-commerce Event reports Google Guide Hermes Off-page SEO On-page SEO SaaS Technical SEO Theory Tools User Experience Websites

Latest posts

  • Buying a website: how much of its organic traffic is valuable to you?
  • Visual discoverability: connecting images to the right product and location
  • How to Choose a Copywriter
  • SEO GAP Analysis
  • How to Create a Content Calendar
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN

© 2025 Martin Bangho – SEO Consultant & AI Strategist

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN
[email protected]

© 2025 Martin Bangho – SEO Consultant & AI Strategist

This website uses cookies. By continuing to use it, you agree to their use. Read our privacy and cookie policy (in Czech).