Hard Numbers in a formula

Matt_Chelmsford

Board Regular
Joined
Jan 31, 2009
Messages
160
Hi,

I have values in cells A1 to A100

A value may look like =1234-4561+456-123

or =456+987

Or even 1234

My aim here is to give each individual value it's own cell

So assume my first example is in A1 then my aim is for B1 = 1234 C1 -4561, etc.

Any help given would be gratefully appreciated.

Regard

Matthew
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hello,

In your Column A ... are you dealing with Text or actual Formulas for which the result is already displayed ...?

Cheers
 
Upvote 0
Assuming cell A1 contains a formula that resolves to -2994
This regular formula, copied across to the right, returns the component positive and negative values:
Code:
B1: 
=TRIM(
    MID(
        SUBSTITUTE(
            SUBSTITUTE(
                SUBSTITUTE(
                    SUBSTITUTE(FORMULATEXT($A1),"+","|+")
                ,"-","|-")
            ,"=","")
        ,"|",REPT(" ",100))
    ,(COLUMNS($B:B)-1)*100+1
    ,100)
 )
These are the results:
Code:
Col_B    Col_C    Col_D    Col_E
1234     -4561    +456     -123
Is that something you can work with?
 
Upvote 0

Forum statistics

Threads
1,222,749
Messages
6,167,958
Members
452,158
Latest member
MattyM

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