Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default How do I count cells that contain a number of charctors.

How do I count cells that contain a number of charctors or specific criteria.
i have a column of cells that contain a range of values and i want to count
only the cells that contain a specific type of value (PO-31233334/M8689901)
vs (31233376/M8694101). If this is not possible then I'd like to count cells
that contain a specific number of charactors (20).

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How do I count cells that contain a number of charctors.

To count the number of values in column D that begin with PO:
=SUMPRODUCT((LEFT(D1:D100,2)="PO")*(D1:D100<""))

--
Gary''s Student - gsnu200812
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How do I count cells that contain a number of charctors.

Try these:

=COUNTIF(A1:A100,"PO-31233334/M8689901")

Or, use a cell to hold the criteria:

F1 = PO-31233334/M8689901

=COUNTIF(A1:A100,F1)

To count cells that contain 20 characters:

=SUMPRODUCT(--(LEN(A1:A100)=20))


--
Biff
Microsoft Excel MVP


"Picman" wrote in message
...
How do I count cells that contain a number of charctors or specific
criteria.
i have a column of cells that contain a range of values and i want to
count
only the cells that contain a specific type of value
(PO-31233334/M8689901)
vs (31233376/M8694101). If this is not possible then I'd like to count
cells
that contain a specific number of charactors (20).



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default How do I count cells that contain a number of charctors.

Thanks, that worked to a certain extent but I do have some cells that meet
that criteria (begin with €œPO€) but are still invalid as they do not contain
the correct number of characters or begin with €œPO€ and are 20 characters in
length but do not meet a standard format (PO-7611189-0710/M895 vs.
PO-31245184/M8768901). The standard that I require to be met is
€œPO-########/M#######€ and any variances, including being case sanative, be
counted.

"Gary''s Student" wrote:

To count the number of values in column D that begin with PO:
=SUMPRODUCT((LEFT(D1:D100,2)="PO")*(D1:D100<""))

--
Gary''s Student - gsnu200812

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
Count cells that have a number 0 Fly Boy 5 Excel Discussion (Misc queries) 3 May 28th 07 01:40 PM
How do I get a count of number of cells filled in? Meenie Excel Discussion (Misc queries) 3 January 10th 07 09:16 PM
Count Number of Different Cells ForSale Excel Worksheet Functions 3 June 8th 06 09:19 PM
count number of cells bill gras Excel Worksheet Functions 4 October 3rd 05 07:15 AM
How do I count number of cells with info?? HJK Excel Discussion (Misc queries) 3 September 20th 05 07:11 AM


All times are GMT +1. The time now is 10:23 AM.

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

About Us

"It's about Microsoft Excel"