Change date format on import

namloop

New Member
Joined
Mar 23, 2020
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Good morning

I am importing some data and I am having two different issues in col. B.
In rows 3 this data says Nov-9 (the 9th of November) when I try to change the format it will say November 2009.
Is there any manipulation that can be done to correct this format?

Second issue
In lines 12/13 is a combination of the date January 2, 2021 - I have tried to Concatenate the two but the data then is not seen as a date - is there a better way? - ultimately I need it to read 02-Jan-21.

Many thanks for your assistance in advance.
Stephen

1593036369132.png
 
Try using Excel's Formula Evaluate and identify the part of the formula that is not working.
You may have extraneous spaces in the text fields.
Ensure that you Do Not have merged cells.

Copy my suggestion on a new sheet and confirm that the formula works on your system.
Use the icon below the F(x) and paste the example to your new sheet.
 
Last edited:
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
The following suggestion looks the same as your example; the data is in merged cells.

T202006b.xlsm
BC
5Jan 2, 202102-Jan-21
6
3a
Cell Formulas
RangeFormula
C5C5=DATE(RIGHT(B5,4),MONTH(1&LEFT(B5,3)),MID(B5,5,1))
 
Upvote 0
Try using Excel's Formula Evaluate and identify the part of the formula that is not working.
You may have extraneous spaces in the text fields.
Ensure that you Do Not have merged cells.

Copy my suggestion on a new sheet and confirm that the formula works on your system.
Use the icon below the F(x) and paste the example to your new sheet.
 

Attachments

  • 1593400411463.png
    1593400411463.png
    20.3 KB · Views: 2
Upvote 0
Did you try the suggestions?
Your picture does not help. You can post an extract of your sheet with XL2BB. See XLsBB at the end of the icons shown just above this message.
 
Upvote 0
Hi Dave - I do not have merged cells
I used the EVALUATE command - I have not see this before - and copied the results from each of the steps on the attached.
 

Attachments

  • cell image 8.png
    cell image 8.png
    24.1 KB · Views: 2
  • cell image 7.png
    cell image 7.png
    28.1 KB · Views: 3
  • cell image 6.png
    cell image 6.png
    26.9 KB · Views: 2
  • cell image 5.png
    cell image 5.png
    25.2 KB · Views: 3
  • cell image 4.png
    cell image 4.png
    31.1 KB · Views: 2
  • cell image 3.png
    cell image 3.png
    35.6 KB · Views: 1
  • cell image 2.png
    cell image 2.png
    31.5 KB · Views: 2
  • cell image 1.png
    cell image 1.png
    28.9 KB · Views: 2
Upvote 0
I have never seen that message myself.

Try deleting the formula.
Ensure the cell is General format.
Type in the formula and hopefully it will work.

Did my suggestion work on a new sheet?
 
Upvote 0
No - same result - colB is general as is C until the string runs then it is DATE, with #VALUE! message
Am stepping through installing XLB2BB whilst at work answering phones - sorry for fragmented replies - appreciate the help though.
Stephen
 
Upvote 0
Try entering the formula in a unused part of your sheet; possibly P12.
You cannot enter the formula over a text area.
Did you try any of the suggestions on a fresh clean sheet or workbook????

I do not know what you mean with
" colB is general as is C until the string runs then it is DATE "
 
Upvote 0
Dave
Thanks for your patience.
I have re entered into a new sheet and ran that =TEXT string elsewhere - same result.

I do not know what you mean with
" colB is general as is C until the string runs then it is DATE "

I meant to say - the column I entered the Jan2, and 2021 into was GENERAL FORMAT as was the =TEXT string - when the text string is entered the format of that column changes to DATE

I note in this string =DATE(RIGHT(B5,4),MONTH(1&LEFT(B5,3)),MID(B5,5,1)) there is no refernce to the data in cell B6 which holds the calendar year?

Many thanks
Stephen
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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