PC Review


Reply
Thread Tools Rate Thread

Calculating Fiscal Period based on Date

 
 
Jake
Guest
Posts: n/a
 
      25th Jan 2007
Hello All,
I have an project i'm working on to determine fiscal periods based on
date of invoice. I have one workbook ("FiscalPeriods.xls") that has the
date ranges for each fiscal period for the past three years. ie;

Period PeriodStartDate PeriodEndDate
1 1/1/2007 1/27/2007
2 1/28/2007 2/24/2007
3 2/25/2007 3/31/2007
4 4/1/2007 4/28/2007


The other workbook has about 30,000 records of invoices over the past 3
years that have a specific "InvoiceDate". What I want to do is take the
first record, analyze the date, and return a new column called "Period"
and the subsequent period number.

I just need any ideas on which direction I should go in. Any
suggestions are much appreciated.

Thanks,
JB

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFydGluIEZpc2hsb2Nr?=
Guest
Posts: n/a
 
      25th Jan 2007
In the invoice workbook, insert a new column
and assuming that the invoice date is in column 1 enter the following
formula adjusting also for the list of dates:

=SUMPRODUCT(([FiscalPeriods.xls]Sheet1!$B$2:$B$5<=A1)*(A1<=[FiscalPeriods.xls]Sheet1!$C$2:$C$5),[FiscalPeriods.xls]Sheet1!$A$2:$A$5)

Then copy it down, calculate and then copy and paste special values the
column.

Note in FiscalPeriods.xls sheet1 column a is the period number, column b is
the start date and column c is the end date.

You also can check for bad dates for any dates with 0.
--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Jake" wrote:

> Hello All,
> I have an project i'm working on to determine fiscal periods based on
> date of invoice. I have one workbook ("FiscalPeriods.xls") that has the
> date ranges for each fiscal period for the past three years. ie;
>
> Period PeriodStartDate PeriodEndDate
> 1 1/1/2007 1/27/2007
> 2 1/28/2007 2/24/2007
> 3 2/25/2007 3/31/2007
> 4 4/1/2007 4/28/2007
>
>
> The other workbook has about 30,000 records of invoices over the past 3
> years that have a specific "InvoiceDate". What I want to do is take the
> first record, analyze the date, and return a new column called "Period"
> and the subsequent period number.
>
> I just need any ideas on which direction I should go in. Any
> suggestions are much appreciated.
>
> Thanks,
> JB
>
>

 
Reply With Quote
 
Jake
Guest
Posts: n/a
 
      25th Jan 2007
Is this something that can be done in VBA? The reason I ask, every few
days I have to import a file with updated records for the past few
days. so each time I import it the existing file is overwritten. I have
a VBA Macro that currently makes modifications to this invoice file and
would like to have it call a new macro to perform the period function.
Is that possible?

Thanks,
Jake
+

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
To automatically give fiscal period/fiscal year Turnipboy Microsoft Excel Discussion 7 19th Jan 2006 09:14 PM
Calculating recurring date in following month, calculating # days in that period Walterius Microsoft Excel Worksheet Functions 6 4th Jun 2005 11:21 PM
Figuring fiscal year based on formatted date =?Utf-8?B?Y2hlcm1hbg==?= Microsoft Access 2 1st Jun 2005 01:21 AM
Fiscal Date Period =?Utf-8?B?TWljaGFlbCBO?= Microsoft Access Queries 1 8th Nov 2004 09:39 PM
Function: Two Month Date Spans From Fiscal Period - an example DataFreakFromUtah Microsoft Excel Programming 1 13th May 2004 03:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:50 AM.