How to Calculate Total Sales in Excel – 3 Easy Steps

Step 1- Create a List of Products in Excel

  • Create a new worksheet and enter the product list, the product code and its price.

Make a List of Products in Excel

  • Select the cells to define a Name for the Product Code column.
  • Go to Formulas > Define Name.

Make a List of Products in Excel

  • Enter a name in the window.
  • Click OK.

Make a List of Products in Excel


Step 2 -Save the Sales in a New Worksheet

  • Open a new sheet and insert the necessary columns.
  • Go to the Product Code column.
  • To restrict the cells: select them and go to Data > Data Validation

Make a List of Products in Excel

  • In the Data Validation window, select Settings.
  • Choose List in Allow.
  • Enter “=code” in the Source box.
  • Click OK.

Make a List of Products in Excel

A drop-down list will be displayed in every cell in this column.

Make a List of Products in Excel

  • Enter Sales Data.

How to Calculate Total Sales in Excel


Step 3 – Calculate the Total Sales in a New Worksheet

  • Enter the list of products.

Calculate Total Sales in a New Worksheet

  • Enter this formula in D5.
=SUMIF(Sales!$D$5:$D$14,B5,Sales!E5:E14)

Calculate Total Sales in a New Worksheet

  • Use the Fill Handle to drag the formula to the other cells or press Ctrl+C and Ctrl+V to copy and paste the formula.

Formula Breakdown:

The syntax of the  SUMIF function is:

=SUMIF(range, criteria, [sum_range])

  • Range = Sales!$D$5:$D$14
    Defines the range: D5:D15 in the Sales Worksheet (Product Code).
  • Criteria = B5
    Declares the value of B5 as the criterion.
  • [sum_range] = Sales!E5:E14
    Sum values that meet the criteria in this range.
  • =SUMIF(Sales!$D$5:$D$14,B5,Sales!E5:E14)
    Sums
    the values in the Unit Qty column if the corresponding row value of the column P. Code meets the criteria.

Calculate Total Sales in a New Worksheet

The total sales of each product is displayed.

  • To calculate the total revenue of each product, enter this formula in E5.
=D5*Product!D5

The formula will multiply the value of D5 (total sale value) by the D5 in the product worksheet (the Unit Price).

Calculate Total Sales in a New Worksheet

  • Use the Fill Handle to drag the formula to the other cells

The total sales and the total revenue of each product are displayed.

Calculate Total Sales in a New Worksheet


Download Sample Workbook


 

<< Go Back to Sales | Formula List | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Osman Goni Ridwan
Osman Goni Ridwan

OSMAN GONI RIDWAN is a marine engineer who loves exploring Excel and VBA programming. Programming, to him, is a time-saving tool for efficiently managing data, files, and internet tasks. He is proficient in Rhino3D, Maxsurf, C++, MS Office, AutoCAD, Excel, and VBA and goes beyond the basics. Armed with a B.Sc in Naval Architecture & Marine Engineering from BUET, OSMAN has transitioned into the role of a content developer. Specializing in creating technical content exclusively centered around Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo