Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Help with CountIF formula

Hello All,

Is there a way to use CountIF to count any cells with a particular
number or letter in the cell? I am trying to count the types of parts
we have. Each type of part starts with a particular letter. So one
type of parts might start with a "P", i.e. P105064 or P646546 or
P797985 and another might start with "T", i.e. T1266465, T879646 or
T8646377. What I need to do is count the number of different types of
parts. Is there a way to count if a cell value contains a "P"?

Thanks for all the help.

Steve

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Help with CountIF formula

Starts with a P:
=countif(a1:a10,"P*")

Contains a P:
=countif(a1:a10,"*P*")




Smonczka wrote:

Hello All,

Is there a way to use CountIF to count any cells with a particular
number or letter in the cell? I am trying to count the types of parts
we have. Each type of part starts with a particular letter. So one
type of parts might start with a "P", i.e. P105064 or P646546 or
P797985 and another might start with "T", i.e. T1266465, T879646 or
T8646377. What I need to do is count the number of different types of
parts. Is there a way to count if a cell value contains a "P"?

Thanks for all the help.

Steve


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Help with CountIF formula

My thanks to both of you!

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
COUNTIF FORMULA ISSUES - NEED FORMULA CORRECTED Debbi Excel Worksheet Functions 2 November 18th 09 04:47 AM
CountIf formula Verne Excel Discussion (Misc queries) 4 November 8th 09 11:09 PM
CountIF and Sum in one formula? Scott A[_2_] Excel Worksheet Functions 8 June 4th 09 07:51 AM
CountIf formula results in the formula itself being displayed. NewKid Excel Worksheet Functions 9 December 21st 05 11:10 PM
using countif into a formula fuzzy Excel Programming 3 October 24th 05 01:11 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"