Formula help - Please

dineshchaure26

New Member
Joined
May 16, 2012
Messages
3
Hello:

In column A, there is a raw data. I need to separate the raw data in two columns B and C.

Column B shows expected and correct data. Column C doesn't work correctly and I need help fixing this. Expected result that is needed in column C is pasted in the last column.

RAW DATAFORMAT 1FORMAT 2EXPECTED RESULT IN COLUMN C
FORMULA USED ->LEFT(A3,FIND("-",A3)-1)RIGHT(A3,FIND("-",A3)-1)
99-25992525
100-05+10005+05
102-31102-3131
101-25101-2525
101-27101-2727
99-04990404
107-15107-1515
108-22108-2222
109-00109-0000
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi,

Looking at the formula you're using for Format 2, I assume your expected result is Always 2 digits, and looking at your expected results, you want to Keep leading zeros, if so:

Book3.xlsx
ABC
1RAW DATAFORMAT 1FORMAT 2
299-259925
3100-05+10005
4102-3110231
5101-2510125
6101-2710127
799-049904
8107-1510715
9108-2210822
10109-0010900
Sheet986
Cell Formulas
RangeFormula
B2:B10B2=LEFT(A2,FIND("-",A2)-1)
C2:C10C2=MID(A2,FIND("-",A2)+1,2)
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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