Spreadsheets are used to calculate profit and loss for companies using formulas. The cell reference for the shaded cell in the example is B2. The formula to calculate the total cost is =sum(C3:D3) and the formula to find the largest number in cells above C11 is =max(C3:C9). The toolbar icon used to merge cells is . Data validation should be used to ensure data is correct in a spreadsheet.