# Filter activity not working

**URL:** <https://forum.uipath.com/t/filter-activity-not-working/576348>\
**Category:** Naan Mudhalvan Program\
**Created:** [August 28, 2023, 8:29pm UTC](https://forum.uipath.com/t/filter-activity-not-working/576348 "2023-08-28T20:29:24Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cuberoot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cuberoot/32/263745_2.png) [@Cuberoot](https://forum.uipath.com/u/Cuberoot)\
**Post date:** [August 28, 2023, 8:29pm UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/1 "2023-08-28T20:29:24Z")

</div>

I have one Excel file in which there are many duns data,I want to extract one duns data.in the Excel file they have used some formatting like they have colour some cells.tobextract the data for one duns number I have used filter datatable activity it filter the data but it didn’t delete the unfiltered data.how to resolve this issue?  
TIA

---

<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 29, 2023, 12:41am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/2 "2023-08-29T00:41:43Z")

</div>

Hi @Cuberoot ,  
Have you check filter input/output data, keep and remove column?

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/f/8/6f803dda222e69a83e113dcb8e1488fb9cae853c.png)  
You can share file and your filter activity?  
regards,

---

<div class="post-metadata">

**Author:** ![mkankatala](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mkankatala/32/484097_2.png) [@mkankatala](https://forum.uipath.com/u/mkankatala)\
**Post date:** [August 29, 2023, 2:08am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/3 "2023-08-29T02:08:37Z")

</div>

Hi @Cuberoot

Do you want to filter with the cell color or filter with the specific data.  
Elaborate your answer more then only we understand and we will give the better solution for your query.

---

<div class="post-metadata">

**Author:** ![Cuberoot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cuberoot/32/263745_2.png) [@Cuberoot](https://forum.uipath.com/u/Cuberoot)\
**Post date:** [August 29, 2023, 8:13am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/4 "2023-08-29T08:13:16Z")

</div>

[report.xlsx](https://forum.uipath.com/uploads/short-url/iHXb2yBW9SHgvI2xe2FpLsJhQer.xlsx) (15.1 KB)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/7/3/5/735c90ce437663ddc13076372cb2209807ff2dfd.png)

---

<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 29, 2023, 8:27am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/5 "2023-08-29T08:27:49Z")

</div>

Hi @Cuberoot ,  
You want keep only “688955830”  
You can see my filter  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/3/e/63e3aabebc626e129153772582160ccd5f7ab235.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/5/f/f5fac00d33b70388277319c6ecbf4ab4e64651c5.png)  
my output  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/b/7/3/b730e96a45da54b201394af5eaa85124553b8121.png)

---

<div class="post-metadata">

**Author:** ![Cuberoot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cuberoot/32/263745_2.png) [@Cuberoot](https://forum.uipath.com/u/Cuberoot)\
**Post date:** [August 29, 2023, 8:32am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/6 "2023-08-29T08:32:11Z")

</div>

Can you do it in the same sheet?

---

<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 29, 2023, 8:33am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/7 "2023-08-29T08:33:16Z")

</div>

can you clear it, I don’t understand

---

<div class="post-metadata">

**Author:** ![Cuberoot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cuberoot/32/263745_2.png) [@Cuberoot](https://forum.uipath.com/u/Cuberoot)\
**Post date:** [August 29, 2023, 8:34am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/8 "2023-08-29T08:34:09Z")

</div>

I want to filter the data in the same file.

---

<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 29, 2023, 8:35am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/9 "2023-08-29T08:35:49Z")

</div>

that output I used your file  
[report.xlsx](https://forum.uipath.com/uploads/short-url/iHXb2yBW9SHgvI2xe2FpLsJhQer.xlsx) (15.1 KB)  
I don’t quite understand what you mean, or can you share your expect output?  
I will edit for you

---

<div class="post-metadata">

**Author:** ![Cuberoot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cuberoot/32/263745_2.png) [@Cuberoot](https://forum.uipath.com/u/Cuberoot)\
**Post date:** [August 29, 2023, 8:37am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/10 "2023-08-29T08:37:21Z")

</div>

[report (1).xlsx](https://forum.uipath.com/uploads/short-url/lsX2fs7HQ8fEH3bGSDuBbhAssjv.xlsx) (14.4 KB)

---

<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 29, 2023, 8:41am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/11 "2023-08-29T08:41:11Z")

</div>

After filtering and recording the output, do the other data still need to be kept?  
if like your output, i have another solution  
we will copy the file to keep the format  
read from A6, then get data, filter and record, otherwise the data to be filtered will be blank  
what do you see?

---

<div class="post-metadata">

**Author:** ![Cuberoot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cuberoot/32/263745_2.png) [@Cuberoot](https://forum.uipath.com/u/Cuberoot)\
**Post date:** [August 29, 2023, 8:45am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/12 "2023-08-29T08:45:29Z")

</div>

but in the file their is date… that is the issue.I dont want other data

---

<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 29, 2023, 8:48am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/13 "2023-08-29T08:48:23Z")

</div>

Yes, I see  
we can get data from A-L columns  
read then filter get only column A-L

---

<div class="post-metadata">

**Author:** ![Cuberoot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cuberoot/32/263745_2.png) [@Cuberoot](https://forum.uipath.com/u/Cuberoot)\
**Post date:** [August 29, 2023, 8:50am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/14 "2023-08-29T08:50:35Z")

</div>

is it possible to remove the unwanted data in the same file?

---

<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 29, 2023, 8:59am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/15 "2023-08-29T08:59:18Z")

</div>

Yes, my idea is we get file to get temple, then filter and write back

---

<div class="post-metadata">

**Author:** ![Cuberoot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cuberoot/32/263745_2.png) [@Cuberoot](https://forum.uipath.com/u/Cuberoot)\
**Post date:** [August 29, 2023, 9:02am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/16 "2023-08-29T09:02:27Z")

</div>

what about date column?

---

<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 29, 2023, 9:03am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/17 "2023-08-29T09:03:18Z")

</div>

I think you don’t understand my way  
wait me a few minutes, I need test it then send to you

---

<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 29, 2023, 9:46am UTC](https://forum.uipath.com/t/filter-activity-not-working/576348/18 "2023-08-29T09:46:53Z")

</div>

Hi @Cuberoot ,  
My code  
[linq.xaml](https://forum.uipath.com/uploads/short-url/bJHhdZI4VpLpNuy9DEprqUVoFXo.xaml) (12.4 KB)  
my input  
[report.xlsx](https://forum.uipath.com/uploads/short-url/iHXb2yBW9SHgvI2xe2FpLsJhQer.xlsx) (15.1 KB)  
my tempete  
[temple.xlsx](https://forum.uipath.com/uploads/short-url/63df9cQ7eouiiQd8aF1JCroVE5h.xlsx) (14.5 KB)  
my output  
[report.xlsx](https://forum.uipath.com/uploads/short-url/yJVFBQhLM7JvGSOEAYWSJ7KJyHd.xlsx) (14.2 KB)  
you can see and try it
