Hello Vijay,
I am not exactly sure if one method / interface can handle both versions.
As a workaround, you can have two apis and separate methods for each version of excel.
Based on the uploaded type, you can make use of the relevant interface.
Regards,
Sharath