Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > PC based Database Applications > Microsoft Excel > Inserting financial years & dates

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-08, 07:56
Pling Pling is offline
Registered User
 
Join Date: Sep 2008
Location: London
Posts: 1
Question Inserting financial years & dates

Here’s the problem…
My data set is a list of Employee IDs and salaries.
Each employee ID has a start and end date with a salary amount.
I need to assign a financial year to every row in my data set and also the appropriate dates (see example below).
There needs to be a row for every year.
Spanned years need to start on 01/01/yyyy and end 31/12/yyyy.
Financial year needs to be the year of the end date.

So this:
Start End Amount Financial year
01/01/2006 31/12/2008 1000

Needs to go to this:
01/01/2006 31/12/2006 1000 2006
01/01/2007 31/12/2007 1000 2007
01/01/2008 31/12/2008 1000 2008

The additional rows need inserting with appropriate dates. Additionally the span could go to 2 or 3 years, i.e. the salary could be the same for 2 or 3 years (like mine!) so would need to insert a row and appropriate dates for those years.

Any help would be greatly appreciated.
Cheers
Reply With Quote
  #2 (permalink)  
Old 09-16-08, 11:57
stuschmied stuschmied is offline
Registered User
 
Join Date: May 2008
Location: Raleigh, NC
Posts: 138
Try this..

Hi,

I've attached a small spreadsheet to demonstrate how you can do this. I was really bored at work this morning and it was kind of fun coding it. I put the creation of the new records on the on-click event of a button, but you can move that to anywhere you want. The date format is in MM/DD/YYYY so you'll have to change that for it to work right for your needs.

Good luck, let me know if this helps.

Stu
Attached Files
File Type: zip ExcelExample.ZIP (12.6 KB, 33 views)
__________________
--If its free, take it for what its worth!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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