Copying whole range into a new sheet based on cell value

frustrated_macro

New Member
Joined
Sep 4, 2019
Messages
49
Office Version
  1. 365
Platform
  1. Windows
Hi - i have a huge document to sort through and split into 27 different tabs. basically, everything that in column A says "apple" i need all of the rows copied into the "apple" tab and so on, header row included
There will be a fixed number of columns, but this report will grow in length each week so i would need it to find apple in lines a2 to infinity and copy all the rows from columns from A to L over to each tab


1699538598339.png
 
Why are then using actual physical data filters instead of the FILTER function?
The FILTER replaces the need for physical data filters!
You just build the criteria right into the FILTER function!

Just separate each criteria with a "*", as shown here: How To Use Excel FILTER Function With Multiple Criteria
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Why are then using actual physical data filters instead of the FILTER function?
The FILTER replaces the need for physical data filters!
You just build the criteria right into the FILTER function!

Just separate each criteria with a "*", as shown here: How To Use Excel FILTER Function With Multiple Criteria
oh, are you talking about the AutoFilter. ?
i need to keep the filtered results still available for use after the users update the sheets. so if i use the FILTER function, like i did at the top of the code, it would get rid of them and i still need to see them
so i just need to figure out how to get it to skip that line if it cant any
 
Upvote 0
oh, are you talking about the AutoFilter. ?
i need to keep the filtered results still available for use after the users update the sheets. so if i use the FILTER function, like i did at the top of the code, it would get rid of them and i still need to see them
so i just need to figure out how to get it to skip that line if it cant any
No! Autofilter is something very different. Autofilter is NOT a function! Excel has a new FILTER function (something brand new in the past few years) that I think is even better than Autofilter.
If you take a look at the link I provided, it explains it and shows you EXACTLY how to use the FILTER function.

If you set up the range and criteria in the FILTER function properly, it should be dynamic, meaning once you set up the formula initially, you should not have to edit it again and it will dynamically show you all the data meeting the criteria, even as your source data changes.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,212
Members
453,023
Latest member
alabaz

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