Hello Sathiyamoorthy in leave dates C2
Copy paste below
=IFERROR(INDEX(data!$B$1:$AG$1,SMALL(IF(INDEX(data!$C$2:$AG$1604,MATCH($B2,data!$B$2:$B$1604,0),0)="L",COLUMN(INDEX(data!$C$2:$AG$1604,MATCH($B2,data!$B$2:$B$1604,0),0))-1),COLUMN(A1))),"")
then hold control and shift together and then hit enter and release all three keys to make it array formula. Now drag down and to right
Bookmarks