$$Excel-Macros$$ Re: Date Issue

2015-11-23 Thread Bill Q
Close but know. All dates in the "source" are actually in 2015. See my 
dilemma ?


 

On Sunday, 22 November 2015 22:40:48 UTC-5, Bill Q wrote:
>
>
>
> PSA.
>
> Can someone please create a macro for me that would eliminate this 
> frustrating problem that I have with date converstion. 
>
> DATE1 = Source. It always gets imported in as 2 different date formats.
>
> DATE2 is what I want returned in a MMDD format. I have manually change 
> it in this example.
>
>
>
> Thanks. 
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


$$Excel-Macros$$ Re: Date Issue

2015-11-23 Thread Mandeep Baluja
What please see your dates which i copied from your sheet how 2010 year 
will be 2015 ? ?

DATE1 15-10-2010 15-12-2010 10/14/15 10/16/15 10/18/15 10/22/15 10/24/15 
10/26/15 10/27/15 10/29/15 15-01-2011 15-04-2011 15-06-2011 15-07-2011 
15-09-2010 15-10-2010 10/14/15 10/15/15 10/17/15 10/20/15 10/22/15 10/24/15 
10/26/15 10/27/15 10/30/15 15-05-2011 15-07-2011 15-08-2010 15-10-2010 
15-12-2010 10/14/15 10/17/15 10/21/15 10/23/15 10/27/15 10/30/15 10/31/15 
15-03-2011 15-05-2011 15-07-2011 15-08-2010 15-10-2010 15-12-2010 10/15/15 
10/17/15 10/21/15 10/23/15 10/24/15 10/27/15 10/29/15 10/30/15 15-01-2011 
15-05-2011 15-07-2011 15-07-2010 15-10-2010 10/13/15 10/16/15 10/17/15 
10/20/15 10/23/15 10/25/15 10/26/15 10/28/15 10/30/15 10/31/15 15-03-2011 
15-05-2011 15-07-2011 15-08-2010 15-10-2010 10/13/15 10/16/15 10/17/15 
10/21/15 10/23/15 10/24/15 10/27/15 10/29/15 10/30/15 15-01-2011 15-06-2011 
15-07-2011 15-07-2010 15-09-2010 15-10-2010 10/14/15 10/15/15 10/17/15 
10/22/15 10/24/15 10/26/15 10/29/15 10/30/15 15-02-2011 15-04-2011 
15-06-2011 15-08-2010 15-10-2010 10/14/15 10/16/15 10/18/15 10/21/15 
10/24/15 10/27/15 10/29/15 10/30/15 15-01-2011 15-03-2011 15-05-2011 
15-06-2011 15-09-2010 15-10-2010 15-12-2010 10/14/15 10/16/15 10/17/15 
10/20/15 10/22/15 10/24/15 10/27/15 10/30/15 10/31/15 15-03-2011 15-05-2011 
15-06-2011 15-08-2010 15-10-2010 10/13/15 10/15/15 10/17/15 10/20/15 
10/22/15 10/24/15 10/27/15 10/29/15 10/31/15 15-02-2011 15-03-2011 
15-06-2011 15-09-2010 15-10-2010 10/13/15 10/16/15 10/17/15 10/21/15 
10/23/15 10/24/15 10/27/15 10/30/15 10/31/15 15-03-2011 15-06-2011 
15-08-2010 15-10-2010 10/13/15 10/15/15 10/17/15 10/18/15 10/21/15 10/23/15 
10/25/15 10/27/15 10/29/15 10/31/15 15-03-2011 15-06-2011 15-10-2010 
15-12-2010 10/13/15 10/15/15 10/17/15 10/20/15 10/22/15 10/24/15 10/27/15 
10/30/15 10/31/15 15-04-2011 15-05-2011 15-07-2011 15-07-2010 15-09-2010 
10/13/15 10/16/15 10/18/15 10/22/15 10/23/15 10/25/15 10/27/15 10/31/15 
15-02-2011 15-03-2011 15-05-2011 15-07-2011 15-08-2010 15-10-2010 10/15/15 
10/16/15 10/18/15 10/22/15 10/24/15 10/25/15 10/27/15 10/30/15 10/31/15 
15-05-2011 15-07-2011 15-07-2010 15-10-2010 15-11-2010 10/13/15 10/15/15 
10/17/15 10/20/15 10/23/15 10/24/15 10/27/15 10/29/15 10/30/15 15-01-2011 
15-03-2011 15-05-2011 15-07-2011 15-08-2010 15-10-2010 10/13/15 10/15/15 
10/17/15 10/20/15 10/22/15 10/24/15 10/28/15 10/31/15 15-01-2011 15-05-2011 
15-07-2011 15-09-2010 15-10-2010 10/13/15 10/16/15 10/18/15 10/20/15 
10/22/15 10/24/15 10/27/15 10/29/15 10/31/15 15-03-2011 15-06-2011 
15-09-2010 15-10-2010 15-12-2010 10/15/15 10/17/15 10/20/15 10/23/15 
10/24/15 10/26/15 10/29/15 10/31/15 15-01-2011 15-03-2011 15-05-2011 
15-07-2010 15-09-2010 15-10-2010 10/13/15 10/15/15 10/18/15 10/19/15 
10/22/15 10/24/15 10/25/15 10/30/15 15-03-2011 15-06-2011 15-07-2011 
15-08-2010 15-10-2010 15-11-2010 10/14/15 10/15/15 10/17/15 10/22/15 
10/24/15 10/28/15 10/30/15 10/31/15 15-03-2011 15-05-2011 15-07-2011 
15-08-2010 15-10-2010 15-12-2010 10/14/15 10/20/15 10/21/15 10/24/15 
10/27/15 10/29/15 10/30/15 15-02-2011 15-03-2011 15-05-2011 15-07-2011 
15-08-2010 15-10-2010 10/13/15 10/15/15 10/17/15 10/20/15 10/22/15 10/24/15 
10/28/15 10/29/15 10/31/15 15-04-2011 15-06-2011 15-07-2011 15-07-2010 
15-10-2010 10/13/15 10/16/15 10/17/15 10/19/15 10/22/15 10/24/15 10/28/15 
10/31/15 15-01-2011 15-03-2011 15-05-2011 15-07-2011 15-08-2010 15-10-2010 
10/13/15 10/15/15 10/16/15 10/18/15 10/20/15 10/24/15 10/27/15 10/29/15 
10/31/15 15-03-2011 15-04-2011 15-07-2011 15-08-2010 15-10-2010 15-12-2010 
10/13/15 10/15/15 10/17/15 10/20/15 10/23/15 10/24/15 10/27/15 10/29/15 
10/31/15 15-01-2011 15-03-2011 15-05-2011 15-07-2011 15-07-2010 15-09-2010 
15-10-2010 10/16/15 10/17/15 10/21/15 10/24/15 10/26/15 10/30/15 10/31/15 
15-02-2011 15-04-2011 15-06-2011 15-07-2011 15-07-2010 15-10-2010 15-12-2010 
10/13/15 10/16/15 10/18/15 10/22/15 10/24/15 10/27/15 10/29/15 10/30/15 
15-02-2011 15-04-2011 15-07-2011 15-10-2010 10/13/15 10/15/15 10/17/15 
10/20/15 10/22/15 10/23/15 10/28/15 10/30/15 10/31/15 15-03-2011 15-05-2011 
15-07-2011 15-08-2010 15-09-2010 15-12-2010 10/13/15 10/16/15 10/18/15 
10/23/15 10/25/15 10/27/15 10/29/15 10/31/15 15-01-2011 15-04-2011 
15-05-2011 15-07-2011 

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in 

