Hi Anusha,
First, you have to import your excel sheet to Mendix DB using the Excel Importer module.
After that, the constrain maintenance based on the previous input can be done with XPath https://docs.mendix.com/refguide7/reference-selector/#constrained-by