Write Cell: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection

Hii everyone
please help me why i am getting this type error how to resolve it

@zaid.ahmad

Can you show what you did in write cell please

Cheers

@Anil_G
I am writing “B”+(dt1.rows.Indexof(CurrentRow)+5).tostring
I have an excel file there are Some value i want to compare to other column and Write in Other file At column D5

@zaid.ahmad

Can you check if dt1.rows.indexof is returning correct value

Cheers