You can't use complex formulas in qtp excel sheet.