Dropdown - list of inventory items based on a sale date

RickG75

New Member
Joined
Aug 26, 2015
Messages
43
Office Version
  1. 365
Platform
  1. MacOS
Hi All,

I am able to create a dropdown to select inventory items.

I would like to be able to limit the items in the dropdown list by a sale date indicated on the invoice.

Is this possible?

Link spreadsheet:


Thanks,

Rick
 

Attachments

  • Screen Shot 2020-08-31 at 6.47.33 PM.png
    Screen Shot 2020-08-31 at 6.47.33 PM.png
    224.5 KB · Views: 9
  • Screen Shot 2020-08-31 at 6.45.30 PM.png
    Screen Shot 2020-08-31 at 6.45.30 PM.png
    110.2 KB · Views: 9

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi RickG75,

You can build your LoV in Inventory

Hillbilly Enterprises.xlsx
ABCDE
1Sale DateItemRetail Unit CostInventoryLoV
28/24/2020Hoops - Green$8.00Hoops - Green
38/24/2020Diamond Stud$15.00Diamond Stud
48/24/2020Necklace - Blue$7.95Necklace - Blue
58/24/2020Leather Belt - Black$21.50Leather Belt - Black
68/31/2020Hoops - yellow$6.75 
78/31/2020copper Stud$13.56 
88/31/2020Necklace - red$8.85 
98/31/2020Leather Belt - Brown$18.26 
Inventory
Cell Formulas
RangeFormula
E2:E9E2=IFERROR(INDEX($B$2:$B$9999,AGGREGATE(15,6,ROW($A$2:$A$9999)-ROW($A$1)/($A$2:$A$9999=Invoice!$A$14),ROW()-ROW($E$1))),"")


Then use OFFSET to offer the LoV

Hillbilly Enterprises.xlsx
ABCDEF
24Item #DescriptionUOMQtyUnit PriceTotal Price
251Diamond StudEa$15.00$0.00
262Leather Belt - BlackEa$21.50$0.00
273Ea  
Invoice
Cell Formulas
RangeFormula
E25:E27E25=IF(ISBLANK(B25),"",VLOOKUP(B25,Inventory!$B$1:$C$19,2,0))
F25:F27F25=IF(ISBLANK(B25),"",D25*E25)
Cells with Data Validation
CellAllowCriteria
D25:D27List=Inventory!$Q:$Q
B25:B27List=OFFSET(Inventory!$E$2,,,COUNTIF(Inventory!$E$2:$E$9999,"> "))
 
Upvote 0
Hi Toadstool,

Many thanks for taking your time to look into this and respond.

Maybe I should explain how I'd like to use this tool. I have a friend selling stuff on FaceBook. There are usually 50-60 items in a sale and typically 15-20 buyers. She would like to type in inventory based on a date she will sell all the items.

Then use the inventory and customer information she has gathered to build a tool to generate invoices instead of hand writing them.

The each dropdown will change based on what the customer purchased per invoice. I hoped there would be a way to write a formula into the data validation to limit the items showing up in the Description column (B25:b34) of the invoice based on the date on the invoice (A14).

This is why there is a Sale Date beside each Item on the Inventory tab. I thought this could be used to limit the items showing up on the invoice by date.

I hope this better understands what I am aiming at.

Thanks,

Rick
 
Upvote 0
Hi Toadstool,
Many thanks for taking your time to look into this and respond.
Maybe I should explain how I'd like to use this tool. .....
...I hope this better understands what I am aiming at.
Thanks,
Rick

Yes, that's what the formulae do.
The Inventory formulae build a list of only items matching the Invoice Sale Date.
The Datalist then only offers an LoV in from B25 of those items using a List formula of
=OFFSET(Inventory!$E$2,,,COUNTIF(Inventory!$E$2:$E$9999,"> "))
 
Upvote 0
Maybe I should explain how I'd like to use this tool. I have a friend selling stuff on FaceBook. There are usually 50-60 items in a sale and typically 15-20 buyers. She would like to type in inventory based on a date she will sell all the items.
  1. Do you have the FILTER function in your Excel 365?

  2. Does your friend also have Excel 365?
    If so, do they also have the FILTER function
 
Upvote 0
  1. Do you have the FILTER function in your Excel 365?

  2. Does your friend also have Excel 365?
    If so, do they also have the FILTER function
Hi Peter_SSs,

Yes, we both have Excel 365 and the filter button.

Thanks,
Rick
 
Upvote 0
and the filter button.
I'm not asking about a filter button, but the FILTER() function.

If you click the fx button and choose 'Lookup & Reference' is FILTER in the list?

1599004526684.png
 
Upvote 0
Hi Peter,

My apologies, yes we both have the filter function.

Thanks,

Rick
 

Attachments

  • Screen Shot 2020-09-01 at 5.05.18 PM.png
    Screen Shot 2020-09-01 at 5.05.18 PM.png
    140.4 KB · Views: 5
Upvote 0
yes we both have the filter function.
OK, thanks. This is how I would approach it.

On the Inventory tab, turn the data in columns A:C into a formal table (select anywhere in that data -> Ctrl+T -> My table has headers -> OK
Go to Formulas ribbon tab -> Name Manager -> Select this new table -> Edit... -> Give it a new name, say Inventory -> OK -> Close

On the invoice tab (if this is from a template you might do it there too)
In an unused column put the formula as shown in J25 below. The other results will 'spill' down the column. Column can now be hidden if you want.
Select B25:B34 and apply the very simple Data Validation formula shown below.

Now, as data is altered in the Inventory table or the date changed on an invoice the DV list will automatically update on each individual invoice sheet.

RickG75.xlsx
ABCDEFGHIJ
13Date:
1408/24/20
15Invoice No:
16327000
17Name:
18
19Address:Phone:
20
21City, State, Zip:Email:
22
23
24Item #DescriptionUOMQtyUnit PriceTotal Price
251EaHoops - Green
262EaDiamond Stud
273EaNecklace - Blue
284EaLeather Belt - Black
295Ea
306Ea
317Ea
328Ea
339Ea
3410Ea
Invoice
Cell Formulas
RangeFormula
J25:J28J25=FILTER(Inventory[Item],Inventory[Sale Date]=A14)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B25:B34List=J$25#
 
Upvote 0
Hi Peter,

This is perfect! Exactly what I was hoping for.

I have 1 more question. I would like to make A14 on the Invoice tab a dropdown from the Sale Date from the Inventory tab. Is there a way remove the duplicate dates from the A14 dropdown?

Many thanks again,

Rick
 
Upvote 0

Forum statistics

Threads
1,214,970
Messages
6,122,514
Members
449,088
Latest member
RandomExceller01

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