Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default Filtering with multiple criteria

Hello,

I have a spreadsheet that contains multiple columns one of which is called
"SITE NO". I am looking to create a macro that would include multiiple site
numbers and have the records filtered just for the sites listed in the
macro. The site numbers are 5 digits long such as "17005, 18010, 34111,
12022, 15563" for example.

Thanks

Fred

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Filtering with multiple criteria

The easiest way is probably to set up a helper column out of the way (say,
column AZ) and have a formula like
=OR(A2=17005,A2=18010,A2=34111,A2=12022,A2=15563)

and then record a quick macro of you filtering column AZ for "TRUE". This
way would also be easier to change which values you want to filter for.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"fgwiii" wrote:

Hello,

I have a spreadsheet that contains multiple columns one of which is called
"SITE NO". I am looking to create a macro that would include multiiple site
numbers and have the records filtered just for the sites listed in the
macro. The site numbers are 5 digits long such as "17005, 18010, 34111,
12022, 15563" for example.

Thanks

Fred

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
Filtering by criteria within PV in Excel. Sardonic Excel Discussion (Misc queries) 0 December 4th 07 02:57 PM
Filtering for Unique Records with multiple-column criteria crcurrie Excel Discussion (Misc queries) 5 April 10th 07 10:06 AM
Filtering using ends with decimal criteria tmj Excel Worksheet Functions 1 June 20th 06 12:04 PM
Filtering by criteria in two columns bookmike Excel Worksheet Functions 2 July 20th 05 04:03 AM
Advanced Filtering - Computed Criteria KIM Excel Worksheet Functions 5 February 28th 05 08:31 PM


All times are GMT +1. The time now is 12:05 AM.

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"