Link to home
Create AccountLog in
Avatar of Nick Wolf
Nick WolfFlag for United States of America

asked on

Filter in Excel for a certain number of characters?

How do I use a filter in Excel to only show records that have a certain number of characters? For example, I have data that contain three columns each with a heading of "First", "Middle Initial", or "Last" Some of the Middle Initial rows have last names and some of them have middle initials. I want to show only those records with a middle initial, or, one character. Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of Michael V Bernot
Michael V Bernot
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
If your MIDDLE INITIAL column includes a period you would have to adjust the len formula to 2.  Good Luck.

MVB
SOLUTION
Avatar of byundt
byundt
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
The ? is a wild-card character in Excel, and may represent any single character.
Avatar of Mike McCracken
Mike McCracken

Are you trying to show a report in Crystal?

You could conditionally suppress the row in Crystal with a formula like
Len({MiddleInitialField}) > 1

mlmcc
Avatar of Nick Wolf

ASKER

Turns out that the custom autofilter was really all I needed. I guess his is what happens when you stare at spreadsheets for hours on end without giving yourself a break... :-)