Re: $$Excel-Macros$$ Re: Date Issue

2015-11-23 Thread Paul Schreiner
You said:DATE1 = Source. It always gets imported in as 2 different date formats.
I SUSPECT that your source data has a date in a specific format like:
mm/dd/yy
but your Windows Regional settings are set to a date format that is something 
else.Like:dd/mm/yy
So, when you read in values, if the value matches what Excel/Windows thinks is 
a date, Excel converts the text string to a proper Excel "date".
The problem is, MY windows setting is mm/dd/When I opened your file, Excel 
converts the data to MY preferred format.So, the first few records looks to ME 
like:
DATE1   DATE2
10/15/2010 20151010
12/15/2010 20151012
10/14/15 20151014
10/16/15 20151016
10/18/15 20151018
See? the first two dates are converted to mm/dd/
Basically, I think your source data isn't in the same format as your Windows 
default date format.
If the MONTH value is less than 12, then Excel thinks it's a valid date.If the 
month is MORE than 12, then it's not a valid date and is stored as text.
So, I think we need to go back to your data source.
What does this file look like?is it a text file?Can you open it as text, then 
use a formula or macro to convert it to a date in the proper format?
BTW: If excel recognizes a value as a date, it converts it to a number.(the 
number of days since 1/1/1900)Once converted, you can DISPLAY this number in 
any way you'd like.
November 23, 2015 is42331
11/23/2015
Monday, November 23, 2015
23-Nov
20151123
These are all the same date, simply changed the cell formatting.


 Paul-
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-
 
  From: Bill Q <ronsmith...@gmail.com>
 To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com> 
 Sent: Monday, November 23, 2015 7:29 AM
 Subject: $$Excel-Macros$$ Re: Date Issue
   
