Skip to content
← Back to Articles
AI

AI එකෙන් Excel සහ Google Sheets formulas නිවැරදිව ලියාගන්නේ කොහොමද | Get Spreadsheet Formulas Right With AI: Excel and Google Sheets

Formula එකක් මතක නැතිද? ChatGPT හෝ Claude එකෙන් නිවැරදි formula එක ලබාගෙන, එය ආරක්ෂිතව test කරන සරල ක්‍රමයක් මෙන්න.

Paperskeep
Paperskeep
Dec 06, 2026 · 5 min read

සිංහල පළමුව, English version below.

සිංහල

Spreadsheet එකක් ඇරලා, "මේ column දෙක compare කරලා ගැලපෙන ඒවා විතරක් එකතු කරන්න formula එක මොකක්ද?" කියලා හිතාගෙන ඉන්න වෙලාවල් අපි හැමෝටම තියෙනවා. මෙතනදී ChatGPT, Claude, Copilot වගේ AI tools ගොඩක් උදව් වෙනවා. හැබැයි හරියට අහන්නේ නැත්නම් වැරදි formula එකක් හරි, ඔයාගේ Excel version එකේ වැඩ නොකරන එකක් හරි ලැබෙන්න පුළුවන්.

පළමුව: ඔයාගේ sheet එක විස්තර කරන්න

AI එකට ඔයාගේ screen එක පේන්නේ නැහැ. ඒ නිසා prompt එකේ මේ ටික කියන්න:

  • ඔයා පාවිච්චි කරන්නේ Excel ද, Google Sheets ද (Excel නම් version එකත්)
  • Columns මොනවද, header row එක කොහෙද (උදා: A = දිනය, B = පාරිභෝගිකයා, C = මුදල)
  • Data කොච්චර rows වලට යනවද
  • ඔයාට අවසානයේ ඕන result එක හරියටම මොකක්ද

උදාහරණයක්: "Google Sheets. A2:A500 දිනයන්, C2:C500 මුදල්. 2026 නොවැම්බර් මාසයට අදාළ මුදල් එකතුව F1 cell එකට ඕන."

Sample data ටිකක් දෙන්න

Rows 5ක් 6ක් copy කරලා prompt එකට paste කරන්න. සැබෑ නම්, දුරකථන අංක වගේ පුද්ගලික තොරතුරු තියෙනවා නම් ඒවා බොරු නම් වලින් මාරු කරන්න. Sample එකක් දැක්කම AI එකට data වල හැඩය (දිනය text එකක්ද, number එකක්ද වගේ) තේරෙනවා.

Formula එක විතරක් නෙවෙයි, පැහැදිලි කිරීමත් ඉල්ලන්න

"Formula එක දීලා, ඒකේ හැම කොටසක්ම කරන්නේ මොකක්ද කියලා සරලව පැහැදිලි කරන්න" කියලා ඉල්ලන්න. එතකොට ඔයාටත් ඉගෙනගන්න පුළුවන්, ඊළඟ පාර AI නැතුවම ලියාගන්නත් පුළුවන්.

AI දෙන formula එකක් විශ්වාස කරන්න කලින්, ඔයාටම උත්තරය දන්නා පොඩි data ටිකක් මත ඒක test කරන්න.

Test කරන්නේ කොහොමද

  1. Sheet එකේ copy එකක් හදාගන්න. Original එකේ කෙලින්ම අත තියන්න එපා.
  2. අතින් ගණන් කරලා උත්තරය දන්නා rows 5ක් 10ක් තෝරගන්න.
  3. Formula එක දාලා, ඔයාගේ උත්තරයට ගැලපෙනවද බලන්න.
  4. හිස් cells, වැරදි spelling, දිනයක් text විදියට තියෙන තැන් වගේ "අමුතු" rows කිහිපයක් එකතු කරලා ආයෙත් බලන්න.

පොදු ගැටලු

  • Version ප්‍රශ්න: XLOOKUP, FILTER වගේ functions පරණ Excel versions වල නැහැ. Error එකක් ආවොත් "මගේ Excel එකේ XLOOKUP නැහැ, විකල්පයක් දෙන්න" කියලා කියන්න.
  • Comma සහ semicolon: සමහර රටවල settings වල formula arguments වෙන් කරන්නේ semicolon (;) වලින්. Formula එක වැඩ නැත්නම් මේක check කරන්න.
  • Error messages: #N/A, #VALUE! වගේ error එකක් ආවොත් ඒ error එකයි formula එකයි දෙකම AI එකට paste කරලා හේතුව අහන්න.

අවසාන වශයෙන්

AI කියන්නේ spreadsheet ගුරුවරයෙක් වගේ. හොඳ ප්‍රශ්නයක් ඇහුවොත් හොඳ උත්තරයක් එනවා. හැබැයි ගිණුම්, වැටුප්, බදු වගේ වැදගත් දේවලට පාවිච්චි කරනවා නම්, test කරලා, දෙවරක් check කරලා විතරක් භාවිතා කරන්න.


English

We have all stared at a spreadsheet thinking, "What is the formula that compares these two columns and only adds up the matches?" AI tools like ChatGPT, Claude and Copilot are genuinely good at this. But if you ask vaguely, you may get a formula that is wrong or that simply does not exist in your version of Excel.

First, describe your sheet

The AI cannot see your screen, so put these in your prompt:

  • Whether you use Excel or Google Sheets (and your Excel version if you know it)
  • What each column holds and where the header row is (for example: A = date, B = customer, C = amount)
  • Roughly how many rows the data runs to
  • Exactly what result you want at the end

Example: "Google Sheets. Dates in A2:A500, amounts in C2:C500. I want the total for November 2026 in cell F1."

Give it a small sample

Copy five or six rows into the prompt. If they contain real names, phone numbers or other personal details, swap them for made-up ones first. Seeing a sample helps the AI understand the shape of your data, such as whether dates are stored as real dates or as text.

Ask for an explanation, not just the formula

Add "give me the formula and explain what each part does in plain language." You learn something, and next time you might write it yourself without help.

Before you trust a formula from AI, test it on a small set of data where you already know the answer.

How to test it

  1. Make a copy of the sheet. Do not experiment on the original.
  2. Pick five to ten rows where you can work out the answer by hand.
  3. Enter the formula and check it matches your answer.
  4. Add a few "awkward" rows, such as blank cells, misspelled names or a date typed as text, and check again.

Common problems

  • Version gaps: functions like XLOOKUP and FILTER are missing from older Excel versions. If you see an error, say "my Excel doesn't have XLOOKUP, give me an alternative."
  • Commas vs semicolons: in some regional settings, formula arguments are separated by semicolons. If a formula refuses to work, check this.
  • Error messages: if you get #N/A or #VALUE!, paste both the error and the formula back into the chat and ask why.

The bottom line

Think of AI as a patient spreadsheet tutor. Ask a clear question and you usually get a clear answer. But when the numbers matter, such as accounts, salaries or tax, only rely on a formula after you have tested it and checked it twice.

Enjoyed this piece?

Get the next one in your inbox, every other Friday.

More from Paperskeep