Formula solution with Conditional Formatting for coloring cells and border.
1] In B21, criteria enter : "Manago", "Apple", "Banana" and "Guava"
2] In D22, copied down to D26 :
=IFERROR(INDEX(C$3:G$3,AGGREGATE(15,6,COLUMN(A$1:E$1)/(INDEX(C$4:G$7,MATCH(B$21,B$4:B$7,0),0)>0),ROW(A1))),"")
3] In E22, copied down to E26 :
=IFERROR(INDEX(C$4:G$7,MATCH(B$21,B$4:B$7,0),AGGREGATE(15,6,COLUMN(A1:E1)/(INDEX(C$4:G$7,MATCH(B$21,B$4:B$7,0),0)>0),ROW(A1))),"")
4] Conditional formatting for coloring cells and border to D22:D26 and E22:E26, please see :
Regards
Bosco