Adding/subtracting numbers in same cell

rpoppy

New Member
Joined
Jul 28, 2010
Messages
9
Hello! If I have multiple numbers in the same cell is it possible to add or subtract them? For example I have a cell that says "Funding costs decreased from $500 by $400" so the next cell over needs to show the current amount which would be "$100."

Is there a way to do this without having to manually add or subtract the numbers and input the amount? Thank you in advance!

- rpoppy
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Are the surrounding words always the same? What is the wording for an increase?
 
Upvote 0
It is the same wording. It would read "Funding costs incresed from $100 by $400" and the next cell would say "$500"

Thanks!
 
Upvote 0
=ABS(REPLACE(LEFT(A1,FIND("by",A1)-1),1,30,"")-TRIM(RIGHT(SUBSTITUTE(A1,"$",REPT(" ",255),2),255)))
 
Upvote 0
Thanks! That helped a lot. The only problem is that it only decreases the two numbers and sometimes they need to be increased. Is there a way to make it so that it will do both depending on the wording inside the cell?
 
Upvote 0
=IF(MID(A1,15,9)="decreased",REPLACE(LEFT(A1,FIND("by",A1)-1),1,30,"")-TRIM(RIGHT(SUBSTITUTE(A1,"$",REPT(" ",255),2),255)),REPLACE(LEFT(A1,FIND("by",A1)-1),1,30,"")+TRIM(RIGHT(SUBSTITUTE(A1,"$",REPT(" ",255),2),255)))
 
Upvote 0

Forum statistics

Threads
1,214,385
Messages
6,119,210
Members
448,874
Latest member
b1step2far

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