Extract Lines from Large Spreadsheet

Toonloon

Board Regular
Joined
Dec 13, 2005
Messages
98
Hi Everyone

I have a spreadsheet with approx 20,000 lines in it.

Column A is Store Number
Column B is Product Number

76 1017391
76 1137737
76 1017227
101 1033936
101 1015741
101 1137262
323 1057030
323 1004493
323 1033066
323 1033001

What i'm trying to do is to extract into a separate excel file... the codes for each store number.

In other words, using the above example, i'd ideally click on a button and i'd end up with 3 separate excel files, in a specific directory, one for each store number, 76, 101 and 323

the file for store 76 would contain
76 1017391
76 1137737
76 1017227

the file for store 101
101 1033936
101 1015741
101 1137262

and the file for store 323
323 1057030
323 1004493
323 1033066
323 1033001

I hope i'm explaining this correctly.

Does any genius out there know if this can be done...

Thanks in advance
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi,

You can use Data > Filter
filter the data for each Store Number
and copy(Ctrl+C) and paste(Ctrl+V) in the proper sheet

M.
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,920
Latest member
jaspers

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top