Як скопіювати дані на інший аркуш за допомогою розширеного фільтру в Excel?
Зазвичай ми можемо швидко застосувати Розширений фільтр функція для вилучення даних із вихідних даних на тому ж аркуші. Але іноді, коли ви намагаєтесь скопіювати відфільтрований результат на інший аркуш, ви отримаєте таке попереджувальне повідомлення. Як у цьому випадку ви могли впоратися з цим завданням у Excel?
Скопіюйте дані на інший аркуш із розширеним фільтром за допомогою функції розширеного фільтра
Скопіюйте дані на інший аркуш із розширеним фільтром за допомогою коду VBA
Скопіюйте дані на інший аркуш із розширеним фільтром за допомогою функції розширеного фільтра
Ось просте обхідне рішення для вирішення цієї роботи, виконайте наступне:
1. Активуйте аркуш, куди потрібно скопіювати відфільтрований результат, за допомогою функції Розширений фільтр.
2. Потім натисніть дані > Advanced, див. скріншот:
3, в Розширений фільтр діалогове вікно, виберіть Скопіюйте в інше місце від дію і натисніть кнопку , щоб вибрати діапазон даних, який потрібно відфільтрувати, на іншому аркуші поруч із Діапазон списку, продовжуйте клацати
біля кнопки Діапазон критеріїв щоб вибрати критерії з іншого аркуша, див. знімок екрана:
4. Потім натисніть біля кнопки Скопіювати до , щоб вибрати клітинку, куди потрібно вивести відфільтрований результат з активного аркуша, а потім клацнути OK кнопку, відфільтрований результат було вилучено на інший аркуш на основі оригінального аркуша даних.
Скопіюйте дані на інший аркуш із розширеним фільтром за допомогою коду VBA
Якщо ви кваліфіковані з кодом VBA, ви можете закінчити цю роботу з наступним кодом VBA.
1. Активуйте аркуш, який потрібно відфільтрувати, і скопіюйте результат на інший аркуш.
2. Утримуйте клавішу ALT + F11 клавіші в Excel, і він відкриває Microsoft Visual Basic для додатків вікна.
3. Клацання Insert > Модуліта вставте наступний код у Модулі Вікно
Код VBA: Скопіюйте дані на інший аркуш із розширеним фільтром:
Sub Advancedfiltertoanothersheet()
'Updateby Extendoffice
Dim xStr As String
Dim xAddress As String
Dim xRg As Range
Dim xCRg As Range
Dim xSRg As Range
On Error Resume Next
xAddress = ActiveWindow.RangeSelection.Address
Set xRg = Application.InputBox("Please select the filter range:", "Kutools for Excel", xAddress, , , , , 8)
If xRg Is Nothing Then Exit Sub
Set xCRg = Application.InputBox("Please select the criteria range:", "Kutools for Excel", "", , , , , 8)
If xCRg Is Nothing Then Exit Sub
Set xSRg = Application.InputBox("Please select the output range:", "Kutools for Excel", "", , , , , 8)
If xSRg Is Nothing Then Exit Sub
xRg.AdvancedFilter xlFilterCopy, xCRg, xSRg, False
xSRg.Worksheet.Activate
xSRg.Worksheet.Columns.AutoFit
End Sub
4. And then press F5 key to run this code, and a prompt box is popped out to let you select the data range that you want to filter, see screenshot:

5. Then click OK, and another dialog box is popped out to remind you to select the criteria range you want to filter based on, see screenshot:

6. Go on clicking OK, in the popped out dialog box, please select a cell from another new worksheet where you want to output the filter result, see screenshot:

7. At last, click OK button, the filtered data has been outputted into another specified sheet as you need.
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by
80%
- Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than
300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by
50%, and reduces hundreds of mouse clicks for you every day!