What will the formula = sum(D1:D7) in cell d8 of a Microsoft Excel worksheet result in if the cells from D1 to D6 contain the values 1, 2, 3, 4, 5, 6?

What will the formula = sum(D1:D7) in cell d8 of a Microsoft Excel worksheet result in if the cells from D1 to D6 contain the values 1, 2, 3, 4, 5, 6? Correct Answer 21

The correct answer is 21.

Key Points

  • The SUM function adds values.
  • We can add individual values, cell references or ranges, or a mix of all three.

For example:

   =SUM(A2:A10) Adds the values in cells A2:10.

   =SUM(A2:A10, C2:C10) Adds the values in cells A2:10, as well as cells C2:C10.

  • The sum formula helps in the calculation of the summation of the total selected cells.
  • In the example given above, the cell contains the values 1,2,3,4,5,6 so when the sum formula is used it will give the answer 21.

Hence, the correct answer is 21.

Related Questions

You use Microsoft Visual Studio 2010 and Microsoft ADO.NET Framework 4 to create anapplication. The application connects to a Microsoft SQL Server 2008 database. You use the ADO.NET LINQ to SQL model to retrieve data from the database. You use stored procedures to return multiple result sets. You need to ensure that the result sets are returned as strongly typed values. What should you do?