Update item list with dates

leebauman

Board Regular
Joined
Jul 1, 2004
Messages
194
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a list of items currently in my inventory and a separate list indicating when I will receive shipments (open purchase orders) of additional items.

I want to extrapolate the date and quantity data from the open purchase orders sheet to understand how inventory levels will adjust going forward. Crude example below.

Book2
ABCDEFGHI
1ItemCurrent Qty1/15/20212/15/20212/20/20213/7/20212/5/20214/1/20215/23/2021
2Apple-104410
3Pear-24
4Orange019
5Banana-251820
6
7ItemQtyDate
8Grape31/1/2021
9Apple41/15/2021
10Mango12/3/2021
11Orange192/5/2021
12Avocado23/6/2021
13Pear43/7/2021
14Banana184/1/2021
15Apple42/15/2021
16Apple102/20/2021
17Banana205/23/2021
Sheet1
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Would this suffice?

21 02 08.xlsm
ABCDEFGHIJKL
1ItemCurrent Qty1/01/202115/01/20213/02/20215/02/202115/02/202120/02/20216/03/20217/03/20211/04/202123/05/2021
2Apple-10 4  410    
3Pear-2       4  
4Orange0   19      
5Banana-25        1820
6
7ItemQtyDate
8Grape31/01/2021
9Apple415/01/2021
10Mango13/02/2021
11Orange195/02/2021
12Avocado26/03/2021
13Pear47/03/2021
14Banana181/04/2021
15Apple415/02/2021
16Apple1020/02/2021
17Banana2023/05/2021
Inventory
Cell Formulas
RangeFormula
C1:L1C1=TRANSPOSE(SORT(UNIQUE(C8:C17)))
C2:L5C2=FILTER($B$8:$B$17,($A$8:$A$17=$A2)*($C$8:$C$17=C$1),"")
Dynamic array formulas.
 
Upvote 0
.. or if you don't want those vacant columns.

21 02 08.xlsm
ABCDEFGHI
1ItemCurrent Qty15/01/20215/02/202115/02/202120/02/20217/03/20211/04/202123/05/2021
2Apple-104 410   
3Pear-2    4  
4Orange0 19     
5Banana-25     1820
6
7ItemQtyDate
8Grape31/01/2021
9Apple415/01/2021
10Mango13/02/2021
11Orange195/02/2021
12Avocado26/03/2021
13Pear47/03/2021
14Banana181/04/2021
15Apple415/02/2021
16Apple1020/02/2021
17Banana2023/05/2021
Inventory (2)
Cell Formulas
RangeFormula
C1:I1C1=TRANSPOSE(SORT(UNIQUE(FILTER(C8:C17,ISNUMBER(MATCH(A8:A17,A2:A5,0))))))
C2:I5C2=FILTER($B$8:$B$17,($A$8:$A$17=$A2)*($C$8:$C$17=C$1),"")
Dynamic array formulas.
 
Upvote 0
Yeah, that works perfectly. Thanks so much for the quick help!
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0
After playing around, I'm realizing it's a bit more complex.

The initial list is an order list by item. The quantities are on backorder and I need to extrapolate date and quantity info from an open purchase order list. Updated scenario below.

Thanks again.

Book2
ABCDEFGHIJKLMNOP
1Order #DateItemQty on Order1/15/20212/15/20212/20/20214/1/20212/5/20214/1/20215/23/20213/7/20212/20/20212/5/20212/20/20215/23/2021
21111/1/2021Apple-10442
32221/15/2021Banana-33
43331/23/2021Orange-99
54441/25/2021Banana-251510
65552/2/2021Pear-22
76662/4/2021Apple-66
87773/1/2021Orange-33
98883/5/2021Apple-11
109994/1/2021Banana-1010
11
12
13ItemQtyDate
14Grape31/1/2021
15Apple41/15/2021
16Mango12/3/2021
17Orange192/5/2021
18Avocado23/6/2021
19Pear43/7/2021
20Banana184/1/2021
21Apple42/15/2021
22Apple102/20/2021
23Banana205/23/2021
Sheet1
 
Upvote 0
Like this?
I have used a custom number format in the formula cells of 0;0;"" to hide zero values. No need to do this if you are happy to see zeros in the empty cells.
I don't see why you have 15 and 10 for Banana - hopefully that was a typo.

21 02 08.xlsm
ABCDEFGHIJK
1Order #DateItemQty on Order15/01/20215/02/202115/02/202120/02/20217/03/20211/04/202123/05/2021
21111/01/2021Apple-104 42   
322215/01/2021Banana-3     3 
433323/01/2021Orange-9 9     
544425/01/2021Banana-25     187
65552/02/2021Pear-2    2  
76664/02/2021Apple-64 2    
87771/03/2021Orange-3 3     
98885/03/2021Apple-11      
109991/04/2021Banana-10     10 
11
12
13ItemQtyDate
14Grape31/01/2021
15Apple415/01/2021
16Mango13/02/2021
17Orange195/02/2021
18Avocado26/03/2021
19Pear47/03/2021
20Banana181/04/2021
21Apple415/02/2021
22Apple1020/02/2021
23Banana2023/05/2021
Inventory (3)
Cell Formulas
RangeFormula
E1:K1E1=TRANSPOSE(SORT(UNIQUE(FILTER(C14:C23,ISNUMBER(MATCH(A14:A23,C2:C10,0))))))
E2:K10E2=MIN(-$D2-SUMIF($D2:D2,">0"),FILTER($B$14:$B$23,($A$14:$A$23=$C2)*($C$14:$C$23=E$1),0))
Dynamic array formulas.
 
Upvote 0
Solution
Yes, my mistake on the banana counts. Many thanks for the solution.
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,286
Members
449,218
Latest member
Excel Master

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