• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to work on dates before 1900 in Excel without using VBA codes!!!!

gov_007

New Member
Hi,


My work is to make reports analysis..many more things...while I was working on a very little thing I encountered with the problem that for the dates before 1900 we need to use VBA codes..


Is there any options or alternatives to work on such things without using VBA codes..


Regards,

Abhinav
 
Hi, Abhinav!


I'd recommend you to read the three first green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).

Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.

Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, well, come back here, tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


And about your question...

As far as I know I'm afraid you cant do it directly, but with helper columns and depending on what do you want to do with the dates (difference of days, comparisons, ...) you can do a little tricky things if you split them in Year, Month and Day numeric values and then use those helper cells within non-date formulas. For example the number of months might be: =year1*12+month1-year2*12-month2


If needed, for splitting text dates into fields do as follows:

A1: dd/mm/yyyy date formatted as text

B1: =VALUE(RIGHT($A1,4)) for the year

C1: =VALUE(MID($A1,4,2)) for the month

D1: =VALUE(LEFT($A1,2)) for the day


Regards!
 
Hi, Abhinav!


Additionally you might find useful these articles:

http://www.exceluser.com/explore/earlydates.htm

http://j-walk.com/ss/excel/usertips/tip028.htm

http://support.microsoft.com/kb/245104 (with VBA, always funny the Redmond guys)

http://www.pcmag.com/article2/0,2817,2114548,00.asp

http://ask.metafilter.com/42511/Pre1900-dates-in-Excel (suggestion of use OfficeCalc, not Excel)


Good luck.


Regards!
 
I understand that you need to use old dates. but what are you doing with the old dates. Do u need to add them? are they part of a formula? What does the VBA code do?


I am trying to understand why you use VBA, so I can then make a non-VBA option.
 
Back
Top