ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Seperate digits of a number in a cell by columns and back (https://www.excelbanter.com/excel-discussion-misc-queries/154435-seperate-digits-number-cell-columns-back.html)

Mar Nighbor

Seperate digits of a number in a cell by columns and back
 
I am working with numbers of multiple digits in a single cell. I would like
each digit to be in its own cell within the same row, in multiple columns.
Then I am going to perform calculations on the numbers. Afterwards, I would
like to consiladate the numbers back into the same cell again.

Any ideas without using macros. I am unable to record macros on my
computer, unless you know a way around doing this without actually recording
a macro.

Elisabeth

Seperate digits of a number in a cell by columns and back
 
If you don't need the ones place, tens place, etc. in the same column for all
numbers, perhaps this will work for you:

Select your column of numbers, Data -- Text to Columns. Select Fixed Width
and place break lines between each digit. Change the destination to the next
column over to preserve your original figures. You can then do your
calculations and delete the columns of individual digits when you're done.
Because you didn't overwrite your original figures, there is no need to put
the numbers back into the same cell again.

HTH
--
Elisabeth


"Mar Nighbor" wrote:

I am working with numbers of multiple digits in a single cell. I would like
each digit to be in its own cell within the same row, in multiple columns.
Then I am going to perform calculations on the numbers. Afterwards, I would
like to consiladate the numbers back into the same cell again.

Any ideas without using macros. I am unable to record macros on my
computer, unless you know a way around doing this without actually recording
a macro.


Ron Rosenfeld

Seperate digits of a number in a cell by columns and back
 
On Thu, 16 Aug 2007 17:51:54 -0700, Mar Nighbor <Mar
wrote:

I am working with numbers of multiple digits in a single cell. I would like
each digit to be in its own cell within the same row, in multiple columns.
Then I am going to perform calculations on the numbers. Afterwards, I would
like to consiladate the numbers back into the same cell again.

Any ideas without using macros. I am unable to record macros on my
computer, unless you know a way around doing this without actually recording
a macro.


With the number in A2, use formula:

=MID($A2,COLUMNS($A:A),1)

and Fill Right as far as required.


If you want the numbers "right-justified", then substitute something like:

TEXT($A2,"000000000") for $A2 above
--ron


All times are GMT +1. The time now is 02:16 AM.

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