Solved

Date Problem

Posted on 2016-08-19
5
55 Views
Last Modified: 2016-08-22
Hi Experts,

Please Help --- i had past data from browser to excel sheet where date is acting weirdly.....if i use Excel function =TEXT(B2,"DD-MMM-YY") some show proper results and some shows weird...let me what is the problem.

See Attached
Date.xlsx
0
Comment
Question by:itjockey
  • 3
5 Comments
 
LVL 15

Assisted Solution

by:greyknight17
greyknight17 earned 50 total points
ID: 41763068
It looks like your dates in Column B are formatted in the Date/Month/Year format. Try converting the entire column to be in the English (United States) format to see if it helps. Just highlight all the cells in Column B. Right click and go to Format Cells. On the bottom right where it says Locale (location), select English (United States). Then see if the formula works for those dates.
0
 
LVL 8

Author Comment

by:itjockey
ID: 41763112
Nope Not Working AS Desired ....
0
 
LVL 8

Author Comment

by:itjockey
ID: 41763129
i had write something weird formula
=IFERROR(TEXT(DATE(RIGHT(B1,4),MID(B1,FIND("/",B1)+1,(FIND("/",B1,FIND("/",B1)+1)-FIND("/",B1))-1),LEFT(B1,FIND("/",B1)-1)),"dd-mmm-yy"),TEXT(B1,"DD-MMM-YY"))

Open in new window

0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 450 total points
ID: 41765075
Some of the entries in column B are text, eventhough they look like dates. They are preceded by an apostrophe.

I guess your system is set to date format mm/dd/yyyy (US rather than Europe). The dates where the day and month figures can be converted, ie month is 12 or less and day is 31 or less for the particular month it is readily converting them.

I suspect when opening the file on my machine (UK format) I am getting the opposite results to you. For example, the first entry 04/01/2016 is converting for me to 04-Jan-2016  but the second entry 22/04/2016 is staying as 22/04/2016 unless I press F2 and enter to re-evaluate.

If you know that all the dates are in a particular format (as mentioned above it looks like they are in European format of dd/mm/yyyy) then you cna use the Text to Columns wizard to convert rather than a formula.

Highlight the data in column B and then start the TTC wizard. Click through to Step 3 and then choose the Date radio button and then in the dropdown next to it choose DMY. In the destination box change the entry to $C$2 and then click OK.

Thanks
Rob H
0
 
LVL 8

Author Closing Comment

by:itjockey
ID: 41765304
Thanks
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question