Ignore symbol and add it back in equation

excelbloggs

New Member
Joined
Dec 7, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have three columns, two of which have data and one that needs to output an answer to an equation. The current setup is like this:

SpaceCompletionFinished
64m²100%64m²
20m¹40%8m¹

In the Finished column, I am simply wanting to do A2 * B2 to give the result you see in the Finished column but I know the 'm²' / 'm¹' is causing issues and I simply get '#VALUE'.

I tried to use Substitute and was able to get the correct answer, but it is not dynamic as I have only defined 'm²' so I can't copy the cells down properly and it also does not append the 'm²' back to the result.

=SUBSTITUTE(A2, "m²","")*B2

This gives me the result of '64' but ideally it would output '64m²'

Does anyone have any suggestions for an equation that will essentially be able to:
  1. Check whether column A contains 'm¹' or 'm²' and ignore them
  2. Multiply by the value in the B column of the same row
  3. Add the 'm¹' or 'm²' back to the result
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABC
1SpaceCompletionFinished
264m²100%64m²
320m¹40%8m¹
Data
Cell Formulas
RangeFormula
C2:C3C2=LEFT(A2,LEN(A2)-2)*B2&RIGHT(A2,2)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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