Sunday, May 19, 2013   
  Search   
 

Office 2010 - Launch Event

Register  Login  
Forums  
     Minimize  

MeraWindows Forums - Get your Computer Problems Fixed

This is a site run by the community - for the community. At the site, we share and contribute our computer learnings with each other. We discuss about Windows, Office, Mobile, Gaming and other computer related topics. At our forums you can post your queries and our very helpful community members will respond quickly to your queries. We organize lots of competitions from time to time and award prizes to the winners.
You will need to register at the site before posting in forums. It's absolutely free. After registering, you can get all the benefits available to our registered members, you can access our Downloads section, you can participate in contests, etc. You can post in forums in English as well as in Hindi, in fact we encourage you to use Hindi in your posts. If you have any problem with registration or login, please contact us.

     
  
HomeHomeMicrosoft Offic...Microsoft Offic...Microsoft ExcelMicrosoft ExcelDate FormatDate Format
Previous
 
Next
New Post
11/17/2011 5:05 PM
 
Hi,
In an Excel user will able to input date in A:A column only which should be lass than today with follwoing recognisable format for further excel date calculation
DD.MM.YYYY
Regards
Manik

Best Regards Manik Nag
 
New Post
11/17/2011 6:58 PM
 
Hi,

A dot is not a recognised date seperator.  Therefore date entered in DD.MM.YYYY will not allow you to perform calculations.  If you want to perform calculations, you will have to use a valid date seperator such as / or -

You may go to Data > Validation > Allow > Date > Less than.  In the End date box, enter =TODAY()

Hope this helps.

For Microsoft Excel trainings in India, please visit http://www.ashishmathur.com/corporate-interventions/

Regards,

Ashish Mathur - View Ashish Mathur's profile on LinkedIn
Microsoft Excel MVP
Website
Blog
 
New Post
11/17/2011 7:48 PM
 
Hi,

Please let me know how can I apply the following formula under Data>Validation

=IF(A1>TODAY(),TEXT(TODAY(),"dd.mm.yyyy"),TEXT(A1,"dd.mm.yyyy"))

If this can be done through data validation then my purpose get resolved (i.e. I can input any date in a cell with DD.MM.YYYY format)

Best Regards Manik Nag
 
New Post
11/18/2011 9:52 AM
 
Hi,

Try this

Data > Validation > Settings > Allow > Between.  In the Start Date, enter 1/1/1900 and in the End date, enter =today()

You may then format the date as dd.mm.yyyy i.e. Ctrl+1 > Number > Custom > Type.

Hope this helps.

For Microsoft Excel trainings in India, please visit http://www.ashishmathur.com/corporate-interventions/

Regards,

Ashish Mathur - View Ashish Mathur's profile on LinkedIn
Microsoft Excel MVP
Website
Blog
 
New Post
11/18/2011 12:12 PM
 
Sir,

Thanks , this is happening I can input any date in a cell with DD.MM.YYYY format but after that I need it to upload this database to another application DD.MM.YYYY format only where as the format showing is DD.MM.YYYY in a cell but it's actually it's DD/MM/YYYY format

can it be done throgh in VBA

Regards

Best Regards Manik Nag
 
New Post
11/18/2011 12:31 PM
 
Hi,

Try to find for / and replace with .

If this solution does not suit you, a macro can be created.  First try the simpler find and replace solution.

For Microsoft Excel trainings in India, please visit http://www.ashishmathur.com/corporate-interventions/

Regards,

Ashish Mathur - View Ashish Mathur's profile on LinkedIn
Microsoft Excel MVP
Website
Blog
 
New Post
11/18/2011 1:18 PM
 
hi,

Thanks for your reply, it.s happening but my whole objective is an autometed process as I earlier mentioned I will only input the date and it will input as well as show dd.mm.yyyy format only (where replace data or formatting cells etc - manual activity does not required)
Regards

Best Regards Manik Nag
 
New Post
11/18/2011 1:55 PM
 
Hi,

So you want the Find and Replace step to be automated.  What is the range of cells in which you will enter dates?

