fiscal year

A

Alex

I used the following to get the data for the previous
fiscal year (Aug 1 - Jul 31):

Between DateSerial(Year(Date())-2,8,1) And DateSerial(Year
(Date())-1,7,31)

It showed the dates from Aug 1, 2002 to Jul 31, 2003 what
was correct.

Now, it should be Aug 1, 2003 to Jul 31, 2004. But, it
still shows 2002 - 2003.

How could I change it?

Thanks
 
G

Gerald Stanley

Try
Between DateSerial(Year(Date())-1,8,1) And DateSerial(Year
(Date()),7,31)

Hope This Helps
Gerald Stanley MCSD
 
A

Alex

Thanks a lot, Gerald. It's working.
But, in this case I've changed it manually. I can do it
because the new fiscal year is already started.
Is there any way (formula) to get data for the previous
fiscal year avoiding the manual changes with the new
fiscal year starting?

Regards,

Alex
 
G

Gerald Stanley

Try something along the lines of

Between IIf( Month(Date()) < 8 ,
DateSerial(Year(Date())-2,8,1),
DateSerial(Year(Date())-1,8,1)) And IIf( Month(Date()) < 8
, DateSerial(Year(Date())-1,7,31),
DateSerial(Year(Date()),7,31))

Hope This Helps
Gerald Stanley MCSD
 

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


Top