Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Irv
 
Posts: n/a
Default Adding cells with alphabet and returning a numbric value

Is it possible to write a formula to get a numeric value when trying to add
up the number of a specific letter (i.e. #of C's) in a range' of cells. If so
how do I write the formula.

Ex: =IFsum(???) or =IF(range, 'C')???

Help
  #2   Report Post  
Ev
 
Posts: n/a
Default

=countif(range,"c")

"Irv" wrote in message
...
Is it possible to write a formula to get a numeric value when trying to
add
up the number of a specific letter (i.e. #of C's) in a range' of cells. If
so
how do I write the formula.

Ex: =IFsum(???) or =IF(range, 'C')???

Help



  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=COUNTIF(Range,"C")

would count C-entries.

"Irv" wrote in message
...
Is it possible to write a formula to get a numeric value when trying to
add
up the number of a specific letter (i.e. #of C's) in a range' of cells. If
so
how do I write the formula.

Ex: =IFsum(???) or =IF(range, 'C')???

Help



  #4   Report Post  
tjtjjtjt
 
Posts: n/a
Default

You are trying to count the number of cells that contain 'C'?
If your range is A1:A10
=COUNTIF(A1:A10,"C")

tj


"Irv" wrote:

Is it possible to write a formula to get a numeric value when trying to add
up the number of a specific letter (i.e. #of C's) in a range' of cells. If so
how do I write the formula.

Ex: =IFsum(???) or =IF(range, 'C')???

Help

  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=COUNTIF(Range,"C")

if there can be are more than one C i the cells


=SUMPRODUCT(LEN(Range)-(LEN(SUBSTITUTE(UPPER(Range),"C",""))))

both formulas will count c and C, if you want C only

=SUMPRODUCT(LEN(Range)-(LEN(SUBSTITUTE(Range,"C",""))))

Regards,

Peo Sjoblom

"Irv" wrote:

Is it possible to write a formula to get a numeric value when trying to add
up the number of a specific letter (i.e. #of C's) in a range' of cells. If so
how do I write the formula.

Ex: =IFsum(???) or =IF(range, 'C')???

Help

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



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