Close but know. All dates in the "source" are actually in 2015. See my 
dilemma ?

 



On Sunday, 22 November 2015 22:40:48 UTC-5, Bill Q wrote:


PSA.
Can someone please create a macro for me that would eliminate this frustrating 
problem that I have with date converstion. 
DATE1 = Source. It always gets imported in as 2 different date formats.
DATE2 is what I want returned in a MMDD format. I have manually change it 
in this example.


Thanks. 
-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


   

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Re: Date Issue

2015-11-23 Thread Paul Schreiner
Mandeep:
I think the problem is that his default date format is different from our 
own.(and HIS default date format is different than the source date format)
I suspect his original date records are sequential:10-Oct-2015
12-Oct-2015
14-Oct-2015
16-Oct-2015
18-Oct-2015
22-Oct-2015
24-Oct-2015
26-Oct-2015
27-Oct-2015
29-Oct-2015
01-Nov-2015
04-Nov-2015
06-Nov-2015
07-Nov-2015
But since his source data format does not match his system date format,October 
is being interpreted as 2010and the DAY is being interpreted as the month.That 
converts to a legitimate date when the day is less than 12,but for day #14, the 
source data doesn't a possible date format, so Excel doesn't convert it to a 
date.
For example:For the second row, what you and I see as 15-12-2010 (or 12/15/2010 
in my case)
is really October 12, 2015

from what I can tell (from the text strings in row 4-11)the source data is in 
mm/dd/yy format,but his system date is set to yy/mm/dd format

Paul-
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-
 
  From: Mandeep Baluja <rockerna...@gmail.com>
 To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com> 
 Sent: Monday, November 23, 2015 8:11 AM
 Subject: $$Excel-Macros$$ Re: Date Issue
   
What please see your dates which i copied from your sheet how 2010 year will be 
2015 ? ?