For Microsoft Excel trainings in India, please visit http://www.ashishmathur.com/corporate-interventions/

Regards,

Ashish Mathur - View Ashish Mathur's profile on LinkedIn
Microsoft Excel MVP
Website
Blog
 
New Post
11/18/2011 4:28 PM
 
Hi , Ashish

I simply want to share a excel among 10 different users who will be resticted to entre date in dd.mm.yyyy format only in A:A column (user will not able to input anydata/change any format replace any valus etc except enter date valus in dd.mm.yyyy format only) after that I have to upload this data in SAP (where the date format are dd.mm.yyyy at the time of upload)

Regards
Manik

Best Regards Manik Nag
 
New Post
11/18/2011 7:57 PM
 
Hi,

Ok, then try this validation rule under Data > Validation > Allow > Custom in cell A1

=AND(1*SUBSTITUTE(A1,".","/")>DATE(1900,1,1),1*SUBSTITUTE(A1,".","/")<=TODAY(),LEN(A1)=10,SUMPRODUCT(1*(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=".")))

Hope this helps.  Do let me know how this works.

For Microsoft Excel trainings in India, please visit http://www.ashishmathur.com/corporate-interventions/

Regards,

Ashish Mathur - View Ashish Mathur's profile on LinkedIn
Microsoft Excel MVP
Website
Blog
 
New Post
11/21/2011 4:23 PM
 
Dear Sir,
You are Mastermind Iyes, t's working, thank you so much, but I've checked user are not restricted by dot(.); slash(/) and Dash(-) are not restricted, can it be done? otherwise it's OK
Regards
Manik

Best Regards Manik Nag
 
New Post
11/21/2011 6:05 PM
 
Hi,

You are welcome.  Thank you for your kind words.  Glad my solution worked.  If you wish to allow the user to enter any one of /, - or ., then try this Custom validation

=OR(AND(A1>=DATE(1900,1,1),A1DATE(1900,1,1),1*SUBSTITUTE(A1,".","/")<=TODAY(),LEN(A1)=10,SUMPRODUCT(1*(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)="."))))

Hope this helps.  Do let me know how this works.

A word of caution here, the above validation will allow a person to enter a simple number e.g. 12.  This is because a date is nothing but a number.  Number 12 is 12 January 1900.

For Microsoft Excel trainings in India, please visit http://www.ashishmathur.com/corporate-interventions/

Regards,

Ashish Mathur - View Ashish Mathur's profile on LinkedIn
Microsoft Excel MVP
Website
Blog
 
New Post
11/21/2011 6:38 PM
 
Sir,

Thanks for the detailed discussion, Thanks again for your help, I wish not to allow users any one of /, - thats all.

Regards
Manik

Best Regards Manik Nag
 
New Post
11/21/2011 8:12 PM
 
Manik, i am very confused about waht you want.  Please state clearly.  My original solution allowed the user to enter . only.  Now what are you looking for - should the user be allowed to enter / and - also.

Please explain elaborately.

For Microsoft Excel trainings in India, please visit http://www.ashishmathur.com/corporate-interventions/

Regards,

Ashish Mathur - View Ashish Mathur's profile on LinkedIn
Microsoft Excel MVP
Website
Blog
 
New Post
11/22/2011 11:10 AM
 
Sir,

user should not be allowed to enter / and -

Regards
Manik

Best Regards Manik Nag
 
New Post
11/22/2011 1:42 PM
 
Hi,

Well that is what my original formula does.  The formula suggested earlier allows the user to enter dot seperator only.

Please check thoroughly and post back.

For Microsoft Excel trainings in India, please visit http://www.ashishmathur.com/corporate-interventions/

Regards,

Ashish Mathur - View Ashish Mathur's profile on LinkedIn
Microsoft Excel MVP
Website
Blog
 
Previous
 
Next
HomeHomeMicrosoft Offic...Microsoft Offic...Microsoft ExcelMicrosoft ExcelDate FormatDate Format


   User Log In Minimize  


Register
Forgot Password ?

     
  
   Follow Us Minimize  
     
  
     Minimize