change 2#s in one cell to two different cells

elbicho

New Member
Joined
Jul 25, 2011
Messages
9
I imported a bunch of data that has some of the numbers listed as this 50-55
what is the forumla to change it some both numbers are in different cells.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
You could try something like this -
In A1 your two values:
50-55
In B1:
=VALUE(LEFT(A1,FIND("-",A1)-1))
And in C1:
=VALUE(RIGHT(A1,LEN(A1)-FIND("-",A1)))
 
Upvote 0
I know you asked for a formula, but just as an alternative - you could go into Data, text to columns, and select you delimiter as the dash.
 
Upvote 0
what if the data is imported like this 10/20 50% in the same cell. I just want the 10 and 20 in different cells.
 
Upvote 0
what if the data is imported like this 10/20 50% in the same cell. I just want the 10 and 20 in different cells.
Is this what you mean?

Excel Workbook
ABC
110/20 50%1020
Extract Nums



If they were always 2 digit numbers maybe
=LEFT(A1,2)+0
=MID(A1,4,2)+0
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,881
Members
452,948
Latest member
Dupuhini

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