Creating a custom action by extracting data from excel

I am working on a College Information Chatbot which provides the details about the faculties of our institution. I have the data in excel file instead of an api. How can create a custom action to do this?

You need to study a python library that works with excel, check http://www.python-excel.org/

Is there any example code availabale for a custom action in rasa that uses this library?

Yes, github is your best friend in these cases. https://github.com/python-excel