Stock lookup

vapohendo

New Member
Joined
May 28, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a vague idea, but wanted a second opinion to see if its possible.

Let's say I have a massive list of data, contains product types, locations, serial numbers and so on. What I want to do, is be able to say, on another sheet, show me all of this product type and then have a copy of all the rows appear below, or if I only want the stock from a particular location, it shows them only.

So, if I have vending machines across multiple states, but I only want to see the ones that are in state A, would a an index function be the best fit for that.

The first image, would be the look up setting, the second would be the data list. Any help would be wonderful
idea 1.png
idea 2.png
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hello VapoHendo,

If your data set is large, then perhaps the Advanced Filter will do the task for you:-

VBA Code:
Sub Test()

    If WorksheetFunction.CountA(Sheet2.Range("A2:H2")) = 0 Then Exit Sub

    Sheet2.Range("A3", Range("H" & Rows.Count).End(xlUp)).ClearContents
    Sheet1.Range("A1", Sheet1.Range("H" & Sheet1.Rows.Count).End(xlUp)).AdvancedFilter 2, Sheet2.[A1:H2], [A3]
    
End Sub

I've attached a mock-up sample file to show you how it could work Here.

Sheet1 has a data base.
In Sheet2, you'll notice drop down selections in cells A2, B2, C2 and D2. Select whichever criteria you may need (either a single criteria or multiple criteria) and then click on the "GO" button. The rows of your selected data options will then be shown.
Play with the sample and let us know what you think.

I hope that this helps.

Cheerio,
vcoolio.
 
Upvote 0
Hello VapoHendo,

If your data set is large, then perhaps the Advanced Filter will do the task for you:-

Cheerio,
vcoolio.

Hey, this is like I was thinking, but much simpler, so I can work with it. Thanks for your help, really appreciate it
 
Upvote 0
You're welcome Vapohendo.
I'm glad to have been able to assist.

Cheerio,
vcoolio.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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