Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kamran
 
Posts: n/a
Default Finding cells with a specific number of characters

I'm trying to find all the cells in a column that have more than 250
characters. I've tried using DataFilterAdvanced, but haven't been able to
figure it out. I appreciate any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Finding cells with a specific number of characters

In a blank column next to your data, enter the following formula
and copy down as far as you need to go.

=LEN(A1)250

This will return TRUE and FALSE values. Now, auto-filter on TRUE.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Kamran" wrote in message
...
I'm trying to find all the cells in a column that have more
than 250
characters. I've tried using DataFilterAdvanced, but haven't
been able to
figure it out. I appreciate any help.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Finding cells with a specific number of characters

If you want to use Advanced Filter...here's how:

Assuming your list begins in A6, with the column heading in A5
Example:
A5: TextField
A6: Some text of variable length that may or may not exceed 250 chars
etc

Then:
A1: LenTest
A2: =LEN(A6)250

Next: Select your text values A5 through the bottom of the list
<Data<Filter<Advanced Filter
Uncheck: Copy to another location
Uncheck: Unique records only
List Range: (already selected)
Criterial Range: $A$1:$A$2
Click the [OK] button

You should now see only cells that are longer than 250 chars.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Kamran" wrote:

I'm trying to find all the cells in a column that have more than 250
characters. I've tried using DataFilterAdvanced, but haven't been able to
figure it out. I appreciate any help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Kamran
 
Posts: n/a
Default Finding cells with a specific number of characters

I appreciate the replies, but I've been unable to make it work. My data is
in column F, heading in F1, data starting in F2. Using the suggested formula
[in my case, =LEN(F2)250], it hides all rows, I think because cell A6 has
less than 250 char and therefore the criterion is not met. Shouldn't it be
checking the F column independently for every row, e.g., =LEN(F2)250,
=LEN(F3)250, =LEN(F4)250 ?
The only way I've been able to make it work is to copy the F column heading
into a blank column, and the enter 250 question marks into the cell below and
use that for the Advanced Filter.
  #5   Report Post  
Posted to microsoft.public.excel.misc
Kamran
 
Posts: n/a
Default Finding cells with a specific number of characters

Thanks, Chip. After several unsuccessful trials, I finally realized that the
column with the LEN statements had to be "next" to the one with the data I'm
analyzing. It worked.


  #6   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Finding cells with a specific number of characters

It works so you must have applied it incorrectly, you need to have a header,
if you want to filter in place it's easier if you insert a couple of empty
rows at the top, also make sure that the criteria includes 2 cells, one
empty above and the one with the formula below so if the formula is in H2
use H1:H2 for the criteria. Or you can use Chips method copying the formula
down in a help column and filter autofilter on that help column



--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Kamran" wrote in message
...
I appreciate the replies, but I've been unable to make it work. My data is
in column F, heading in F1, data starting in F2. Using the suggested
formula
[in my case, =LEN(F2)250], it hides all rows, I think because cell A6 has
less than 250 char and therefore the criterion is not met. Shouldn't it
be
checking the F column independently for every row, e.g., =LEN(F2)250,
=LEN(F3)250, =LEN(F4)250 ?
The only way I've been able to make it work is to copy the F column
heading
into a blank column, and the enter 250 question marks into the cell below
and
use that for the Advanced Filter.



  #7   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Finding cells with a specific number of characters

It doesn't have to be next to the column with the data but it needs to have
a filter applied to it and it is easier to use if it is next to it

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Kamran" wrote in message
...
Thanks, Chip. After several unsuccessful trials, I finally realized that
the
column with the LEN statements had to be "next" to the one with the data
I'm
analyzing. It worked.



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
highlight/color cells with specific character inside markx Excel Worksheet Functions 6 October 20th 05 10:19 AM
how to format only a specific character or number in each cell withina range of cells Colleen Excel Worksheet Functions 1 September 12th 05 05:44 PM
How do I format cells to a specific number of digits? Gabriele Excel Discussion (Misc queries) 3 February 5th 05 03:17 PM
Count number of shaded cells Maddoktor Excel Discussion (Misc queries) 2 December 20th 04 08:35 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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