There is one option to do this using xlwings and pandas modules.
xlwings provides a way to automate the excel via python scripts.
Create one "sample.xlsx" file and add random formula in range("A1").
Below is the sample code which will read the value as well as the formula from the given file:
import pandas as pd
import xlwings as xw
wbk = xw.Book('sample.xlsx')
ws = wbk.sheets[0]
print(ws.cells(1,1).value)
print(ws.cells(1,1).formula)
Same thing applies on range as well. You can assign the range.value
into dataframe and vice versa.
In case you want to get formulas from big range, you can get that too, but it will return tuple.
Hope this is helpful at some extent.