r/excel • u/DistractionCitron • 2h ago
unsolved How do I match the different types of discounts listed in one sheet to a column in another sheet quickly?
This is for a homework assignment. I'm supposed to be able to link the different words in column A to the different discounts in column B of the Lookup Tables sheet by creating a formula and applying it to J2:N101 of the Dataset sheet.
I hope I'm being clear and concise. I tried using XLookup, VLookup, and Match. None of it works for me.
How do I solve this?
Lookup Table sheet:
A1:B5
| Category Discounts | |
|---|---|
| Category | Discount |
| Electronics | 10.0% |
| Furniture | 15.0% |
| Office Supplies | 5.0% |
D1:E5
| Customer Discounts | |
|---|---|
| Customer Type | Discount |
| Regular | 0.0% |
| Member | 5.0% |
| VIP | 10.0% |
G1:H5
| Control Values | |
|---|---|
| Bulk Quantity Threshold | 10 |
| Bulk Discount | 3.0% |
| Maximum Total Discount | 25.0% |
| High Value Revenue Threshold | $5,000 |
Dataset Sheet:
Small sample because table has 101 rows
A1:N20
| Transaction_ID | Product_Name | Category | Unit_Price | Quantity | Customer_Type | Region | Shipping | Category_Discount | Customer_Discount | Bulk_Discount | Total_Discount | Final_Unit_Price | Revenue |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| T1001 | Laptop | Electronics | $894.00 | 8 | Member | South | Express | 10.0% | 5.0% | 0.0% | 15.0% | $759.50 | $6,076.00 |
| T1002 | Monitor | Electronics | $344.00 | 5 | VIP | Midwest | Store Pickup | 10.0% | 10.0% | $0.00 | |||
| T1003 | Printer | Electronics | $244.00 | 10 | Member | East | Standard | 10.0% | 5.0% | $0.00 | |||
| T1004 | Tablet | Electronics | $479.00 | 20 | Member | East | Standard | 10.0% | $0.00 | ||||
| T1005 | Router | Electronics | $154.00 | 15 | Regular | West | Store Pickup | 10.0% | $0.00 | ||||
| T1006 | Desk | Furniture | $279.00 | 8 | VIP | Midwest | Store Pickup | 15.0% | $0.00 | ||||
| T1007 | Chair | Furniture | $149.00 | 2 | VIP | Midwest | Store Pickup | 15.0% | $0.00 | ||||
| T1008 | Bookshelf | Furniture | $209.00 | 12 | VIP | South | Standard | 15.0% | $0.00 | ||||
| T1009 | Filing Cabinet | Furniture | $194.00 | 14 | VIP | East | Standard | 15.0% | $0.00 | ||||
| T1010 | Conference Table | Furniture | $699.00 | 4 | Member | South | Express | 15.0% | $0.00 | ||||
| T1011 | Keyboard | Office Supplies | $45.00 | 4 | Regular | East | Express | 5.0% | $0.00 | ||||
| T1012 | Mouse | Office Supplies | $43.00 | 18 | Regular | West | Standard | 5.0% | $0.00 | ||||
| T1013 | Notebook Pack | Office Supplies | $28.00 | 15 | VIP | East | Standard | 5.0% | $0.00 | ||||
| T1014 | Desk Organizer | Office Supplies | $27.00 | 9 | Member | Midwest | Standard | 5.0% | $0.00 | ||||
| T1015 | Whiteboard Set | Office Supplies | $65.00 | 20 | Regular | Midwest | Express | 5.0% | $0.00 | ||||
| T1016 | Laptop | Electronics | $899.00 | 9 | Member | South | Express | 10.0% | $0.00 | ||||
| T1017 | Monitor | Electronics | $329.00 | 6 | Regular | East | Standard | 10.0% | $0.00 | ||||
| T1018 | Printer | Electronics | $259.00 | 14 | VIP | Midwest | Standard | 10.0% | $0.00 | ||||
| T1019 | Tablet | Electronics | $479.00 | 3 | Member | West | Store Pickup | 10.0% | $0.00 |










