Writing a Macro that looks to a value in a cell and returns a list of items that correspond to that value?
Hi there, I'm working on writing a Macro in excel (don't have any VBA experience). I'm hoping to use the value on tab one in C5 and return the list of all items numbers that correspond to C5 (column C in tab 2). Is this possible to do with a macro?
You can achieve this without VBA or formulas. You can use a Pivot Table.
See attached. This uses the department as a Page Filter and then it shows the list of item numbers for that department.
If you were to change the data list to an excel Table rather than a standard list the Pivot would adjust automatically for the range of data expanding (or shrinking).