Display corresponding columns

Hello frnds

I want to display the details of the corresponding columns when one
criteria matches with the details of one col.

eg:- say i have 3 cols. A,B and C and i put a condition to display the
contents of the col which matches a particular value. Now say the result
is from col B so I want to display the details of A and C of the same
content that of B.

Seems a little confusing…let me know if ur not getting wat i said.

Thanks

Dhaval P.