ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   splitting a number into two cells from one (https://www.excelbanter.com/excel-discussion-misc-queries/97820-splitting-number-into-two-cells-one.html)

jglen

splitting a number into two cells from one
 
I would like to know how to split ie 123456789 in cell A1 to 123 in B1, and
456789 in C1. Is there a formula that can do this for me?

CWillis

splitting a number into two cells from one
 
in b1: =LEFT(A1,3)
in C1: =RIGHT(A1,6)

there is also a mid( ) function you may want to use...

-chris

"jglen" wrote:

I would like to know how to split ie 123456789 in cell A1 to 123 in B1, and
456789 in C1. Is there a formula that can do this for me?


Marcelo

splitting a number into two cells from one
 
Hi JGlen,

if will always the first 3 numbers on the b column and the rest on the C

use:

B column
=left(a2,3)

C Colum
=right(a2,(len(a2)-len(b2))

hth
regards from Brazil
Marcelo

"jglen" escreveu:

I would like to know how to split ie 123456789 in cell A1 to 123 in B1, and
456789 in C1. Is there a formula that can do this for me?


Sloth

splitting a number into two cells from one
 
There are two methods you can use.

1. Use the following formulas
=LEFT(A1,3)
=RIGHT(A1,6)

2. Use Data Text to columns and select "Fixed Width"

"jglen" wrote:

I would like to know how to split ie 123456789 in cell A1 to 123 in B1, and
456789 in C1. Is there a formula that can do this for me?


David Biddulph

splitting a number into two cells from one
 
"jglen" wrote in message
...
I would like to know how to split ie 123456789 in cell A1 to 123 in B1, and
456789 in C1. Is there a formula that can do this for me?


=LEFT(A1,3) in B1
=RIGHT(A1,6) in C1

Another option is Data/ Text to Columns, & choose fixed width accordingly
--
David Biddulph




All times are GMT +1. The time now is 12:33 AM.

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