"I am trying to find the excel formula which will search a value in Range of cells (say 4-5 columns) and then return the column number."
=MATCH("smith",A1:D1,0)
The value to be searched for is "smith"
The range A1:D1 consiss of 4 columns.
This reflects what you've asked for and works perfectly and returns 2 since I put smith in B1 and column B is column number 2.
If you are getting #N/A then the value you are searchibng for is not in any of the columns.
Supply some example data of what you are searching for and the data you are searching since my solution works.