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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,689
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.
 

moi2185

New Member
Joined
Apr 4, 2009
Messages
47
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?
 

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,689
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,651
Messages
5,838,584
Members
430,557
Latest member
MK15

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
Top