Filter based on Input Box

Pratap 1987

Board Regular
Joined
Feb 28, 2011
Messages
95
Hi there,</SPAN>

I have a worksheet with Columns A to Y and has filled rows upto 50,000 (maximum). I need a macro to perform the below steps:</SPAN>

- Column P will be titled as "Age" and will have any number between 1 - 50,000. First step of the macro should be to keep numbers between 1 to 5 and delete the other rows (i.e, only keep rows which has number 1 to 5 in Column P)</SPAN>

- Column R will be titled as "Notes" and will have lot of numbers/texts/symbols. Next step of the macro should be bring in a "Input Box" and ask the user to input a value (The user will input a date in the format 0118/0117/anything) - Based on the input, the macro should filter column R which begins with that input date/value and update "Yes" in Column X. Then Remove Filter.</SPAN>

- Column O will be tiled as "NAV Impact" and will have numbers with 5 decimal points. Last step of the macro should be Filter column o which has a value greater than (or) equal to 0.005 and update "Impact" in Column Y. Then Remove Filter.</SPAN>

Your assistance is much appreciated.</SPAN>

Thanks,
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Watch MrExcel Video

Forum statistics

Threads
1,123,514
Messages
5,602,091
Members
414,501
Latest member
mdhaumyu

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