Formating a date in excel when combining text from multiple cells - excel

I have an excel sheet with some text in numerous cells and need to combine them into one cell. Easy, except one of the cells is a date and when combining the text you get the date in base number format and not in date format.
Example:
A1 = "One"
A2 = "Two"
A3 = "05.12.2012"
A4 = =A1&" "&A2&" "&A3 = "One Two 41248"
Anyone know what I need to do before A3 in order for the formula to return 05.12.2012 instead of 41248. I have tried "DATE" and "DATEVALUE" etc.
If it is relevent, the date is derived from a formula which looks for a value in an array. I have left out this forumla for ease of reading.

A4 = =A1&" "&A2&" "&TEXT(A3,"DD.MM.YYYY")

Related

Remove duplicate character in a cell

I have struggle with the following case:
In cell A1 = (a)(f)(a)(b)(a), cell A2 = (d)(a)(c)(d)(g)(d)(a)(d)
How can I get the result as follow:
Cell A1= (a)(b)(f)
Cell A2 = (a)(c)(d)(g)
I use substitute only substitute one (a) with “”.
Is there is an excel formula and vba to get the result.
Thank,
Joe
If you have TEXTSPLIT:
=CONCAT("("&SORT(UNIQUE(TEXTSPLIT(A1,,"(",1))))

Excel formula or rules or vba to compare 2 cells and to highlight only the differences

Is there any Excel formula or rules or vba to compare 2 cells and to highlight only the differences in another cell or in same cell.
I've two columns column A and column B with each row containing different text data in my excel,
Example
Cell A2 contains the text "My name is Bingold Axel"
And cell B2 contains "My name is Axel"
When I type in exact formula in C2 it just returns true or false...
Whereas I want the specific word "Bingold" (as this is the only difference between 2 cells) to be printed on c2 or in the cell A2 the word "Bingold" alone should turn to red font
Any idea how it can be done with excel or do we need pandas?
try:
=FILTER(SPLIT(A2, " "), NOT(COUNTIF(SPLIT(B2, " "), SPLIT(A2, " "))))

Can't subtract text of one cell from another

Is it possible to subtract text of a cell from another text of different cell? I meant to subtract text in B1 from text in A1 using excel formula.
Cell A1 contains:
FRIENDSWOOD CITY N 77546-4005
Cell B1 contains:
77546-4005
I expect the result in C1 which can be obtained subtracting A1-B1 using formula:
FRIENDSWOOD CITY N
I tried like the below one but it gives me value error:
=A1-(RIGHT(A1,LEN(A1)-FIND(" ",A1)))
Try using this formula:
=REPLACE(A1,FIND(B1,A1),LEN(B1),"")
Here's my result:
You could also try this simple formula,
=SUBSTITUTE(A1,B1,"")

Excel formula to separate " + " of two numbers in a cell

If I in cell A1 have the formula:
=100+1250
(which equals 1350)
Is there a good way to get value 100 in A2 and 1250 in A3 with a formula? Something like; "Take value before character + in cell A2 and take value after character + in cell A3 .
In Excel 2013 and later you can use the FORMULATEXT function and parse it any number of ways.
In Excel 2010 and earlier, you have to use VBA. There's not a front-line function that can return the text of a formula in a cell.
Something like
Dim formula As String
formula = Range("A1").Formula
You might use Find/Replace (what: =, with: nothing) then:
in A2: =LEFT(A1,FIND("+",A1)-1)
in A3: =MID(A1,FIND("+",A1)+1,LEN(A1))
Select/Copy/Paste/Special the results over the top and delete Row1 (or just A1).

Excel: How to use conditional format in other cell?

How to use conditional format in cell A1 if B1 = "foo".
Example, B1 = IF("FOO";;), A1 is yellow color.
Is Excel 2007.
Use the following coniditona format formula for cell A1
=($B$1="Foo")
Note That if you want to apply this to the entire column A then make the following two adjustments.
1 - change the formula to remove the $ from the row in the formula so that it reads =($B1="Foo")
2 - ensure that the formatting is applied to the entire column

Resources