Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CJ CJ is offline
external usenet poster
 
Posts: 102
Default Advanced Filter by Cell Formatting

Hi groupies

Is it possible to use an Advanced Filter to filter cells by their formatting.

For example. If I have a list of customers, some from the States some from
Canada and some from Europe, I would like to be able to filter by the format
of the data in the PostalCode/ZipCode field.

Canadian Postal Codes are L9L 9L9 format, US being 99999-9999 etc.

Any ideas?
--
Thanks for the brainwaves!

CJ
I blame the parents........
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default Advanced Filter by Cell Formatting

Whew, for a minute there I thought you wanted to filter cells by their
formatting. I don't think you could format by whether something is bold or
red font or 10 point.

But you really want to filter by some aspect of the data itself, the easiest
in this case being whether the postal code starts with a letter or number.

Somewhere outside of your data range, set up these four cells (no quotes
around the header cells):

"US Post"
=ISNUMBER(VALUE(LEFT(B7,1)))

"Canadian Post"
=NOT(ISNUMBER(VALUE(LEFT(B7,1))))

B7 in the two folrmulas is the first cell in your column of postal codes
(not the header), so adjust it to your actual first cell. Then go to Data
Filter Advanced Filter. Leave "Filter the list in place" checked, List
range is your column of postal codes (including the header) and Criteria
Range is two cells, either the US Post header and the formula under it or
Canadian Post and the formula under it. Leave "Unique Records Only"
unchecked, and press Okay. This will filter your list to show only US or
Canadian codes.

I think this would be better with Autofilter since you are not copying the
data to another location, but that's not what you said you wanted.

HTH


"CJ" wrote:

Hi groupies

Is it possible to use an Advanced Filter to filter cells by their formatting.

For example. If I have a list of customers, some from the States some from
Canada and some from Europe, I would like to be able to filter by the format
of the data in the PostalCode/ZipCode field.

Canadian Postal Codes are L9L 9L9 format, US being 99999-9999 etc.

Any ideas?
--
Thanks for the brainwaves!

CJ
I blame the parents........

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
Advanced Conditional Formatting Ideas Needed! (ok, maybe not that advanced...) shadestreet Excel Discussion (Misc queries) 2 July 21st 06 03:04 PM
Advanced formatting operation on a cell Muhammed Rafeek M Excel Discussion (Misc queries) 5 July 21st 06 10:50 AM
advanced filter - can't match a long text cell simpsons_rule Excel Discussion (Misc queries) 7 May 14th 05 11:00 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM


All times are GMT +1. The time now is 05:45 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"