Skip cell value using Excel Process Scope

Hi everyone, I’m new to UiPath.
I’m trying to get the value in the cell. And I’m using for each excel row like this. I managed to get the exact value that i need but when ever it goes to the next row, which is EMPTY, the whole program is STOP.


Please help me to skip those empty cells. Thanks a lot

This is the value that i want to get

Hi @KSK_R_D

Place an if activity and give the condition as String.IsNullOrEmpty(CurrentRow(0).ToString) or String.IsNullOrWhiteSpace(CurrentRow(0).ToString)

Place the below activity in the if condition

Change the index from 0 to the number you required.

Regards

@KSK_R_D

After get use a if condtion as below

For that you need to open advanced editor and then keep this formula

IsNothing(target_name) OrElse String.IsNullOrEmpty(target_name)

On else side keep the next steps on then side do nothing

Cheers

Hi @KSK_R_D

If you want to skip empty cells, inside for each excel row use if activity

String.IsNullOrEmpty(CurrentRow("ColumnName").ToString)

can you make i clear? i still don’t know what to do

what is that number i my case?

Hi @KSK_R_D

The A refers to 0

and in your case it’s like D so it will be 3

Regards

i get it, i want the B, so it will be number 2. but there is an error

@KSK_R_D

Target_namr is what you want to check right? Then please use the above expression

Cheers

THANKS SO MUCH, I CAN FINALLY MAKE IT.
BOTH METHODS ARE WORKING VERY WELL.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.