Need help with formula!

BETHHOPKINS

New Member
Joined
Oct 11, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

I am trying to fix a spreadhseet as the date has come out like '12102020' rather than '12/10/2020' and when i format the cells it doesnt work.

I know there is a 'left' formula but i can't remember how to use it!

If someone could tell me what to put that would be great. Thank you in advance.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
1602463038918.png
Thank you for your response! Though this is what i get when i do that! I have tried all these options!
 
Upvote 0
It would be best to post your code / formula.

Better yet, post your workbook to a download site so it can be examined.
 
Upvote 0
I'm not using a code or formula? I simply formatted the cells as a date as per your link above and this is what happens.

I just need to know how the 'left' 'mid' and 'right' formula works so i can inset a'/' in betweeen the day, month and year if you could help me with that!

Thanks!
 
Upvote 0
If you are not using a formula ... and you are not using VBA macro code .... there is not need to use the LEFT, MID, RIGHT commands in a formula to achieve your goal.

Right clicking the cell (or the entire column is desired), then selecting FORMAT CELLS ... is all you need.

You don't need to the select the CUSTOM format setting for your goal ... simply select DATE and see which formatting shown is the desired format.
If that doesn't work, there is something else going on with your workbook.
 
Upvote 0
Right clicking the cell (or the entire column is desired), then selecting FORMAT CELLS ... is all you need.

You don't need to the select the CUSTOM format setting for your goal ... simply select DATE and see which formatting shown is the desired format.
If that doesn't work, there is something else going on with your workbook.

This is what i originally tried but all i get #######.
 
Upvote 0
Wait ... I think I understand differently now what you are wanting.

1602472908104.png


Select the cell or cells / cell range that you want the formatting to be applied.
Again, right click any of those selected cells and select FORMAT CELLS ... then CUSTOM.

In the field TYPE: ... enter the same thing you see in the pic above : 00\/00\/0000

I tried this here and if you enter 02062020 it should display as 02/06/2020 automatically.
 
Upvote 0
What I have learned from this formatting is ... if the month is entered as a single digit ... 1 to 9 ... the final display will error.

It is best to accept the keying habit of placing a zero "0" in front of all single digit numbered months.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,803
Members
449,048
Latest member
greyangel23

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