Convert a 12 month date to a single cell

Slavio

Board Regular
Joined
Mar 28, 2021
Messages
59
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hello,
I have in cell A2 Date in format 18-Nov-2020 UTC
I Need format 18.11.2020 in cell B2
I created this formula, but it probably won't be the right way:
=(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A3,"Nov","11"),"-",".")," UTC",""))

Dates change, so Jan = 1, Feb = 2, Mar = 3, Apr = 4, May = 5, Jun = 6, Jul = 7, Aug = 8, Sep = 9, Oct = 10, Nov = 11, Dec = 12
Please help my people :)
 

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.
Try this formula instead:
Excel Formula:
=TEXT(DATEVALUE(LEFT(A2,FIND(" ",A2)-1)),"dd.mm.yyyy")

Edit: Since it looks like your regional settings use ";" instead of "," to separate formula arguments, I think you need it to look like this:
Excel Formula:
=TEXT(DATEVALUE(LEFT(A2;FIND(" ";A2)-1));"dd.mm.yyyy")
 
Upvote 0
Solution
Try this formula instead:
Excel Formula:
=TEXT(DATEVALUE(LEFT(A2,FIND(" ",A2)-1)),"dd.mm.yyyy")

Edit: Since it looks like your regional settings use ";" instead of "," to separate formula arguments, I think you need it to look like this:
Excel Formula:
=TEXT(DATEVALUE(LEFT(A2;FIND(" ";A2)-1));"dd.mm.yyyy")
Joe4 Thank You, Those semicolons and commas don't bother me (I can edit that) but
Unfortunately, this formula shows me a VALUE error
 
Upvote 0
Unfortunately, this formula shows me a VALUE error
I was afraid that might happen.
Since you have different regional settings as me, I am guessing that you probably have different default date settings from me.
So, while the formula works for me in my settings (I tested it out before posting it), it doesn't work for someone using your particular date settings.

I will need to play around to see if I can come up with a different solution that might work for you.

Can you confirm that at least this part works for you?
Excel Formula:
=LEFT(A2,FIND(" ",A2)-1)

What does that return for you?

Also, can you confirm how the data is shown if the day is only a one digit value, like today.
Does it show like "3" or "03"?
 
Upvote 0
Can you also confirm what this returns for you?
Excel Formula:
=DATEVALUE("18-Nov-2020")
 
Upvote 0
It may be that xl is not recognising Nov as a month, depending on your settings. In which case you could use something like
+Fluff 1.xlsm
ABCD
1Jan
218-Nov-2020 UTC18/11/2020Feb
3Mar
4Apr
5May
6Jun
7Jul
8Aug
9Sep
10Oct
11Nov
12Dec
Master
Cell Formulas
RangeFormula
B2B2=LEFT(REPLACE(A2,4,3,MATCH(MID(A2,4,3),D1:D12,0)),11)+0
 
Upvote 0
Joe4 Thank You, Those semicolons and commas don't bother me (I can edit that) but
Unfortunately, this formula shows me a VALUE error
It works great. I removed the gap, so it didn't work.

I'm still working on how to do it for another language, because it looks in EN but the difference is in these months
Oct = Okt
May = Maj

Since I have another language set for Excel (Not in EN)
Will you help again please?
Thanks!
 
Upvote 0
Bál som sa, že sa to môže stať.
Pretože máte iné regionálne nastavenia ako ja, hádam, že máte pravdepodobne iné predvolené nastavenia dátumu odo mňa.
Aj keď mi teda vzorec funguje v mojich nastaveniach (pred zverejnením som ho otestoval), nefunguje to pre niekoho, kto používa vaše konkrétne nastavenie dátumu.

Budem sa musieť pohrať, či nájdem iné riešenie, ktoré by pre vás mohlo fungovať.

Môžete potvrdiť, že aspoň táto časť funguje pre vás?
[CODE = xls] = DOĽAVA (A2; FIND (""; A2) -1) [/ KÓD]

Čo sa vám to vráti?

Môžete tiež potvrdiť, ako sa údaje zobrazujú, ak je deň iba jednociferná hodnota, ako napríklad dnes.
Zobrazuje sa to ako „3“ alebo „03“?
18-Nov-2020 UTC18.11.2020
02-Nov-2020 UTC02.11.2020
20-Dec-2020 UTC20.12.2020
03-Nov-2020 UTC03.11.2020
25-Oct-2020 UTC#VALUE
17-Dec-2020 UTC17.12.2020
09-Dec-2020 UTC09.12.2020
 
Upvote 0
Fluff came up with a suggestion for you.
I am afraid I cannot help you with the other language stuff.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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