| DATE1 |
| 15-10-2010 |
| 15-12-2010 |
| 10/14/15 |
| 10/16/15 |
| 10/18/15 |
| 10/22/15 |
| 10/24/15 |
| 10/26/15 |
| 10/27/15 |
| 10/29/15 |
| 15-01-2011 |
| 15-04-2011 |
| 15-06-2011 |
| 15-07-2011 |
| 15-09-2010 |
| 15-10-2010 |
| 10/14/15 |
| 10/15/15 |
| 10/17/15 |
| 10/20/15 |
| 10/22/15 |
| 10/24/15 |
| 10/26/15 |
| 10/27/15 |
| 10/30/15 |
| 15-05-2011 |
| 15-07-2011 |
| 15-08-2010 |
| 15-10-2010 |
| 15-12-2010 |
| 10/14/15 |
| 10/17/15 |
| 10/21/15 |
| 10/23/15 |
| 10/27/15 |
| 10/30/15 |
| 10/31/15 |
| 15-03-2011 |
| 15-05-2011 |
| 15-07-2011 |
| 15-08-2010 |
| 15-10-2010 |
| 15-12-2010 |
| 10/15/15 |
| 10/17/15 |
| 10/21/15 |
| 10/23/15 |
| 10/24/15 |
| 10/27/15 |
| 10/29/15 |
| 10/30/15 |
| 15-01-2011 |
| 15-05-2011 |
| 15-07-2011 |
| 15-07-2010 |
| 15-10-2010 |
| 10/13/15 |
| 10/16/15 |
| 10/17/15 |
| 10/20/15 |
| 10/23/15 |
| 10/25/15 |
| 10/26/15 |
| 10/28/15 |
| 10/30/15 |
| 10/31/15 |
| 15-03-2011 |
| 15-05-2011 |
| 15-07-2011 |
| 15-08-2010 |
| 15-10-2010 |
| 10/13/15 |
| 10/16/15 |
| 10/17/15 |
| 10/21/15 |
| 10/23/15 |
| 10/24/15 |
| 10/27/15 |
| 10/29/15 |
| 10/30/15 |
| 15-01-2011 |
| 15-06-2011 |
| 15-07-2011 |
| 15-07-2010 |
| 15-09-2010 |
| 15-10-2010 |
| 10/14/15 |
| 10/15/15 |
| 10/17/15 |
| 10/22/15 |
| 10/24/15 |
| 10/26/15 |
| 10/29/15 |
| 10/30/15 |
| 15-02-2011 |
| 15-04-2011 |
| 15-06-2011 |
| 15-08-2010 |
| 15-10-2010 |
| 10/14/15 |
| 10/16/15 |
| 10/18/15 |
| 10/21/15 |
| 10/24/15 |
| 10/27/15 |
| 10/29/15 |
| 10/30/15 |
| 15-01-2011 |
| 15-03-2011 |
| 15-05-2011 |
| 15-06-2011 |
| 15-09-2010 |
| 15-10-2010 |
| 15-12-2010 |
| 10/14/15 |
| 10/16/15 |
| 10/17/15 |
| 10/20/15 |
| 10/22/15 |
| 10/24/15 |
| 10/27/15 |
| 10/30/15 |
| 10/31/15 |
| 15-03-2011 |
| 15-05-2011 |
| 15-06-2011 |
| 15-08-2010 |
| 15-10-2010 |
| 10/13/15 |
| 10/15/15 |
| 10/17/15 |
| 10/20/15 |
| 10/22/15 |
| 10/24/15 |
| 10/27/15 |
| 10/29/15 |
| 10/31/15 |
| 15-02-2011 |
| 15-03-2011 |
| 15-06-2011 |
| 15-09-2010 |
| 15-10-2010 |
| 10/13/15 |
| 10/16/15 |
| 10/17/15 |
| 10/21/15 |
| 10/23/15 |
| 10/24/15 |
| 10/27/15 |
| 10/30/15 |
| 10/31/15 |
| 15-03-2011 |
| 15-06-2011 |
| 15-08-2010 |
| 15-10-2010 |
| 10/13/15 |
| 10/15/15 |
| 10/17/15 |
| 10/18/15 |
| 10/21/15 |
| 10/23/15 |
| 10/25/15 |
| 10/27/15 |
| 10/29/15 |
| 10/31/15 |
| 15-03-2011 |
| 15-06-2011 |
| 15-10-2010 |
| 15-12-2010 |
| 10/13/15 |
| 10/15/15 |
| 10/17/15 |
| 10/20/15 |
| 10/22/15 |
| 10/24/15 |
| 10/27/15 |
| 10/30/15 |
| 10/31/15 |
| 15-04-2011 |
| 15-05-2011 |
| 15-07-2011 |
| 15-07-2010 |
| 15-09-2010 |
| 10/13/15 |
| 10/16/15 |
| 10/18/15 |
| 10/22/15 |
| 10/23/15 |
| 10/25/15 |
| 10/27/15 |
| 10/31/15 |
| 15-02-2011 |
| 15-03-2011 |
| 15-05-2011 |
| 15-07-2011 |
| 15-08-2010 |
| 15-10-2010 |
| 10/15/15 |
| 10/16/15 |
| 10/18/15 |
| 10/22/15 |
| 10/24/15 |
| 10/25/15 |
| 10/27/15 |
| 10/30/15 |
| 10/31/15 |
| 15-05-2011 |
| 15-07-2011 |
| 15-07-2010 |
| 15-10-2010 |
| 15-11-2010 |
| 10/13/15 |
| 10/15/15 |
| 10/17/15 |
| 10/20/15 |
| 10/23/15 |
| 10/24/15 |
| 10/27/15 |
| 10/29/15 |
| 10/30/15 |
| 15-01-2011 |
| 15-03-2011 |
| 15-05-2011 |
| 15-07-2011 |
| 15-08-2010 |
| 15-10-2010 |
| 10/13/15 |
| 10/15/15 |
| 10/17/15 |
| 10/20/15 |
| 10/22/15 |
| 10/24/15 |
| 10/28/15 |
| 10/31/15 |
| 15-01-2011 |
| 15-05-2011 |
| 15-07-2011 |
| 15-09-2010 |
| 15-10-2010 |
| 10/13/15 |
| 10/16/15 |
| 10/18/15 |
| 10/20/15 |
| 10/22/15 |
| 10/24/15 |
| 10/27/15 |
| 10/29/15 |
| 10/31/15 |
| 15-03-2011 |
| 15-06

