Sample Data
This table shows products with their prices and quantities. The range B2:B4 is named 'Prices'.
| Cell | Value |
|---|---|
| A1 | Product |
| A2 | Apple |
| A3 | Banana |
| A4 | Cherry |
| B1 | Price |
| B2 | 1 |
| B3 | 0.5 |
| B4 | 2 |
| D1 | Quantity |
| D2 | 3 |
| D3 | 5 |
| D4 | 2 |
This table shows products with their prices and quantities. The range B2:B4 is named 'Prices'.
| Cell | Value |
|---|---|
| A1 | Product |
| A2 | Apple |
| A3 | Banana |
| A4 | Cherry |
| B1 | Price |
| B2 | 1 |
| B3 | 0.5 |
| B4 | 2 |
| D1 | Quantity |
| D2 | 3 |
| D3 | 5 |
| D4 | 2 |
=SUM(Prices * D2:D4)A B C D 1 Product Price Quantity 2 Apple 1.00 3 3 Banana 0.50 5 4 Cherry 2.00 2 Named range 'Prices' -> B2:B4 Formula uses 'Prices' and D2:D4
A B C D 1 Product Price Quantity 2 Apple 1.00 3 3 Banana 0.50 5 4 Cherry 2.00 2 5 9.50 Cell D5 shows the total cost calculated by the formula.