Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Iviio
 
Posts: n/a
Default how to sum up letters instead of numbers?

I can use formulas to calculate numbers or figures. How do I sum up letters
in a range of cells?
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Care to give an example that shows what you want?

"Iviio" wrote in message
...
I can use formulas to calculate numbers or figures. How do I sum up letters
in a range of cells?



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Do you mean count the instances of a letter, such as

=SUMPRODUCT(LEN(A1:A100)-LEN(SUBSTITUTE(A1:A100,"a","")))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Iviio" wrote in message
...
I can use formulas to calculate numbers or figures. How do I sum up

letters
in a range of cells?



  #4   Report Post  
KL
 
Posts: n/a
Default

Iviio,

Try this:

=SUMPRODUCT(LEN(A1:A10))-SUMPRODUCT((LEN(A1:A10)<LEN(SUBSTITUTE(A1:A10,{"
",0,1,2,3,4,5,6,7,8,9},"")))*(LEN(A1:A10)-LEN(SUBSTITUTE(A1:A10,{"
",0,1,2,3,4,5,6,7,8,9},""))))

or this

=SUMPRODUCT((LEN(A1:A10)<LEN(SUBSTITUTE(UPPER(A1: A10),{"A","B","C","D","E","F","G","H","I","J","K", "L","M","N","O","P","Q","R","S","T","U","V","W","X ","Y","Z"},"")))*(LEN(A1:A10)-LEN(SUBSTITUTE(UPPER(A1:A10),{"A","B","C","D","E", "F","G","H","I","J","K","L","M","N","O","P","Q","R ","S","T","U","V","W","X","Y","Z"},""))))

Regards,
KL


"Iviio" wrote in message
...
I can use formulas to calculate numbers or figures. How do I sum up letters
in a range of cells?



  #5   Report Post  
KL
 
Posts: n/a
Default

This array formula (Ctrl+Shift+Enter) also seems to work provided the first
cell (A1) is not empty and no cells in the range contain error value:

=SUM(LEN(A1:A10))-SUM(IF(ISERROR(--(MID(A1:A10,COLUMN(INDIRECT("1:"&LEN(A1:A10))),1)) ),0,1))

Regards,
KL


"KL" <lapink2000(at)hotmail.com wrote in message
...
Iviio,

Try this:

=SUMPRODUCT(LEN(A1:A10))-SUMPRODUCT((LEN(A1:A10)<LEN(SUBSTITUTE(A1:A10,{"
",0,1,2,3,4,5,6,7,8,9},"")))*(LEN(A1:A10)-LEN(SUBSTITUTE(A1:A10,{"
",0,1,2,3,4,5,6,7,8,9},""))))

or this

=SUMPRODUCT((LEN(A1:A10)<LEN(SUBSTITUTE(UPPER(A1: A10),{"A","B","C","D","E","F","G","H","I","J","K", "L","M","N","O","P","Q","R","S","T","U","V","W","X ","Y","Z"},"")))*(LEN(A1:A10)-LEN(SUBSTITUTE(UPPER(A1:A10),{"A","B","C","D","E", "F","G","H","I","J","K","L","M","N","O","P","Q","R ","S","T","U","V","W","X","Y","Z"},""))))

Regards,
KL


"Iviio" wrote in message
...
I can use formulas to calculate numbers or figures. How do I sum up
letters
in a range of cells?





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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Finding Numbers with Cells that also contain letters Adam Excel Discussion (Misc queries) 7 December 29th 04 02:41 PM
Sorting imported "numbers" Confused on the tundra Excel Discussion (Misc queries) 5 December 17th 04 07:33 PM
row numbers & column letters ALOlson21 Excel Discussion (Misc queries) 3 December 10th 04 05:45 PM
How do I change column labels from numbers to letters in Excel? AllisonCincy Excel Discussion (Misc queries) 2 December 9th 04 12:55 AM


All times are GMT +1. The time now is 09:04 PM.

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"