Splitting an Excel file in to many is easier than splitting bill in a restaurant among friends. All you need is advanced filters, a few lines of VBA code and some data. You can go splitting in no time.
Context:
Lets say you have lots of data like this in a file. And you want to split this in to multiple files, one per salesperson.

Solution – Split Data in to Multiple Files using Advanced Filters & VBA
The process of splitting data can be broken down to 4 steps.
- Identify the split criteria and list down all values in a small range. In our case, we list all the salespersons names in a named range lstSalesman.

- Set up advanced filters so that we can filter the data by one salesman at a time.

- Now, for each salesman, apply advanced filters and set it to copy the filtered values elsewhere.
- Copy the filtered values
- Add a new workbook and paste the copied values there.
- Save the new workbook with a unique name
- Repeat the above 3 steps for each salesman
- That is all! You are done splitting.
Video Lesson on Splitting Data using Filters & VBA
Since splitting data in to multiple files requires a bit of macro code & advanced filter knowledge, I have created a short lesson explaining how this works. Watch it below.
[If you are not able to see the video, watch it on our Youtube Channel]
If you are new to VBA, take our crash course.
Download Split Data Example Workbook
Click here to download the split data example workbook.To use this,
- Save the downloaded file to any folder.
- Open the file and enable macros.
- Examine everything and when ready, click on “Extract” button.
- Check the folder where you saved the file and you will fine 4 new Excel workbooks named after the salespersons with the data extracted for them.
You can find the macro code in Module 1.
How do you Handle Splitting Situations?
In my work, I rarely had to split data. And whenever I had to split data, I usually copy paste the data after filtering what I want. But I can imagine many real life scenarios where you need to automate the splitting part.
How do you split data? What techniques and ideas you use to speed up the splitting process? Please share using comments.
More on Splitting & Consolidation
If you are in to splitting or combining things, we have a selection of tips & examples to help you. Check out these articles.
- Consolidating Data in Excel – a collection of techniques & tips
- Split Text on new line using VBA
- Combining Data using Excel’s Consolidate Feature
- Using 3D References to Consolidate Data
PS: Heck, we have even have an Excel tip to tell you how to split expenses among friends 😛
PPS: You can use Pivot Table Report Filters if you want to split data in to multiple sheets.

















9 Responses to “CP044: My first dashboard was a failure!!!”
CONGRATS on the book!
Thanks for this podcast. It's great to hear about your disaster and recovery. It's a reminder that we're all human. None of this skill came easily.
Thank you Oz. I believe that we learn most by analyzing our mistakes.
Hey chandoo
this really a good lesson learned
but as I have already stated in one of my previous email that it would be more helpful for us if you could release videos of your classes for us
thanks
The article gave me motivation, especially you describing the terrible disaster that you faced but how to get back from the setbacks. Thanks for that, but with video this will be more fun.
Hi Nafi,
Thanks for your comments. Please note that this is (and will be) audio podcast. For videos, I suggest subscribing to our YouTube channel. No point listening to audio and saying its not video.
You always motivate me with respect of the tools in excel. How we can really exploit it to the fullest. Thanks very much
Thank you Amankwah... 🙂
Thank you very much, Chandoo, for your excellent lessons, I am anxious to learn so valuable tips and tricks from you, keep up the great job!
I truly appreciate the transcripts of the podcasts, because as a speaker of English as a second language, it allows me to fully understand the material. It'd be great if you can add transcripts to your online courses too, I am sure people will welcome this feature.
Dashboards for Excel has arrived in Laguna Beach, CA! Thanks!
Now I need to make time to "learn and inwardly digest" its contents as one of my high school teachers would admonish us!