Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 1012

Prevent phantom dates when combining dates with potentially blank cells?

$
0
0

I'm trying to combine four cells with dates into one, with + as a delimiter. Some of the cells are empty. I tried the TEXTJOIN function, but Excel returns a date for the empty cells.

For example given this data, where cell 4 is empty:

1234
23.8.201608.06.201629.9.1999

My function is

=TEXTJOIN("+";TRUE;TEXT(N2;"dd.mm.yyyy");TEXT(U2;"dd.mm.yyyy");TEXT(AB2; "dd.mm.yyyy");TEXT(AI2;"dd.mm.yyyy"))

the formula gives me the following:

23.8.2016+08.06.2016+29.9.1999+00.01.1900

Is there a way around this - or another formula I can use?


Viewing all articles
Browse latest Browse all 1012

Latest Images

Trending Articles



Latest Images