Extract some rows in Excel

Can you share the sample input file and expected Output @guptasweb