Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default EXCEL: how do I add multiple one digits in a singe cell? (tally)

Subject: Tallying e.g. 111=3
How do I make a single cell add three 1s?

Cell A1 has 11
Cell A2 has 111
Cell A3 has 1
Cell A4 has 1111

How do I get the sheet to create a total of 10?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 367
Default EXCEL: how do I add multiple one digits in a singe cell? (tally)

if you are only concerned about the length of the cell try:
= len(a1) + len(a2) + len(a3) + len(a4)

hth

Carlo


On Nov 6, 10:44 am, Diego wrote:
Subject: Tallying e.g. 111=3
How do I make a single cell add three 1s?

Cell A1 has 11
Cell A2 has 111
Cell A3 has 1
Cell A4 has 1111

How do I get the sheet to create a total of 10?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default EXCEL: how do I add multiple one digits in a singe cell? (tally)

If you are sure there are only 1's in those cells, then you could use
LEN to count how many characters there are, eg:

=LEN(A1) will return 2
=LEN(A2) will return 3, etc.

So, you could put this formula in column B and copy down, and then sum
column B to get the overall total.

Hope this helps.

Pete

On Nov 6, 1:44 am, Diego wrote:
Subject: Tallying e.g. 111=3
How do I make a single cell add three 1s?

Cell A1 has 11
Cell A2 has 111
Cell A3 has 1
Cell A4 has 1111

How do I get the sheet to create a total of 10?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default EXCEL: how do I add multiple one digits in a singe cell? (tally)

Enter this in B1 then drag/copy down.

=SUMPRODUCT(--MID($A1,ROW(INDIRECT("1:" & LEN($A1))),1))

Will SUM digits in the cells.

Then enter =SUM(B:B) in C1


Gord Dibben MS Excel MVP

On Mon, 5 Nov 2007 17:44:01 -0800, Diego
wrote:

Subject: Tallying e.g. 111=3
How do I make a single cell add three 1s?

Cell A1 has 11
Cell A2 has 111
Cell A3 has 1
Cell A4 has 1111

How do I get the sheet to create a total of 10?


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
Can I add the value of a singe cell to a chart as a text item? Civbert Excel Discussion (Misc queries) 1 October 30th 07 08:55 PM
create tally sheet for positions- insert names and tally # tally sheets Excel Discussion (Misc queries) 0 April 11th 06 09:41 PM
How to add a singe symbol to the whole column data? usmleboy Excel Discussion (Misc queries) 3 January 7th 06 08:10 AM
How can you identify duplicate entries in a singe column? Melissa Excel Worksheet Functions 3 January 4th 06 09:20 PM
Summary Tally of Multiple Sheets Denise Excel Worksheet Functions 1 April 14th 05 02:35 AM


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