Formulas

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
We have a master spreadsheet that we download from a call center that lists all people who called, addresses, telephone number and comments. We sort by state. I would like to make Excel pull all the people from Vermont and copy to another page, all people from New Jersey and copy onto a separate page, etc ... in one shot. Any suggestions?
 

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.
The autofilter function is very useful. However, if you store the address as a single cell value be slightly more cunning and filtet on a containing ie for vermont
Selection.AutoFilter Field:=1, Criteria1:="=vermont", Operator:=xlAnd
you can then paste and copy in ther normal way. if you send me a few lines of the data i can write the whole thing for you for free. :smile:
Just tell me what sheets you want the data to go to, and if the sheets exist.
ciao,
Henry
 
Upvote 0
Copy/Paste is a very inefficent way of transferring large amounts of data. As I was suggesting above this can be accomplished with a single VBA statement...

Range("Sheet1!A1:C5").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range("Sheet1!F1:F2"), CopyToRange:=Range("Sheet2!A1:C1"), Unique:=False

Here, a 3 field, 5 row data list is filtered on a single column criteria (F1:F2) and the results are "sent" directly to Sheet2.
 
Upvote 0

Forum statistics

Threads
1,223,350
Messages
6,171,584
Members
452,411
Latest member
colpie

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