Schedule Data Cleaning Functions in Google Sheets

On This Page

Introduction

Schedule Functions let you automate Flookup's core operations, such as Fuzzy match, Deduplication and Standardise text, so they run on their own without any manual intervention. This is ideal for keeping large datasets consistently clean, especially when new data is added regularly.

If you want to review probable duplicate groups visually before any removal, start with Fuzzy Conditional Formatting. If you want non-destructive formula output, use DEDUPE in Custom Functions.

You can schedule tasks at intervals ranging from every 15 minutes to once a month. For large datasets, the Minutes mode is recommended as it handles long-running jobs seamlessly.

To open the scheduling sidebar, navigate to Extensions > Flookup Data Wrangler > Schedule Functions in your Google Sheets menu.
Tip: Before scheduling, run the function manually on a small sample of your data to identify the optimal parameters.

Power Feature: The Learn from Examples operation allows you to teach transformations by demonstrating patterns with example data. Instead of choosing from predefined operations, show the system what dirty data looks like and what the clean version should be. The pattern synthesis engine then automatically detects the transformation logic and applies it to your entire dataset. This is ideal for complex cleaning tasks that do not fit neatly into standard operations.


How to Schedule a Function

  1. Select the function mode
    Choose the operation you want to automate from the top dropdown, such as Fuzzy match by percentage or Standardize text entries. The form will update to show only the relevant options for that function.
  2. Choose the processing mode
    Select how you want the task to handle your data:
    • Process data to the end: The task processes every row once and then stops. Best for one-off cleaning jobs.
    • Process data in a loop: After reaching the last row, the task restarts from the beginning. Best for maintaining ongoing data integrity.
  3. Configure the data ranges
    Define your data sources, such as Lookup_values, Table_values or Input range. Highlight the range in your sheet and click the corresponding Grab selected range button to populate the field.
  4. Set the output position
    Results will be written starting from the active cell at the time you create the schedule. Make sure you have selected the correct starting cell in your spreadsheet before clicking Schedule.
  5. Adjust parameters
    Specify function-specific settings such as Threshold, column indexes or operation types. See Tool-Specific Configuration below for details on each function.
  6. Choose a frequency mode
    Select how often the task should run from the Frequency mode dropdown. See the Frequency Modes section below for a detailed explanation of each option.
  7. Schedule the function
    Click Schedule to create the automated trigger. A status bar at the bottom of the sidebar will confirm the schedule was created.

Learn from Examples by Pattern Synthesis

The Learn from examples operation is a powerful pattern synthesis engine that automatically learns transformation rules from your data.

Instead of choosing from predefined operations, you show the system examples of what your dirty data looks like and what the clean version should be.

The engine then figures out the transformation logic and applies it to your entire dataset.

This feature is ideal when your data cleaning needs do not fit neatly into standard operations like "remove diacritics" or "extract domain".

For example, if you need to combine multiple transformations (remove special characters, collapse whitespace and convert to title case), you can demonstrate this with a few examples and the system will learn the pattern.

Real-World Examples

Task Dirty Clean Description
Phone number reformatting +1-555-123-4567 555 123 4567 The system learns to remove the country code, strip dashes and reformat with spaces.
Product code standardisation PROD-2024-001 v2 PROD2024001 Removes dashes, version suffixes and extra spaces.
Name standardisation SMITH, JOHN (Mr.) John Smith Removes titles and punctuation, then converts to proper title case.
URL cleanup https://example.com/page?utm=1 example.com Removes protocol and query parameters, extracting the domain.

How to Use It

  1. Prepare your example data
    Create two columns in your spreadsheet: one with dirty values and one with the corresponding clean values.

    You need at least 2 example pairs, but 3-5 examples typically give better results. The more examples you provide, the more accurately the system can identify the transformation pattern.
  2. Select the operation
    In the scheduling sidebar, choose Standardize text entries as the function mode, then select Learn from examples from the operation dropdown.
  3. Provide the example ranges
    Two new fields will appear: Dirty_values and Clean_values. Use the Grab selected range buttons to select your example columns. These are just for teaching the system the pattern, they are not the data you want to clean. The ranges must have the same number of rows.
  4. Test the pattern
    Click the Test pattern button. The system will analyse your examples, synthesise a transformation pipeline and show you a preview table with the results. Each row displays the original dirty value, the expected clean value and the actual result. Matching results are shown in green, mismatches in red.
  5. Review the detected rule
    Below the preview table, you will see the detected transformation rule (for example: "removeSpecialChars, then collapseWhitespace, then toTitleCase"). This shows you exactly what operations the system identified.
  6. Configure the Input range
    In the Configuration card above, make sure you have set the Input range to the data you want to clean. This is separate from your example ranges — the examples teach the system the pattern and the Input range is where that pattern gets applied.
  7. Schedule the transformation
    If the preview looks correct, click Schedule to apply the learned pattern to your full dataset. The transformation will run on the Input range you specified, using the pattern learned from your examples.

What Transformations Can It Learn?

The pattern synthesis engine can learn combinations of up to 24 primitive transformations, including:

The engine tries single transformations first, then combinations of two, then three, always selecting the simplest pipeline that satisfies all your examples.

Best Practices

Troubleshooting

Issue Explanation
"No pattern found" This means the engine could not find a transformation that converts your dirty examples to the clean examples. Check that your examples are correct and that the transformation is one of the supported primitives listed above.
"No common pattern found across all examples" Your examples require different transformations. For instance, if one example needs "remove digits" but another needs "remove letters", there is no single pattern that works for both. Provide more consistent examples.
"Ranges must have the same number of rows" Your dirty and clean ranges must be the same length. Check that you selected the correct ranges.
"At least 2 complete pairs required" You need at least 2 rows where both the dirty and clean values are filled in. Empty cells are skipped.
Preview shows mismatches The detected pattern does not work for all your examples. Add more examples to help the engine identify the correct pattern or check if your examples are consistent.

Frequency Modes

Flookup offers three frequency modes to suit different automation needs:


Minutes Mode for Large Datasets

Minutes mode is designed for large datasets and will continue processing until one of the following occurs:

Interaction with Processing Modes

Status Indicator

While a chain is active, a status bar appears at the top of the sidebar showing that the chain is running. The Stop Chain button also becomes visible, allowing you to halt the chain at any time without losing your progress.


Tool-Specific Configuration

Each function mode requires slightly different inputs. Here is a summary:


Managing Scheduled Tasks


Email Notifications

Flookup sends email notifications for key events so you are never left guessing about the status of your scheduled tasks:

Notifications are sent to the email address associated with your Google account. If you do not receive emails, ensure that messages from our support team are not being filtered by your email provider.


Technical Notes and Troubleshooting


Frequently Asked Questions

When should I use Schedule Functions instead of custom functions?

Use Schedule Functions for recurring jobs, large datasets and long-running operations. Use custom functions for quick in-cell checks and immediate formula output.

Can I stop a running schedule without losing progress?

Yes. Click Stop Chain to halt processing while preserving progress. You can resume later by scheduling the same function mode again.

How often can I run scheduled cleaning tasks?

You can schedule tasks from every 15 minutes up to monthly, depending on your data update cadence and available Apps Script quota.


You Might Also Like