Mathematical and logical operations can be done on the data on an Excel workbook with the help of formulas. One of the most common applications of Excel is to compare rows of data such as preparing grades from marks. This can be done quite simply by using the "IF" logical operator in an Excel worksheet on the data of, for example, a particular column in the spreadsheet. A comparison with the marks will yield the corresponding grades. Generic formulas for more complicated comparisons are freely available and can be downloaded from the internet. The formulas can be changed for cell references and columns to suit the requirements of the worksheet.