The Excel profit margin formula is used to calculate the profit margin. The selling price divided by the profit, i.e.(C2/A2)100 is the Excel's formula for the profit margin in Excel.