Filter activity

Hi All,

i am using filter activity and want to filter out few values, means if these values is available in column then it should filter out, but not allowing me to filter out, why.
img for reference


And there is no option to add values one by one.

Hi

Would recommend to have a view on this doc which has segments with explanation of each filed in FILTER DATATABLE activity and also an example of how to use it

Hope this would help you

https://docs.uipath.com/activities/other/latest/user-guide/filter-data-table

Cheers @RAKESH_KUMAR_Tiwari

@RAKESH_KUMAR_Tiwari

Are you passing the values as a Array of String? Instead of String?

Because you need to pass the values as a String

Thanks,
Srini

Hi @Palaniyappan ,

can you pls let me know this error.

Filter Data Table: the value for argument β€˜Column Name’ is not set or is invalid.

image

i checked properly there is no space in column name as well

Is the spelling correct @RAKESH_KUMAR_Tiwari

ok, spelling was incorrect, thanks it is working as excepted.

one issue is there, i have written below formula to calculate something and write in each cell, it was working fine, but suddenly what happened don’t know. below is the formula.
β€œ=IF(L2<=7,β€β€œ0-7"”,IF(L2<=14,β€œβ€œ8-14"”,IF(L2<=29,β€β€œ15-29"”,IF(L2>30,β€œβ€>30"β€œ,β€β€œNAβ€β€œ))))”

And how it is appering in excel
image
how to fix ir, pls help, and in this step every time BOT is not able to write the formula, it throws error that excel is using and i have kill the excel before that but still it throws error sometimes.

1 Like

Fine

  1. Use the kill process activity before to excel activity
    If needed use a Delay activity as well before to it

  2. Formula might because of no value in referring column
    Would suggest to check once whether the referred column has some values in excel before writing the formula

@RAKESH_KUMAR_Tiwari

@RAKESH_KUMAR_Tiwari

Place a breakpoint after the datatable Variable

Now check in Locals how the Column you are getting

Hope this may help you

Thanks,
Srini

Hi @Palaniyappan ,

used kill process and delay also, and there is value on column L, img for reference
image, but still writing #REF as value in next column M.

Try manually once in the same sheet with the formula u have
So that we can see if there is something to be corrected in iy

@RAKESH_KUMAR_Tiwari

i typed and enter
image

is there is any other way of doing this? i need to calculated the Range based on L column, img ref on top Post

Hmm it’s something to deal with the formula and conditions involved
Would recommend to check once the condition one by one whether it matches with ur requirement

@RAKESH_KUMAR_Tiwari

see, what help i get from excel after clicking on help on this error.
image

or can you write a macro for this? so that i will just call the macro

@RAKESH_KUMAR_Tiwari

Try this forumla

β€œ=IF(A2<=7,β€β€œ0-7"”,IF(A2<=14,β€œβ€œ8-14"”,IF(A2<=29,β€β€œ15-29"”,IF(A2>30,β€œβ€>30"β€œ,β€β€œNAβ€β€œ))))”

Also the Quotation marks make as the normal Quotations

image

Just replace A1 to L2 as you mentioned

Hope this may help you

Thanks,
Srini

Manually, it is working fine, but why bot is not able to calculate.

image

@RAKESH_KUMAR_Tiwari

Can you check the Range is iterating or not, because that is In variable
Check that

Thanks,
Srini

yes, it is iterating, in all cells, it has written #REF

@RAKESH_KUMAR_Tiwari

Can you place the cursor to on of the #REF and see in the Formula bar whether it is writing correctly or not

You can share the screenshot covering those

Thanks,
Srini