Removing excel junk data and selecting only required rows

Hi all

I am a beginner in UI path.
I have got a excel file with first many rows(say 25) as junk data.
I want to select only useful data and operate on it.
as the useful data are starting from row 26 how do i program this in the ui path.
Any help would be appreciated.

Thanks in advance.


How will you identify theJunk rows, I mean you are telling that first 25 rows are junk rows, will this number remains same always.


Hi @Shivamvats1994

If the cell from which the useful data starts remains the same, for instance B26, just use read range activity in excel application scope and put “B26” in the range property.

hey mahesh

no its dynamic… like lets say first 50 rows or any number for that matter has junk data and next we have normal table like Name age etc which we want to work on.

hey it doesn’t remains same and its dynamic . so what could be possible solution.?


is there any way you can know till how many rows u will have junk data.

i mean like a keyword or some line, where it stops and you need start after that…?

we know that the data we want starts from a particular row … but it’s better if the program finds it dynamically…
for eg we have some junk data and then we have our data we want to work on… is there a way to search for a row containing headers such as name age etc. ?

if we could search for the row containing these fields may be from there on we can work on our way ahead .


can you attach one sample file…?

is there a way to search for a row containing headers such as name age etc. ?


you can do like this…

1.create a datatable DT1 with fields as you mentioned like name,age etc…

2.create datatable DT2 from excel file use for each row on DT2 to find the matching row with DT1.

  1. once you find thats your data


To better understand the problem, we need some dummy data from you and your workflow. If there’s any keyword that lets us know where the row you need starts from, we can use that and exclude the the unwanted data.

This is a sample file i need to work upon and update the status ok for all valid rows and throw exception for the value “Doctor”

1 Like

Here is the workflow. Let me know if this solves your (9.6 KB)

1 Like

Thanks siddharth for the workflow… really appreciate your help. Will get back to you in case of more queries :slight_smile:

hi sid

is there a way we can do the same thing using for each row method ?