vlookup product & certain quantity in a cumulative pivot table and return the date (header of that pivot table

KristofGoossens

New Member
Joined
Feb 6, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

(using just Excel 365)

I have two data lists that simply put consist of
backlog data (sorted by SKU - committed ship date - date of creation) amongst other data + a cumulative sum of the backlog for comparison to the supply (which is the second list)
pivot table (for aggregation on SKU) with SKU in row, the dates (or weeks to simplify) of arrival in the columns

See below for hypothetical unit with 900 units in backlog and a couple of hundred incoming. What would be the formula to vlookup the cumulative quantity of the backlog to the first value of the pivot table that 's higher and return the date attached to that value?

for SO000008 for example, I know I need at least 625 incoming units to make sure I can deliver that order (and check whether the original committed ship date is still valid), so how would I "vlookup" 625 into the pivot table, get to the first value (of course on the row of SKU XYZ because there are lots of other SKU's) that is bigger than 625 and return the ETA-date?

Thanks in advance for your help!

1675724583728.png


1675724847340.png
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi, Will this work:

Mr Excel Questions2.xlsm
ABCDEFGHI
1OrdernumberSKUCommitted Ship DateCreated DateQTYCumulative Qtyorder fulfillment date
2SO000001XYZ2/10/20221/12/202220202/8/2022
3SO000002XYZ2/17/20221/12/202250702/8/2022
4SO000003XYZ2/24/20221/12/20221001702/15/2022
5SO000004XYZ3/3/20221/12/20222501952/15/2022
6SO000005XYZ3/10/20221/12/2022302252/22/2022
7SO000006XYZ3/17/20211/12/20221503753/1/2022
8SO000007XYZ3/24/20201/12/20221004753/8/2022
9SO000008XYZ4/1/20191/12/20221506253/22/2022
10SO000009XYZ4/8/20181/12/2022200825
11SO000010XYZ4/15/20171/12/202275900
12
13
14
15Cumulative Pivot Data
16SKU2/8/20222/15/20222/22/20223/1/20223/8/20223/15/20223/22/20223/29/2022
17XYZ100200300400500600700800
18
BacklogFullfillment
Cell Formulas
RangeFormula
G2:G9G2=INDEX($A$16:$I$16,XMATCH($F2,FILTER($A$16:$I$17,$A$16:$A$17=$B2),1,1))
 
Upvote 0
Solution
Hi, yes, this looks very helpful at first glance! Thanks a lot!

I will test this formula on my actual data today and tomorrow. Thanks again!!
 
Upvote 0

Forum statistics

Threads
1,215,001
Messages
6,122,648
Members
449,092
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top