Help With Date Calculation please

  • Thread starter Thread starter Box666
  • Start date Start date
B

Box666

I have a field that contains a date (say Dte_1) I would like to
introduce a calculated field that would give the date of the last day
of that month. So if

Dte_1= 11/11/2006 then new field would be 30/11/2006
Dte_1= 29/11/2006 then new field would be 30/11/2006
Dte_1= 1/02/2006 then new field would be 28/02/2006

Can anybody help with a formula please.
 
Assuming your other date is stored in TheOtherDate, you can use:

Dte_1 = DateSerial(Year(TheOtherDate), Month(TheOtherDate) + 1, 0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

anylizing events 3
Too negative XIRR? 3
put 0 in short date 5
isbn 3
I need to help with Excel (beginner) -- year row and month column 2
Excel DateDif - why does 2007 seem different? 3
Pick last date 3
Comparing dates 1

Back
Top