Solved

Date Problem

Posted on 2016-08-19
5
48 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 32

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
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.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now