ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Adding a two digit number in One Cell (https://www.excelbanter.com/new-users-excel/199630-adding-two-digit-number-one-cell.html)

Billy118

Adding a two digit number in One Cell
 
Is there any way I can add the two digits making up example: the number 16
which is found in a single cell. Add 1 plus 6 which would equal 7. The
original number 16 is the number found in a single cell.

Rich/rerat

Adding a two digit number in One Cell
 
In A1: 16
In B1: =SUM(RIGHT($A1,1),LEFT($A1,1))
Drag formula down if you want to do this to multiple entries in Column A.
--
Add MS to your News Reader: news://msnews.microsoft.com
Rich/rerat (RRR News) <message rule
<<Previous Text Snipped to Save Bandwidth When Appropriate


"Billy118" wrote in message
...
Is there any way I can add the two digits making up example: the number 16
which is found in a single cell. Add 1 plus 6 which would equal 7. The
original number 16 is the number found in a single cell.



T. Valko

Adding a two digit number in One Cell
 
Try this:

A1 = 16

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

--
Biff
Microsoft Excel MVP


"Billy118" wrote in message
...
Is there any way I can add the two digits making up example: the number
16
which is found in a single cell. Add 1 plus 6 which would equal 7. The
original number 16 is the number found in a single cell.





All times are GMT +1. The time now is 11:52 PM.

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