Help with Filter! - Macro

moi2185

New Member
Joined
Apr 4, 2009
Messages
47
Hi all, I'm an excel newbie trying to filter a data in column AF using the criteria as "Not assigned" and then copy just the unique values in column V (this data will be paste in another sheet called "Tool" cell H29). I know that I can go and copy the data paste it and then use the remove duplicates function but I think that there should be a more efficient way to get it done.

By the way this is runned into a macro, so any VB code will be greatly appreciated.

Best regards,

Moises G.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Have you tried using Advanced Filter? Set up a criteria area, with the same heading as column AF, with a single cell under it with "Not assigned", and set up an output area, with the column V and AF headings. Do this in the same sheet when testing ... see if does what you want ( tick the Unique Records Only tickbox ). If that does what you want, then record a macro of the action, and tweak the code, so that it extracts directly to the "Tool" sheet.
 
Upvote 0
Have you tried using Advanced Filter? Set up a criteria area, with the same heading as column AF, with a single cell under it with "Not assigned", and set up an output area, with the column V and AF headings. Do this in the same sheet when testing ... see if does what you want ( tick the Unique Records Only tickbox ). If that does what you want, then record a macro of the action, and tweak the code, so that it extracts directly to the "Tool" sheet.

Thanks for your reply. I tried but it didn't work. What should I put under the AF column?
 
Upvote 0
Thanks for your reply. I tried but it didn't work. What should I put under the AF column?

Er, do you mean, what should you put under the criteria heading that has been copied from the AF column? ( the AF Column contains your original data doesn't it )

If that's what you mean, then type
Not assigned
into the cell under the heading, and refer to the heading and that cell as the Criteria.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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