Separate number into their own cells.

gleemonex69

New Member
Joined
Dec 9, 2010
Messages
37
Good morning, Excel gods. I was wondering if there was some sort of formula to separate data into their own cells for example:


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Jul-10[/TD]
[/TR]
[TR]
[TD]Meats[/TD]
[TD]2.5 to 3.5[/TD]
[/TR]
[TR]
[TD]Poultry[/TD]
[TD]2.0 to 3.0[/TD]
[/TR]
</tbody>[/TABLE]

Could I somehow with a formula do something like this?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Jul-10[/TD]
[TD]Jul-10[/TD]
[TD]AVG[/TD]
[/TR]
[TR]
[TD]Meats[/TD]
[TD]2.5[/TD]
[TD]3.5[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]Poultry[/TD]
[TD]2.0[/TD]
[TD]3.0[/TD]
[TD]2.5[/TD]
[/TR]
</tbody>[/TABLE]

Thank you so much for your assistance.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hey,

try these formulae:

C2:
=VALUE(LEFT(B2,SEARCH("to",B2)-2))
D2:
=VALUE(MID(B2,SEARCH("to",B2)+3,LEN(B2)))
E2:
=AVERAGE(C2:D2)

This assumes that each set of numbers is split by the word "to" and that B2 is the text containing "2.5 to 3.5" etc.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,155
Members
452,615
Latest member
bogeys2birdies

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