Not able to write Validated without changing the position of row

actually we getting the name from another file
the with that name we have to filter in this file
so if answer is applicable to this condition can you please elaborate