Sample Data
| Order ID | Customer Name | Product | Quantity | Unit Pri | Order Date |
|----------|---------------|------------|----------|---------|------------|
| 1001 | John Doe | Laptop | 2 | 1000 | 2023-05-10 |
| 1002 | Jane Smith | Smartphone | 5 | 500 | 2023-06-15 |
| 1003 | David Brown | Tablet | 3 | 700 | 2023-07-20 |
Task :
- Use VLOOKUP function to retrieve Customer Name based on Order ID from another sheet (lookup table).
- Use INDEX and MATCH functions to find Unit Price for Product "Laptop".
- Create a dynamic named range using OFFSET function for Quantity column.
- Use SUMPRODUCT function to calculate total sales revenue for each product.
To perform the tasks outlined in Assignment using Excel, follow these step-by-step instructions:
Steps to Perform:
- Use VLOOKUP Function to Retrieve Customer Name based on Order ID:
- Assuming your lookup table with Order ID and Customer Name is in another sheet (e.g., Sheet2Adjust the cell references and sheet names as per your actual setup.
- Use INDEX and MATCH Functions to Find Unit Price for Product "Laptop":
- Assuming Product names are in column C and Unit Prices in column E, Adjust the cell references based on the actual range of your data.
- Create a Dynamic Named Range Using OFFSET Function for Quantity Column:
- Assuming Quantity column starts from D2, define a named range (e.g., QuantityRange) with the formula:
This dynamically adjusts the range based on the number of non-empty cells in the Quantity column.
- Use SUMPRODUCT Function to Calculate Total Sales Revenue for Each Product:
- Assuming Order ID is in column A, Quantity in column D, and Unit Price in column E,
Adjust the ranges to match your actual data structure.
Detailed Steps:
- Step 1: Use VLOOKUP to Retrieve Customer Name
- Assuming Order ID is in column A and you have a lookup table in Sheet2 with Order ID in column A and Customer Name in column B,
- This retrieves the Customer Name based on the Order ID from Sheet2.
- Step 2: Use INDEX and MATCH to Find Unit Price for "Laptop"
- Assuming Product names are in column C and Unit Prices are in column E, less
- This formula looks for "Laptop" in the Product column and returns the corresponding Unit Price.
- Step 3: Create Dynamic Named Range for Quantity Column
- Assuming Quantity column starts from D2, define a named range (e.g., QuantityRange) with the formula:
Adjust the sheet name (Sheet1) and column reference as per your actual data.
- Step 4: Use SUMPRODUCT to Calculate Total Sales Revenue
- Assuming your data structure as specified
- This formula calculates the total sales revenue for the product "Laptop" by multiplying Quantity and Unit Price, and summing the results.