Sure! I'll guide you through each of the 10 tasks, providing step-by-step instructions on how to perform them in Excel. Each task should be done on a separate sheet within a single workbook, and you can rename each sheet according to the task number or description.
Task 1: Format the 'amount' column and 'date' column
Instructions:
-
Open the Workbook:
- Open the
Espresso Store Data.xlsx file.
-
Create a New Sheet:
- Right-click on the existing sheet tab (e.g., “Sheet1”) at the bottom.
- Select "Move or Copy".
- Check "Create a copy" and click OK.
- Rename the new sheet to "Task 1" by double-clicking the sheet tab.
-
Format the 'Amount' Column:
- Locate the 'amount' column in your dataset.
- Select the entire 'amount' column by clicking on the column header (e.g., column F).
- Right-click and select "Format Cells...".
- In the Number tab, select "Currency".
- Set Decimal places to 2.
- Choose the appropriate Currency symbol (e.g.,
$ if dealing with US dollars).
- Click OK.
-
Format the 'Date' Column:
- Locate the 'date' column in your dataset.
- Select the entire 'date' column by clicking on the column header (e.g., column B).
- Right-click and select "Format Cells...".
- In the Number tab, select "Custom".
- In the Type field, enter
dd m, yy.
- This will display dates in the format like "05 Oct, 23".
- Click OK.
-
Save Your Workbook:
- Remember to save your workbook to retain the changes.
Task 2: Sort and Filter Orders
Instructions:
-
Create a New Sheet:
- Copy the original data sheet and rename it to "Task 2".
-
Sort the Data:
- Click anywhere inside your data range.
- Go to the "Data" tab on the Ribbon.
- Click on "Sort".
- Add Level:
- Sort by: 'ship city'
- Sort On: Values
- Order: Z to A
- Add Level:
- Then by: 'amount'
- Sort On: Values
- Order: Largest to Smallest
- Click OK.
-
Apply Filters:
- With the data range selected, click on "Filter" in the Data tab to enable filtering (if not already enabled).
- Filter 'amount' Column:
- Click on the filter arrow in the 'amount' column header.
- Select "Number Filters" > "Greater Than...".
- Enter 500 and click OK.
- Filter 'status' Column:
- Click on the filter arrow in the 'status' column header.
- Check only the "Returned" status.
- Click OK.
-
Result:
- The displayed orders will now be those with an amount greater than 500, status "Returned", sorted by 'ship city' Z to A, and by 'amount' descending.
-
Save Your Workbook.
Task 3: Retrieve 'ship state' for Customer ID 442660
Instructions:
-
Create a New Sheet:
- Add a new sheet and rename it to "Task 3".
-
Set Up the Lookup:
- In cell A1, type "Customer ID".
- In cell B1, type "Ship State".
- In cell A2, enter 442660 (the given customer ID).
-
Use VLOOKUP to Retrieve 'Ship State':
-
Assuming your data is in a sheet named "Data", and 'customer id' is in column C, and 'ship state' is in column E.
-
In cell B2, enter the following formula:
=VLOOKUP(A2, 'Data'!$C:$E, 3, FALSE)
- Explanation:
- A2: The lookup value (Customer ID 442660).
- 'Data'!C:E: The range where the lookup will occur (from 'customer id' to 'ship state').
- 3: The column index number in the range (since 'ship state' is the third column in the range C:E).
- FALSE: Exact match required.
-
Result:
- Cell B2 will display the 'ship state' corresponding to Customer ID 442660.
-
Alternate Method Using FILTER Function (Excel 365 and later):
-
Save Your Workbook.
Task 4: Label Orders as “Most Demanded” or “Least Demanded”
Instructions:
-
Create a New Sheet:
- Copy the original data sheet and rename it to "Task 4".
-
Add a New Column for Labels:
- In the first empty column to the right of your data (e.g., column L), add a header "Demand Level".
-
Use the IF Function to Label Orders:
-
In cell L2 (assuming your data starts from row 2), enter the following formula:
=IF(AND(F2>800, G2="Myntra"), "Most Demanded", "Least Demanded")
- Explanation:
- F2: Amount column.
- G2: Channel column (assuming 'channel' is in column G).
- **Checks if the amount is greater than 800 and the channel is "Myntra".
-
Copy the Formula Down:
- Click on cell L2.
- Double-click the fill handle (small square at the bottom-right corner of the cell) to copy the formula down to all rows.
-
Result:
- The new column will label each order as "Most Demanded" or "Least Demanded" based on the criteria.
-
Save Your Workbook.
Task 5: Count Orders from Men Aged 30-40 and Extract Middle Part of Order ID
Instructions:
-
Create a New Sheet:
- Copy the original data sheet and rename it to "Task 5".
-
Count Orders from Men Aged 30-40:
A. Ensure Data Contains Gender and Age Information:
- Verify that your dataset has columns for 'gender' and 'age group'.
B. Apply Filters (Method 1):
- Apply filters to the data range.
- Filter the 'gender' column to show only "Male".
- Filter the 'age group' column to show only "30-40".
- Look at the row numbers to determine the count of visible rows (subtract header row).
C. Use COUNTIFS Function (Method 2):
-
In a cell (e.g., A1), type "Number of Orders from Men Aged 30-40".
-
In the cell next to it (e.g., B1), enter:
=COUNTIFS('Data'!D:D, "Male", 'Data'!E:E, "30-40")
- Explanation:
- 'Data'!D:D: Gender column.
- "Male": Criteria for gender.
- 'Data'!E:E: Age group column.
- "30-40": Criteria for age group.
-
Extract Middle Part of Each Order ID:
A. Add a New Column:
- In the next empty column (e.g., column M), add a header "Middle of Order ID".
B. Use the MID Function:
-
Assuming 'order id' is in column A.
-
In cell M2, enter:
=MID(A2, 3, LEN(A2)-4)
- Explanation:
- A2: The 'order id' cell.
- 3: Starting position (removes first two characters).
- LEN(A2)-4: Total length minus 4 (removes last two characters).
-
Adjust and as needed, depending on how you define the "middle part".
Task 6: Replace 'kurta' with 'kurta sets' and 'top' with 'tops' in 'category' Column
Instructions:
-
Create a New Sheet:
- Copy the original data sheet and rename it to "Task 6".
-
Use Find and Replace (Method 1):
A. Replace 'kurta' with 'kurta sets':
- Select the entire 'category' column.
- Press Ctrl + H to open the Find and Replace dialog.
- In Find what: enter "kurta".
- In Replace with: enter "kurta sets".
- Click on "Replace All".
B. Replace 'top' with 'tops':
- Repeat the steps above, replacing "top" with "tops".
-
Use SUBSTITUTE Function (Method 2):
A. Add a New Column:
- In the next empty column (e.g., column N), add header "Updated Category".
B. Use Nested SUBSTITUTE Functions:
-
In cell N2, enter:
=SUBSTITUTE(SUBSTITUTE(H2, "kurta", "kurta sets"), "top", "tops")
- Explanation:
- H2: Original 'category' cell.
- Inner SUBSTITUTE replaces "kurta" with "kurta sets".
- Outer SUBSTITUTE replaces "top" with "tops".
-
Copy the Formula Down:
- Copy the formula down to all rows.
-
(Optional) Replace Original Data:
- If using the SUBSTITUTE function and you want to replace the original 'category' column, copy the new column and paste as values over the original.
-
Save Your Workbook.
Task 7: Calculate Order Dates Three Months After Given Dates
Instructions:
-
Create a New Sheet:
- Copy the original data sheet and rename it to "Task 7".
-
Add a New Column for New Dates:
- In the next empty column (e.g., column O), add header "Date Plus 3 Months".
-
Use the EDATE Function:
-
Copy the Formula Down:
- Copy the formula down to all rows.
-
Format the New Date Column (Optional):
- Select the "Date Plus 3 Months" column.
- Right-click and select "Format Cells...".
- Choose the desired date format (e.g., "dd mmm, yyyy").
-
Save Your Workbook.
Task 8: Create a One-Way Data Table to Show How Different Interest Rates Affect Loan Amount
Instructions:
-
Open the What-If Dataset:
- Open the
what if data.xlsx file.
- Copy the data into a new sheet in your working workbook and rename it to "Task 8".
-
Set Up Your Calculations:
A. Input Cells:
- In cells B1, B2, B3, enter the following labels:
- B1: Loan Amount
- B2: Interest Rate (as a percentage, e.g., 5% entered as 0.05)
- B3: Loan Term (Years)
B. Enter the Values:
- C1: Enter the principal loan amount (e.g., 100,000).
- C2: Enter an initial interest rate (e.g., 0.05 for 5%).
- C3: Enter the loan term in years (e.g., 15).
-
Calculate Monthly Payment:
-
In cell C4, label it as "Monthly Payment".
-
In cell C5, calculate the monthly payment using the PMT function:
=-PMT(C2/12, C3*12, C1)
- Explanation:
- C2/12: Monthly interest rate.
- C3*12: Total number of monthly payments.
- C1: Loan amount (principal).
-
Set Up the Data Table:
A. Create a Column of Interest Rates:
- In column E, starting from cell E6, list different interest rates you want to analyze (e.g., 0.03, 0.035, 0.04, ..., 0.06).
B. Label the Column:
- In cell E5, enter "Interest Rate".
- In cell F5, enter "Monthly Payment".
-
Link the Formula to the Data Table:
Task 9: Use Goal Seek to Find Required Administration Expenses for Target Profit
Instructions:
-
Use the What-If Dataset:
- Continue working in the
what if data.xlsx sheet or the sheet you have copied into your workbook.
- Rename the sheet to "Task 9" if needed.
-
Set Up the Profit Calculation:
A. Input Data:
- Ensure you have the following data in your sheet:
- Sales Revenue (e.g., cell B1).
- Cost of Goods Sold (COGS) (e.g., cell B2).
- Administration Expenses (e.g., cell B3).
- Other Expenses (e.g., cell B4).
B. Calculate Profit:
-
In cell B5, label it "Profit".
-
In cell B6, calculate the profit:
=B1 - (B2 + B3 + B4)
-
Use Goal Seek:
A. Open Goal Seek:
- Go to the "Data" tab.
- Click on "What-If Analysis" > "Goal Seek...".
B. Configure Goal Seek:
- Set cell: Select B6 (the Profit cell).
- To value: Enter 400000 (your target profit).
- By changing cell: Select B3 (the Administration Expenses cell).
C. Run Goal Seek:
- Click OK.
- Excel will adjust the Administration Expenses to achieve the target profit of 400,000.
- A dialog will appear showing the result.
-
Interpret the Results:
- Goal Seek will show you the required value for Administration Expenses to reach the target profit.
- You can choose to Accept the solution by clicking OK or revert by clicking Cancel.
-
Save Your Workbook.
Task 10: Create Pivot Tables and Charts
Instructions:
-
Create a New Sheet:
- Copy the original data sheet and rename it to "Task 10".
-
Pivot Table for Total Sales by Month:
A. Add a New Sheet for the Pivot Table:
- Click on the "+" sign to add a new sheet.
- Rename it to "Sales by Month Pivot".
B. Insert Pivot Table:
- Go back to the "Task 10" sheet.
- Click anywhere inside your data range.
- Go to the "Insert" tab.
- Click on "PivotTable".
- Ensure the table/range is correct.
- Choose "Existing Worksheet" and select the location on the "Sales by Month Pivot" sheet (e.g., cell A1).
- Click OK.
C. Set Up the Pivot Table Fields:
- Drag 'date' field to Rows area.
- Right-click on any date in the Pivot Table rows.
- Select "Group...".
- Choose "Months" and "Years" for grouping.
- Click OK.
- Drag 'amount' field to Values area.
- Ensure it shows "Sum of amount".
D. Format the Pivot Table:
- You can format the values as currency.
- Remove any subtotals or grand totals if unnecessary.
-
Pivot Table and Chart for Number of Orders Across Different Age Groups:
A. Add a New Sheet:
- Rename it to "Orders by Age Group Pivot".
B. Insert Pivot Table:
- Repeat the steps to insert a pivot table on the new sheet.
C. Set Up the Pivot Table Fields:
- Drag 'age group' field to Rows area.
- Drag 'order id' field to Values area.
- By default, it may show "Count of order id", which counts the number of orders.
Final Steps:
Additional Tips:
-
Data Backup:
- Always keep a backup of your original data before making any modifications.
-
Documentation:
- It may be helpful to include brief notes or comments in each sheet explaining the steps you've taken.
-
Excel Functions Used:
- Formatting: Right-click > Format Cells.
- Sorting and Filtering: Data tab > Sort, Filter.
- VLOOKUP:
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
- IF Function:
=IF(condition, value_if_true, value_if_false)
- COUNTIFS:
=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
- MID Function:
=MID(text, start_num, num_chars)
- SUBSTITUTE Function:
=SUBSTITUTE(text, old_text, new_text, [instance_num])
- EDATE Function:
=EDATE(start_date, months)
- PMT Function:
=PMT(rate, nper, pv, [fv], [type])
- Goal Seek: Data tab > What-If Analysis > Goal Seek.
- Pivot Tables and Charts: Insert tab > PivotTable, PivotChart.
-
Help Resources:
- Use Excel's built-in help or online resources if you need further clarification on functions and features.
Feel free to ask if you need any more assistance with these tasks!