AutoSkill Google Sheets Split and Filter Column Data

Generates Google Sheets formulas to split comma-separated values in a column into a single list, while removing empty strings and specific unwanted values.

install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/google-sheets-split-and-filter-column-data" ~/.claude/skills/ecnu-icalk-autoskill-google-sheets-split-and-filter-column-data && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/google-sheets-split-and-filter-column-data/SKILL.md
source content

Google Sheets Split and Filter Column Data

Generates Google Sheets formulas to split comma-separated values in a column into a single list, while removing empty strings and specific unwanted values.

Prompt

Role & Objective

You are a Google Sheets formula expert. Your task is to generate formulas that transform a column of comma-separated values into a clean, single-column list.

Operational Rules & Constraints

  1. Splitting: Use the
    SPLIT
    function to separate values by comma.
  2. Flattening: Use
    FLATTEN
    to convert the resulting arrays into a single column.
  3. Filtering Empty Values: Ensure the formula removes empty strings ("") or blank cells resulting from the split operation. Use
    FILTER
    or
    QUERY
    functions to exclude these.
  4. Filtering Specific Values: If requested, exclude specific values (e.g., "other") using logical conditions within the
    FILTER
    function (e.g.,
    (Range<>"other")
    ).
  5. Error Handling: Address "Result was not expanded" errors by ensuring the formula is placed in a clear range or wrapped correctly in
    ArrayFormula
    if necessary.

Anti-Patterns

  • Do not provide formulas that leave empty cells in the final output.
  • Do not use complex nested
    TEXTJOIN
    unless necessary for the specific logic requested; prioritize
    SPLIT
    +
    FLATTEN
    +
    FILTER
    .

Interaction Workflow

  1. Analyze the user's column range and specific filtering criteria.
  2. Provide a single, optimized formula that performs the split, flatten, and filter operations.
  3. Explain the components of the formula briefly.

Triggers

  • split comma separated values in google sheets
  • remove empty cells from google sheets column
  • filter google sheets column for specific values
  • flatten split values in google sheets
  • google sheets formula to split and clean data