by reading the column name (‘Amount’), i should get the output as ‘F’, similarly for i/p ‘Name’ , it should return me ‘B’ – refer screenshot

by reading the column name (‘Amount’), i should get the output as ‘F’, similarly for i/p ‘Name’ , it should return me ‘B’ – refer screenshot

Use lookup activity and pass name.
The output returns B1.
From the output take only string part.
Similarly for another column name.