Split single cell value in 2 columns.

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,362
Office Version
  1. 2010
Using Excel 2010

Hello, I have data in column C, column (Col "C" Cell Custom Format 00) I tried formula in column I =LEFT(C6) and in column J =RIGHT(C6) but do not getting correct split as it should be. Apart of that if I sum few numerical values result is 0.

Please help May it require VBA solution if it can be solved by formula it is perfect for me also.

Here is a dropbox link where I have uploaded file with instruction in it.
Split Cell Content.xlsm

Split Cell Content.xlsm
ABCDEFGHIJK
1
2
3Col "C" Cell Custom Format 00
4 I want this resultsFormula split does not giving correct result
5DataSplit Col CFormula split does not giving correct result
612M2M2do not getting
72000000
83M1M1M1
94202020
105M0M0Correct Sum E11:E13M0Sum Not Correct I11:I13
1162M2M52M0
127101010
138212121
149M1M1M1
15100101<---Correct11<--Formula Result Not Correct
1611121212
1712MMMMMM
1813101010
1914M0M0M0
2015111111
2116111111
2217222222
2318M1M1M1
2419212121
25200101<---Correct11<--Formula Result Not Correct
26210202<---Correct22<--Formula Result Not Correct
27220M0M0M
2823212121
2924M0M0M0
3025111111
3126101010
32270202<---Correct22<--Formula Result Not Correct
3328000000
3429202020
35300202<---Correct22<--Formula Result Not Correct
3631111111
37321M1M1M
3833000000
3934101010
4035202020
4136212121
4237222222
4338MM
443910
454010
464111
474221
484300
494411
504511
514610
5247MM
534811
5449M0
5550M0
5651M0
575211
585302
595400
60550M
615610
6257M0
635820
645900
656002
6661M2
6762M0
6863M2
Sheet1
Cell Formulas
RangeFormula
I6:I42I6=LEFT(C6)
J7:J42J7=RIGHT(C7)
G11,K11G11=SUM(E11:E13)


Regards,
Moti
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try the formulas in cells I6 and J6:
Excel Formula:
=IFERROR(VALUE(LEFT(C6)),(LEFT(C6)))
=IFERROR(VALUE(RIGHT(C6)),(RIGHT(C6)))

Artik
 
Upvote 0
TRY:
Excel Formula:
=IFERROR(VALUE(LEFT(TEXT(C6,"00"),1)),LEFT(TEXT(C6,"00"),1))
Excel Formula:
=IFERROR(VALUE(RIGHT(TEXT(C6,"00"),1)),RIGHT(TEXT(C6,"00"),1))
 
Upvote 1
Try the formulas in cells I6 and J6:
Excel Formula:
=IFERROR(VALUE(LEFT(C6)),(LEFT(C6)))
=IFERROR(VALUE(RIGHT(C6)),(RIGHT(C6)))

Artik
That won't work for values like 01 because 01 is not actually in the cell, perhaps:

=IFERROR(--LEFT(TEXT(C6,"00")),LEFT(TEXT(C6,"00")))
=IFERROR(--RIGHT(TEXT(C6,"00")),RIGHT(TEXT(C6,"00")))
 
Upvote 1
Solution
Oh, I didn't read that the column is formatted as "00".
The direction was good, just poor execution. :)

Artik
 
Upvote 0
Hello, @eiloken and @Scott Huish both the option worked as request. (y) Special thanks to both of you for solving my request. Have a nice day. Good luck.

@Artik, also thanks to you for looking my request. Have a nice day. Good luck.

Kind Regards,
Moti :)
 
Upvote 0
How does that have anything to do with what the OP asked for?
 
Upvote 0

Forum statistics

Threads
1,215,411
Messages
6,124,759
Members
449,187
Latest member
hermansoa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top