AI와 내일, 그리고 우리.
코딩

Turn manual Excel work into Python scripts with Cursor

사용한 도구Cursor

Cursor can turn repetitive Excel tasks into Python scripts that run in seconds. You describe what you do manually, and Cursor writes the automation code for you. This is useful for anyone who spends time on data entry, file merging, formatting, or regular Excel reports.

What you can make

  • A script that cleans and formats data in dozens of files at once
  • Tools that merge weekly reports from different sources into one file
  • Automated validation that flags errors in uploaded data
  • Report generators that pull from raw data and apply your formatting rules

Skills and tools you need

  • Cursor (free plan, paid for heavier use): writes the Python code based on your description
  • Python installed on your computer: runs the automation script
  • Excel or CSV files with the data you want to automate
  • Basic understanding of what your manual task does step by step
  • Willingness to test and refine (no prior coding required)

How to build it

  1. Open Cursor and create a new Python file, then install the pandas library if prompted (Cursor will help with this).
  2. Describe your Excel task to Cursor in the chat: which columns to change, what rules to apply, and what the output should look like.
  3. Review the generated code and run it on a small sample file first to see if it works as expected.
  4. Tell Cursor what to fix or add (better error messages, handling missing data, saving to a new file).
  5. Add logic for file paths and batch processing if you need to run this on multiple files.
  6. Test the script on your real data and set it up to run whenever you need it.

Prompt to copy

For step 2, describing your task:

I need to automate this Excel task: [describe what you do manually]. 

My file has these columns: [list column names]. 

I need to: [list the changes - remove duplicates, format dates, calculate totals, merge with another file, etc.].

The output should be: [describe the final file or result].

Write a Python script using pandas that does this.

For step 4, adding improvements:

Add error handling for [missing columns, empty cells, invalid data, etc.].

Also add a way to [process multiple files in a folder / save with a timestamp / create a summary log / etc.].

Tips

  • Start with one small sample Excel file before running on hundreds of files
  • Be specific about column names, date formats, and business rules so Cursor generates accurate code
  • Keep a backup folder of your original files until you trust the automation

What Excel task takes up most of your work week?

운영자가 정리한 AI 활용 가이드입니다. 메뉴 이름과 요금제는 바뀔 수 있으니 아래 링크에서 함께 확인해 주세요.

추천 0

댓글 0