Change 70° F to 70 in Excel for Office 365 - excel-formula

I have "70° F" formatted as text in a cell. I want to strip the "° F" and just have "70" formatted as number in an adjacent cell

Use SUBSTITUTE:
=--SUBSTITUTE(A1,"° F","")

Related

Excel text to rows using formula

I have a concat formula returning me a comma separated list of names in a cell
=concat(A2:A10 & " ,") returning [john, jack, jill] in the cell
Is there a way to add to this formula to expand to
john
jack
jill
in a column like that above?
You can change the separator to be a line break =CONCAT(A2:A10 & CHAR(10)) or =TEXTJOIN(CHAR(10),TRUE,P3:P5)
The target cell needs to be set to Wrap Text for the line breaks to be displayed correctly.
I used Power Editor to convert the cell into rows

How to convert string "yyyy mmm ABC" to "yyyymm" date format using Excel formula?

Suppose, in Excel, I have cell value equal to
"2020 Aug ABC"
I want to convert this to 202008 date format using an excel formula because I would want to use the output value, that is, 202008 to perform some operation.
If your data is in A1:
=LEFT(A1,4) & TEXT((DATEVALUE(MID(A1,6,3) & " 1")),"mm")
Import "2020 Aug ABC" in cell A1
Select A1 - Go to Data tab - Data Tools Area - Press Text to Columns
Select Delimited - Press Next - Select Space - Press Next
Press Finish
In D1 import =A1&RIGHT("0" & MONTH(DATEVALUE(B1&"1")),2)
Output:
Or just using :
=TEXT(MID(A1,6,3)&LEFT(A1,4),"yyymm")
A1 = 2020 Aug ABC
B1
=LOOKUP(9^9,LEFT(A1,4)/1%+FIND(TEXT(ROW($1:$12)*28,"mmm"),A1)^0*ROW($1:$8))
Just another approach if your data is always same pattern.
=TEXT(DATEVALUE("01-"&MID(A1,6,3)&"-"&LEFT(A1,4)),"yyyymm")

Append % sign to this excel cell which uses a function

I have this cell in Excel 2013. The contents of the cell is;
=xlqChangePercent($D2,$AP$1)
This function returns 1.00 which is displayed in the cell. I want this cell to display 1.00%. I tried =xlqChangePercent($D2,$AP$1)% but the cell becomes 0.01. How do I get the cell to display 1.00%?
Either append /100 to your formula and format % (retains content as a number) or format the cell with a custom format of:
#.00"%"
which results in a text string.
Format the cell to percentage - either use the menu or right-click on the cell and choose format.

excel - strip fields containing apostrophe

I have two cells in my excel sheet, where I compare them against each other.
Now, it's a long sheet, and I have formatted all the date cells to "Short Date". However, some dates are entered like below:
'02-02-2015
And others are entered without the ':
02-02-2015
Now, the problem is when I compare those two dates above - it doesn't give me the correct result, because of the " ' "
How can I "strip" all the date fields to not use the apostrophe in front?
Thanks.
You can try converting both to one type when comparing them
, e.g. TEXT
Example
=IF(TEXT(A1;)=TEXT(B1;);1;0)
Use Replace
Example:
Dim D As Date: D = Replace("'20-01-2015", "'", "")
With data in column A, in B1 enter:
=IF(LEFT(A1,1)="'",MID(A1,2,9999),A1)
and copy down. For example:

How can I concat cellvalues with new line in MS Excel?

In excel I can introduce a new line inside a cell with a [alt enter]
Boo[alt enter]Far
results in:
Boo
Far
Now A1 contains Boo, A2 contains Far. How can I display these values in A3 separated with a new line?
A3=A1[alt enter]&B1
results in BooFar
A3=A1&[alt enter]B1
results in BooFar
How can I get
Boo
Far
By using cell references?
In A3 enter:
=A1 & CHAR(10) & A2
and format A3 for wrap text
If it helps anyone using Office on Mac, you should use CHAR(13) for line breaks.
For the above example, that would be
=CONCATENATE(A1, CHAR(13), A2)
And of course, format for wrap text.
The 10 and 13 represent Line Feed & Carriage Return characters.

Resources