#1   Report Post  
util
 
Posts: n/a
Default macros - Find a list

I'm new to macros and excel........

I have several excel spreadsheets that I need to filter daily. I would like
to create a macro that can segment the system_ID with only the following
numbers: (761,628,633,638,773,644,655,660,781,661,712,799,6 05).

What I would like to happen is everytime I receive a spreadsheet filter by
selecting the macro to group these numbers into a separate worksheet or
something else that is visual.

thanks!
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Util,

If your system ID's are in column A, with a header in row 1, you can filter
the sheet by using the macro below.

HTH,
Bernie
MS Excel MVP

Sub Macro1()
Range("A1").EntireColumn.Insert
Range("A1").Value = "Show"
Range("A2:A" & Range("B65536").End(xlUp).Row).FormulaR1C1 = _
"=NOT(ISERROR(MATCH(RC[1]," & _
"{761;628;633;638;773;644;655;660;781;661;712;799; 605},FALSE)))"
Range("A:A").AutoFilter Field:=1, Criteria1:="TRUE"
End Sub



"util" wrote in message
...
I'm new to macros and excel........

I have several excel spreadsheets that I need to filter daily. I would

like
to create a macro that can segment the system_ID with only the following
numbers: (761,628,633,638,773,644,655,660,781,661,712,799,6 05).

What I would like to happen is everytime I receive a spreadsheet filter by
selecting the macro to group these numbers into a separate worksheet or
something else that is visual.

thanks!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot find list in excel 2000 tanu Excel Discussion (Misc queries) 3 April 28th 05 12:44 AM
i need a function to find the highest value in a list Melani Excel Worksheet Functions 2 April 14th 05 08:00 PM
How do I find duplicates in a list JimNC Excel Discussion (Misc queries) 1 February 6th 05 09:40 PM
The available macros list in XL; how to suppress filename from showing KR Excel Discussion (Misc queries) 1 January 10th 05 08:20 PM
How do I find out what items are in one list but not in another l. Michelle Craig Excel Discussion (Misc queries) 2 December 22nd 04 09:32 PM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"