Hi Friends,
I’ve been transitioning my work to ‘new’ Excel, taking advantage of dynamic arrays, the Let function, lambdas, etc. It’s a spectacular improvement to a product I’ve been using since it started life as Multiplan. I’m currently exploring the bounds between what I know is possible with these tools and what is beyond Excel’s current capabilities.
Let’s assume that we’re dealing with a plumbing equipment distributor who record in a table (Raw Invoice Data Table) the data found in columns A through E in my example workbook. The way that the distributor works is to record sales at a fixed base price by SKU (columns G-H), common for all customers. At the end of the quarter, they rebate back to each customer an amount that is dependent on the customer’s contract and who the manufacturer of the product is (columns J-M).
I can easily write a formula in O5 that will spill the entire contents of the Raw Invoice Data Table, and I can modify that formula to only spill selected columns from the Raw Invoice Data Table. What I’m having trouble with—and don’t even know if it’s possible—is to write a single formula that will spill data from the Raw Invoice Data Table and append columns it to that have calculations in them.
In the attached example, the end product I’m seeking would look like what I’ve labeled REPORT in columns O through V. Columns O through S would just be the spilled Raw Invoice Data Table, Column T would be an appended column that looks up prices from the Base Price table, Column U would be an appended column that performs math (column T * column U), and Column V performs a lookup of Customer # and Manufacturer into the Quarterly Rebate Table and multiplies the returned rebate by the Extended Price (column U). My question is, is this achievable as a single formula in cell O5 that spills down and right?
Thanks in advance for your help!
I’ve been transitioning my work to ‘new’ Excel, taking advantage of dynamic arrays, the Let function, lambdas, etc. It’s a spectacular improvement to a product I’ve been using since it started life as Multiplan. I’m currently exploring the bounds between what I know is possible with these tools and what is beyond Excel’s current capabilities.
Let’s assume that we’re dealing with a plumbing equipment distributor who record in a table (Raw Invoice Data Table) the data found in columns A through E in my example workbook. The way that the distributor works is to record sales at a fixed base price by SKU (columns G-H), common for all customers. At the end of the quarter, they rebate back to each customer an amount that is dependent on the customer’s contract and who the manufacturer of the product is (columns J-M).
I can easily write a formula in O5 that will spill the entire contents of the Raw Invoice Data Table, and I can modify that formula to only spill selected columns from the Raw Invoice Data Table. What I’m having trouble with—and don’t even know if it’s possible—is to write a single formula that will spill data from the Raw Invoice Data Table and append columns it to that have calculations in them.
In the attached example, the end product I’m seeking would look like what I’ve labeled REPORT in columns O through V. Columns O through S would just be the spilled Raw Invoice Data Table, Column T would be an appended column that looks up prices from the Base Price table, Column U would be an appended column that performs math (column T * column U), and Column V performs a lookup of Customer # and Manufacturer into the Quarterly Rebate Table and multiplies the returned rebate by the Extended Price (column U). My question is, is this achievable as a single formula in cell O5 that spills down and right?
Thanks in advance for your help!