Re: $$Excel-Macros$$ Re: Date Issue

2015-11-23 Thread Paul Schreiner
OK, here's a POSSIBLE solution:
Since the format of the source data does not match the current system date 
format,Excel converts any source value that COULD be a date to an Excel date, 
which is a number.
Any non-valid date is loaded as text.
So, we can either import the data as text and convert,or using what we have, 
check to see if it is a number, and change the values accordingly.
If it is NOT a number, convert the text values to a date, like:
=IF(ISNUMBER(A2),
    DATE("20"(A2),TEXT(YEAR(A2),"yy"),MONTH(A2)),
    DATE("20"(A2,2),LEFT(A2,2),MID(A2,4,2)))
changing the cell format to mmddwill result in values like:
20151012 Paul-
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-
 
  From: Bill Q <ronsmith...@gmail.com>
 To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com> 
 Sent: Monday, November 23, 2015 7:29 AM
 Subject: $$Excel-Macros$$ Re: Date Issue
   
Close but know. All dates in the "source" are actually in 2015. See my 
dilemma ?

 



On Sunday, 22 November 2015 22:40:48 UTC-5, Bill Q wrote:


PSA.
Can someone please create a macro for me that would eliminate this frustrating 
problem that I have with date converstion. 
DATE1 = Source. It always gets imported in as 2 different date formats.
DATE2 is what I want returned in a MMDD format. I have manually change it 
in this example.


Thanks. 
-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


   

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Re: Date Issue

2015-11-23 Thread Bill Q
I will try that when I get home tonight.

Thanks Paul.

