ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   adding numbers in each cell (https://www.excelbanter.com/excel-discussion-misc-queries/107388-adding-numbers-each-cell.html)

Jeff

adding numbers in each cell
 
I want to add the numbers in each cell by how many numbers appear.
For example: 1,2,5 would equal 3. Is there a way to do this?

Kevin B

adding numbers in each cell
 
Use =COUNT(A1:A30) to count cells with values, substituting A1:A30 with the
appropriate range address.
--
Kevin Backmann


"Jeff" wrote:

I want to add the numbers in each cell by how many numbers appear.
For example: 1,2,5 would equal 3. Is there a way to do this?


RagDyeR

adding numbers in each cell
 
Are you saying that you want to sum the total number of individual numbers
in a particular cell?

If they are displayed *exactly* the same as in your example, just count the
commas and add 1:

=LEN(A1)+1-LEN(SUBSTITUTE(A1,",",""))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Jeff" wrote in message
...
I want to add the numbers in each cell by how many numbers appear.
For example: 1,2,5 would equal 3. Is there a way to do this?




All times are GMT +1. The time now is 02:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com