AI in Excel: Write Formulas and Clean Exports
Short answer
Learn how to use Assistly with Excel to diagnose messy orders, draft formulas, and verify totals against a worked sample.
An order export arrives every week, and every week someone has to check the total, clean the rows and explain the exceptions. AI in Excel can help with parts of that job. Give Assistly the spreadsheet and a precise question, then use the supported Excel or CSV tools where they fit. Define what each row represents before removing duplicates or comparing figures, since a repeated customer is not necessarily a repeated order.
A good first job is an order export that keeps arriving in a slightly different shape. A person needs to know whether the weekly total is accurate, which records need attention, and whether the clean copy can be shared. Those are three questions with different checks. Keeping them separate gives you a result you can explain and reproduce.
The prompt to use in Assistly
Review my Excel export. First explain what a row represents from the column names and the examples I provide. Preserve order IDs as text and flag any assumptions. Exclude cancelled lines from the sales total. Identify exact duplicate rows separately from repeated order IDs. Suggest a formula for the cleaned copy, show your calculation on my sample, and list the records that need a human decision.Try this task
Define a row before calculating anything
Ask what one row represents. One file might contain one row per order, while another contains one row per line item. In a line item export, the order ID repeats when a customer buys two products. Dropping all repeated order IDs would lose valid sales. Look for an item ID or use a combination of order ID and line number when that is how the source identifies records.
Identify the columns that determine the business rule. For a sales total, you might need the order date, status, line amount, currency, and refund amount. For a shipping checklist, you may need a fulfillment status and a destination. Keep names and addresses out of a copy prepared solely for checking totals when they add nothing to the calculation.
Tell Assistly what the numbers represent. Does the line amount include tax? Is a refund a separate row or a field on the original order? Do you include pending orders? If these answers are unclear, ask the source owner. The assistant can flag an ambiguity and help write the question, but a calculation cannot resolve the policy by itself.
Work through a small sample in Excel
In this fictional export, row one is the header. Rows two and three both belong to order A103, but the line IDs are 1 and 2. Their amounts are 80 and 20. Row four repeats the same complete record as row three because a file was appended twice. Row five is order A104 for 50 and has status Cancelled. Row six is order A105 for 120 and has status Paid. All values in this sample are AED and exclude tax.
Assume A103 is also Paid. If you exclude cancellations and remove the one confirmed duplicate, the total is 220. Keep the two legitimate lines for A103. The original data, the cleaned copy, and a note about the removed row give a reviewer enough information to check the difference. If you group the original file by order ID alone, your rule would remove one of the valid items. The sample catches that mistake before it reaches a report.
A simple formula such as SUMIFS can calculate the total after the valid rows are identified. If column D holds status and column E holds amount, a sample formula is =SUMIFS(E2:E6,D2:D6,"Paid"). It still adds a duplicate if you run it on the raw export. Apply it to the cleaned range or add a condition for a verified inclusion flag. Adjust the formula to the actual columns and confirm the range covers any newly appended rows.
Examples you can follow
Check a duplicate
Input: A103 appears three times. Two records have different line numbers and one repeats the same complete record. Ask Assistly to distinguish repeated order IDs from repeated rows. Review: Keep both legitimate lines and confirm the duplicate against the source.
Explain a total
Input: A paid line for 120 and a cancelled line for 50 appear together. Ask for a formula using the exact status column. Review: The paid total includes 120 and excludes 50 under the example rule.
Reconcile two exports
Input: One spreadsheet records invoice IDs and expected amounts. A second records collected amounts. Ask Assistly to reconcile by invoice ID and report mismatches. Review: Check IDs with leading zeros and confirm that each file uses the same currency and billing period.
Check the exceptions before sharing the file
Look at missing statuses, empty amounts, values stored as text, and mixed currencies. A blank amount may mean a record is incomplete, or it may reflect a genuinely free item. Avoid treating both the same until the business rule is clear. Similarly, a refund entered as a positive value requires a different calculation from a refund entered as a negative amount.
Dates are another common source of errors. A sheet may display 04/05 in a familiar format while the imported value was interpreted with a different month and day order. Ask Assistly to identify ambiguous dates and compare them against an unambiguous record. Keep date and currency formats consistent with the source when handing the file to another team.
Record three checks: the starting row count, the final row count, and the reason each set of rows was removed or excluded. An exclusion affects the calculation even if the row remains in the worksheet. Keeping both counts gives the reviewer a faster way to find the point where results diverged.
Make the weekly process easier to repeat
Save the accepted formula, the column mapping, and the inclusion rules. Put the date range and currency at the top of the report. If someone sends a new export with a renamed status column, compare its headers to your notes before copying in the formula. Ask Assistly to update references and explain the change.
Start with a small example that includes a valid duplicate ID, a cancelled row, and a blank value. Compare the manual total to the formula output. This small sample is easier to troubleshoot than a thousand rows and can be reused whenever the export changes. Once the results match, apply the rule to the full supported file and check a sample of exceptions. Continue with a related workflow: Draft a Client Status Update From a Jira Export
Protect identifiers when moving between formats
A CSV file can contain 000784 as an order reference even though Excel displays it as 784 after opening the file. Specify text when importing identifiers that need leading zeros. Compare a handful of IDs against the original export before reconciling files, especially if an apparently missing invoice has a different number of digits. Continue with a related workflow: Draft Overdue Invoice Reminders From Excel
FAQs
- Does Assistly install an Excel add-in?
This guide uses the Assistly console and an Excel or CSV file you supply. Work with the supported file tools or paste the relevant columns, then review the formula or revised file in Excel.
- Can it remove all duplicate order IDs?
Ask it to flag repeated IDs first. An order can legitimately contain multiple rows. Confirm the record key and decide which duplicate rule is appropriate before removing data.
- Will a suggested formula match my workbook automatically?
Use the worksheet names, column letters, and Excel conventions in your workbook when checking the formula. Test it against a few rows with known results, including blanks and cancelled records.