Cell showing date.xlsx wanting to pull the date without xlsx to another cell in date format

Jaffabfc

Board Regular
Joined
Jul 5, 2013
Messages
230
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a lot of cells which has dates.xlsx in the columns for example 030124.xlsx in cell N2
i am wanting in cell O2 to say 03/01/24.

I have the formula in cell O2 saying =left(n2,6) which brings the date but then i cant format it to the date.
I have tried also in P2 putting =DATE(RIGHT(O2,2),MID(O2,3,2),LEFT(O2,2))
But sitll not working also tried =DATE(LEFT(O2,2),MID(O2,3,2),RIGHT(O2,2)) but that doesnt work how i want it either.

Any ideas?

thanks
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Here is one option, I am sure more will follow (probably shorter):
Book1
NOP
1Result 1Result 2
2030124.xlsx03/01/202403/01/2024
3040124.xlsx04/01/202404/01/2024
4050124.xlsx05/01/202405/01/2024
Sheet1
Cell Formulas
RangeFormula
P2:P4P2=BYROW(N2:N4,LAMBDA(x,LET(s,MID(x,SEQUENCE(,LEN(x)/2,,2),2),--TEXTJOIN("/",,TAKE(s,,3)))))
O2:O4O2=LET(s,MID(N2,SEQUENCE(,LEN(N2)/2,,2),2),--TEXTJOIN("/",,TAKE(s,,3)))
Dynamic array formulas.
 
Upvote 0
brilliant thanks, not heard of either of those formulas so will look at learning those ones
 
Upvote 0
Assuming that date format matches your regional settings, something like:

Excel Formula:
=TEXT(LEFT(N2,6)+0,"00\/00\/00")+0

should work (format the cell as date).
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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