On Monday, 23 November 2015 08:12:27 UTC-5, Paul Schreiner wrote:
>
> You said:
> DATE1 = Source. It always gets imported in as 2 different date formats.
>
> I SUSPECT that your source data has a date in a specific format like:
>
> mm/dd/yy
>
> but your Windows Regional settings are set to a date format that is 
> something else.
> Like:
> dd/mm/yy
>
> So, when you read in values, if the value matches what Excel/Windows 
> thinks is a date, Excel converts the text string to a proper Excel "date".
>
> The problem is, MY windows setting is mm/dd/
> When I opened your file, Excel converts the data to MY preferred format.
> So, the first few records looks to ME like:
>
> DATE1   DATE2
> 10/15/2010 20151010
> 12/15/2010 20151012
> 10/14/15 20151014
> 10/16/15 20151016
> 10/18/15 20151018
>
> See? the first two dates are converted to mm/dd/
>
> Basically, I think your source data isn't in the same format as your 
> Windows default date format.
>
> If the MONTH value is less than 12, then Excel thinks it's a valid date.
> If the month is MORE than 12, then it's not a valid date and is stored as 
> text.
>
> So, I think we need to go back to your data source.
>
> What does this file look like?
> is it a text file?
> Can you open it as text, then use a formula or macro to convert it to a 
> date in the proper format?
>
> BTW: If excel recognizes a value as a date, it converts it to a number.
> (the number of days since 1/1/1900)
> Once converted, you can DISPLAY this number in any way you'd like.
>
> November 23, 2015 is
> 42331
> 11/23/2015
> Monday, November 23, 2015
> 23-Nov
> 20151123
>
> These are all the same date, simply changed the cell formatting.
>
>
>  
> *Paul*
> -
>
>
>
>
>
>
>
> *“Do all the good you can,By all the means you can,In all the ways you 
> can,In all the places you can,At all the times you can,To all the people 
> you can,As long as ever you can.” - John Wesley*
> -----------------
>
> --
> *From:* Bill Q <ronsm...@gmail.com >
> *To:* MS EXCEL AND VBA MACROS <excel-...@googlegroups.com > 
> *Sent:* Monday, November 23, 2015 7:29 AM
> *Subject:* $$Excel-Macros$$ Re: Date Issue
>
> Close but know. All dates in the "source" are actually in 2015. See my 
> dilemma ?
>
>
>  
>
>
>
> On Sunday, 22 November 2015 22:40:48 UTC-5, Bill Q wrote:
>
>
>
> PSA.
>
> Can someone please create a macro for me that would eliminate this 
> frustrating problem that I have with date converstion. 
>
> DATE1 = Source. It always gets imported in as 2 different date formats.
>
> DATE2 is what I want returned in a MMDD format. I have manually change 
> it in this example.
>
>
>
> Thanks. 
>
> -- 
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
> https://www.facebook.com/discussexcel
>  
> FORUM RULES
>  
> 1) Use concise, accurate thread titles. Poor thread titles, like Please 
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security 
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>  
> NOTE : Don't ever post confidential data in a workbook. Forum owners and 
> members are not responsible for any loss.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to excel-macros...@googlegroups.com .
> To post to this group, send email to excel-...@googlegroups.com 
> .
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) D

$$Excel-Macros$$ Re: Date Issue

2015-11-23 Thread Bill Q
I played around with my system date format and finally got it right.

Thanks Paul & Mandeep 

On Sunday, 22 November 2015 22:40:48 UTC-5, Bill Q wrote:
>
>
>
> PSA.
>
> Can someone please create a macro for me that would eliminate this 
> frustrating problem that I have with date converstion. 
>
> DATE1 = Source. It always gets imported in as 2 different date formats.
>
> DATE2 is what I want returned in a MMDD format. I have manually change 
> it in this example.
>
>
>
> Thanks. 
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


$$Excel-Macros$$ Re: Date Issue

2015-11-22 Thread Mandeep Baluja
Try this and let me know !!

Sub Dates_Test()

Dim i As Long

For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
Cells(i, 3).Value = Cells(i, 1).Value
Cells(i, 3).Value = Format(Cells(i, 1).Value, "mmdd")
Cells(i, 3).NumberFormat = "General"
Next

End Sub

Regards, 
Mandeep baluja 



-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


$$Excel-Macros$$ Re: Date Issue

2009-09-09 Thread N.Shivkumar
It is just formating i.e. format cell i.e

Format/Cell/Number/Custom dd/mm/
N.SHIVKUMAR
Mobile : +919866533180
Office : +914027685310
Res.: +914040035774
Alternate Email: shiv1...@yahoo.com

--~--~-~--~~~---~--~~
--
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com

HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~--~~~~--~~--~--~---