format as date

  1. S

    Excel 2021 - how to set format for date&time as 'dd.MM.yyyy HH:mm'?

    Hi, I've got an Excel workbook with column containing text which represents date&time as the specified format, i.e. 'dd.MM.yyyy HH:mm'. But this column is not recognized as a date&time, so I have to specify its format explicitly to be able to do sorting lines per this date correspondingly. When...
  2. E

    Format Monthly calendar

    Trying to put the date (just number) into the respective cells of a monthly calendar based on what exists in cell a1, which in this case is 11/1/23. Appreciate any help Many thanks
  3. claybwagner28

    Formatting Text Data to Proper Date Format

    Hello, I downlaoded a source file which the dates are erronieuns typed in as text. For example, Cell B4 has the following cell entry “Jan 7 2022” with the extra space, no comma and listed as general in format. Ultimately I am trying to change “Jan 7 2022” to “1/7/22”. I tied to use TRIM but...
  4. N

    How to fix Date formatting issue

    Hi all, I need a bit of help with how to fix my date formats. I receive data weekly and I run VBA code that copies the data and paste values it into a master sheet. I also have an xlookup function referencing that date column, however, the date is coming is as half in one format and the other...
  5. dss28

    Date format in Excel VBA coding

    i have been finding it difficult to manage the date format in program developed by me and being used by many users in my department. in my program i have asked to enter the date as 14/06/2021. sometimes the entered date is seen as 14/06/2021 or 06/14/2021 or 14-06-2021 or 06-14-2021 Like for...
  6. U

    VBA Excel Format (Based on Date and Criteria)

    Hello Gurus, Trust you are doing well at this times. I just wanted to get your thoughts on how to code this. I have a workbook with two sheets: Sheet 1 Date Account Reference 12/30/2018 5000 0001 11/30/2018 4000 0001 10/30/2018 3000 0003 09/30/2018 4000 0002 08/30/2018 3000...
  7. U

    Format date in function as value

    Hi all! I'm new to this forum and I'm not quite an expert in VBA, but I'm trying. I use this function to get the filedate time from a file: Function GetFileDateTime(R As Range) Set R = R.Cells(1, 1) GetFileDateTime = format(filedatetime(R.Value), "dd-mm-yyyy hh:nn") End Function This works...
  8. H

    Number changing to date

    I have this age old problem in many excel files When I open excel file, numbers gets change to date. This does not happens everyday but happens sometimes on some day, in some sheets in some rows. But whenever it happens it spoils by half day. I tried lots of solution, like changing cells...
  9. H

    Date / time conversion to dd/mm/yy

    I have a column of dates and times downloaded from a CSV file formatted as text as: 2019-10-10T08:30:47+00:00 Please could you generate a formula that converts the first part into: 10/10/19? Many thanks HT
  10. H

    Formula pulls in date incorrectly - help please!

    Hey everyone! I used this formula to add spaces after my text as I am working on a file upload where each field must be a certain length (see formula below): ='Sheet2'!D5&REPT(" ",16-LEN('Sheet2'!D5)) I have the above formula pulling from a different sheet so I wondered if that was causing...
  11. bobkap

    Format cell

    I have a variable in cell A50 in my sheet called Codes. The name of the variable is Endperdate. I want it to output in the date format as shown below, but it always just gives the Excel number for the date. No doubt I have something wrong with my code. Any help would be greatly appreciated...
  12. R

    Split combined date and time cell to two separate cells and format accordingly vba?

    Hi I have a report which exports the date and time in one cell (column A). I would like to be able to split these via a macro into two cells and then change the date value so it is recognised as a date. Currently the date is delimited by dots and not recognised by Excel. I would like the date...
  13. A

    Copying a Template and rename worksheets from a range in main worksheet as date

    I am new to vba. Trying to write code to generate copies from a template worksheet and name the copies from a range in primary worksheet. The ws tabs should be in a date format. So far I was able to generate the copies from the template and it makes the amount of copies in the range, but instead...

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