# 別ファイルの表を元にExcelにフィルターをかけたい

**URL:** <https://forum.uipath.com/t/excel/570565>\
**Category:** フォーラム\
**Created:** [August 8, 2023, 7:55am UTC](https://forum.uipath.com/t/excel/570565 "2023-08-08T07:55:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachi38](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sachi38/32/176615_2.png) [@Sachi38](https://forum.uipath.com/u/Sachi38)\
**Post date:** [August 8, 2023, 7:55am UTC](https://forum.uipath.com/t/excel/570565/1 "2023-08-08T07:55:36Z")

</div>

いつも勉強させていただいております。

Excelにフィルターをかけたいです。  
ただ、スプレッドシートで読み取ったデータテーブルの値と同じ値を保持する形でフィルターをかけたいです。  
モダンアクティビティのExcelファイルを使用→フィルターを使用中です。

※下記の表(データテーブル)を元に、aaa, bbb, eeeでフィルターをかけるようなイメージ。

 ![IMG_0137](https://global.discourse-cdn.com/uipath/original/4X/2/c/6/2c681374bced8d77d32e25d6c510c5dcb4974197.jpeg)

データテーブルをList型に格納してみたり、vlookupで繰り返し処理をしてみたりしましたが、何もヒットせず全て非表示？の状態になってしまいました。

元になる表が可変であること、手打ちできない量のため、なんとか読み取ったデータテーブルを使ってフィルターをかけたいのですが、何か方法はありますか？

ご教示いただけますと幸いです。

---

<div class="post-metadata">

**Author:** ![Nguyen\_Van\_Luong1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nguyen_van_luong1/32/442389_2.png) [@Nguyen\_Van\_Luong1](https://forum.uipath.com/u/Nguyen_Van_Luong1)\
**Post date:** [August 8, 2023, 8:01am UTC](https://forum.uipath.com/t/excel/570565/2 "2023-08-08T08:01:42Z")

</div>

Hi @Sachi38 ,  
You need keep all row have value aaa, bbb, eee  
If they are not match aaa, bbb, eee you want to delete  
That’s right?  
If that’s right.  
You can use filter data table

 ![image](https://global.discourse-cdn.com/uipath/original/4X/c/c/2/cc2e716329d09c7877e8fbd20fdd0f6d0e94c223.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/7/5/f758f0c86cd6117ece617916c5440bfe3a0e1098.png)  
Regards,  
LNV

---

<div class="post-metadata">

**Author:** ![Sachi38](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sachi38/32/176615_2.png) [@Sachi38](https://forum.uipath.com/u/Sachi38)\
**Post date:** [August 8, 2023, 8:26am UTC](https://forum.uipath.com/t/excel/570565/3 "2023-08-08T08:26:57Z")

</div>

> [@Nguyen\_Van\_Luong1](#):
>
> LNV san

Thank you for your reply.  
I know how to use the datatable filter activity, but I want to use the Excel filter, based on the data table without entering values ​​one by one to filter wizard.

Do you know how?

---

<div class="post-metadata">

**Author:** ![Nguyen\_Van\_Luong1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nguyen_van_luong1/32/442389_2.png) [@Nguyen\_Van\_Luong1](https://forum.uipath.com/u/Nguyen_Van_Luong1)\
**Post date:** [August 8, 2023, 8:34am UTC](https://forum.uipath.com/t/excel/570565/4 "2023-08-08T08:34:05Z")

</div>

Hi @Sachi38 san,  
You can try modern activity with filter rows

 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/f/f/fff3587f1d8e9fcda9233c9992481ff653309a8e.png)

Regards,  
LNV

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [August 8, 2023, 9:21am UTC](https://forum.uipath.com/t/excel/570565/5 "2023-08-08T09:21:54Z")

</div>

こんにちは

対象範囲をテーブルとして設定して、クラシックのFilterTableアクティビティを使うのはいかがでしょうか？  
以下実装イメージです。

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/3/a/63ae61137af109d45fb3e48f01ed3618d70179c4.png)
