Calculate IRR and XIRR with this script Insert file path to 'pe_returns_model.xlsx' in line 8 Script output is XIRR or IRR to the 6th decimal place, output to Excel on column C row 23