AI for formulas, errors and unusual spending
Listen to this lesson
Nigerian voice narration
Fictional training case. Two problems land together: a SUMIFS formula returns zero and you cannot see why, and the director asks whether any spending pattern looks unusual before the auditors visit. AI can help with both — debugging formulas and hunting for patterns — if you know how to ask and how to check its answers.

Debug formulas with AI
Paste the formula and describe the problem: 'This SUMIFS returns 0 though matching rows exist. Column D contains Category, column G the amounts.' Common causes AI will suggest: trailing spaces, text-formatted numbers, wrong argument order. Test each suggestion on a copy.
Ask AI to write new formulas
Describe the layout precisely: 'Sheet1: A=Date, C=Department, G=Amount. Write a formula counting Operations vouchers above ₦100,000.' The more precise your column map, the better the formula. Then verify on known data before trusting it.
Pattern-hunting for unusual spending
Ask AI for the tests, then run them in Excel: 'List five red-flag patterns in expenditure data and the Excel formula or filter for each.' Classics: split payments just below approval limits, round-number amounts, weekend dates, duplicate amounts to one payee.

Build the prompt from three phrases — Role, Task and Format — and watch the AI answer.
Red flags are questions, not conclusions
A payment of ₦4,990,000 just under a ₦5m limit is a reason to look, not proof of wrongdoing. Document what you checked and what you found. Your job is to surface patterns; conclusions belong to audit and management.
Common mistakes to avoid
Beginners often apply an AI-suggested formula fix directly to the master file; test on a copy first. Another mistake is treating red flags as conclusions — a split payment is a reason to look, not proof of fraud, and accusing anyone on a pattern alone is a serious error. Finally, vague problem descriptions get vague fixes: 'formula broken' helps nobody, but 'SUMIFS returns 0, Category in D, amounts in G' gets the answer in one round.
Your practice
Ask a free AI tool for five expenditure red-flag tests with their Excel formulas. Implement two of them on the sample file (for example, amounts within 2% of a round million, and duplicate amounts). Write one sentence on what you found or did not find.
You are an internal control adviser. List five red-flag patterns to test for in departmental expenditure data, and for each give the Excel formula or filter that detects it, as a table.
Answer all three questions and check your answers to unlock the next lesson. Pass mark: 2 of 3.
When AI suggests a fix for a broken formula, you should…
The best way to get a correct formula from AI is to…
Round-number and just-below-limit amounts are classic examples of…
