Is it possible to create a macro which generates a new list based on a criteria list?

NewbieNoob

New Member
Joined
Feb 23, 2018
Messages
15
5GlXgm2
5GlXgm2
https://imgur.com/5GlXgm2

Assuming I have my list of cars in column A. I choose a certain type of cars in column C, would it then be possible to generate a list of the remaining cars in column E, which I did not choose?

I found something like this: http://www.excelfunctions.net/vba-filter-function.html I think Example 2 is what I exactly want, however I'm not sure how I assign this macro to a button to make it generate the list?
 
That part of the code is removing the key from the dictionary & therefore you don't need to specify the item as that will automatically be removed
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
That part of the code is removing the key from the dictionary & therefore you don't need to specify the item as that will automatically be removed

That does make sense, thanks! My final question is regarding .Transpose at the end. Is the reason that we use this because keys are stored in one single row and in order to display them in a column, Transpose needs to be used?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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