a formula that changes words in a cell

orinew1324

New Member
Joined
Mar 22, 2020
Messages
6
Office Version
  1. 2013
  2. 2010
Platform
  1. Windows
Hello there!
I have an excel sheet filled with cells that look like this:
[latex]{ x }^{ 2 }>144[latex]מהו הטווח של איקס?
I want to replace the first [latex] with \begin{align} and the second [latex] with \end{align} and I would like it to happen over alot of cells in the excel sheet.
Is there any formula that could automaticlly do it for me? :)
again, thank you for your help guys!!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
If the first [latex] is always followed by an "{" and the second ones are not like your sample ..

1585301814595.png


then

1585301695655.png
 
Upvote 0
If the first [latex] is always followed by an "{" and the second ones are not like your sample ..

View attachment 9914

then

View attachment 9912
well actually the { that follows the first latex belongs to the fraction that is part of a math question for the students which means that replacing it will break the code for the question itself . is there another way to "target" the first [latex]?

again. thanks haha! your explanation is quite detailed and its amazing.
 
Upvote 0
which means that replacing it will break the code for the question itself
If you look carefully, you will see that I included that "{" again in the 'Replace with:' box so it isn't actually removed at all. :)

1585303732496.png


Here is my test after I did the two suggested replacements. Isn't that what you wanted?

1585303862225.png
 
Upvote 0

Forum statistics

Threads
1,215,035
Messages
6,122,785
Members
449,095
Latest member
m_smith_solihull

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