Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 21
Default tough date macro....help needed....

hello there ...
i need some help from some of the expert excel vba guys out there ...
in column A ...from cell A1...i have 5 stock names....

A
B
C
D
E


in column B i have allocations in %....say 15%....for the 5
stocks...each,.....so now...total alloc....is 75%....the remainng is
kept as cash ...in cell A6...ie 25%.....
as total has to be 100%..
now in column C ...i have call back dates.....
31st oct 2005
15th aug 2005
30th june 2005
31st oct 2005
31st dec 2005.....

now in column D i have notice periods......
15 days...
30 days...
45 days
30 days...
15 days....

now ...what i want to do thru the macro is as follows :

in cell H1 ...i have todays date = today()...
and cash as of now is 25%....
i want the macro to find out the first earliest call back date....and
then
redeem the corr stock.....taking into consideration the notice
period.....state the notice period....in column E ....and then
allocate that amount from column B....to cash....

so in the above ex....
IT is stock C....
with alloc....15%..
and notice period....45 days....
so.....if call back date....is 30 june......
15 april.....stock C shud be called back.....as notice period is 45
days...
and that 15 % ....shud be ...now added to cash......ie 25% + 15 % =
40%.....


then the macro shud go n find the 2nd stock...3rd stock......4th stock
and so on......

pls help me in this...as i am in gr8 need of such a tool....
ur help wlll be greatly appreciated...

thanks

sam
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Master needed - Too tough to tame RiverCity Excel Worksheet Functions 2 November 10th 08 09:25 PM
Date range lookup....tough one! deeds Excel Worksheet Functions 18 October 23rd 08 04:58 PM
A tough macro question Brad Excel Discussion (Misc queries) 0 October 17th 06 07:26 PM
Tough Macro Question Chris Excel Programming 2 February 28th 05 05:02 PM
VB Code needed for Sorting with constraints problem-Tough One Leroy Excel Programming 0 April 30th 04 02:16 PM


All times are GMT +1. The time now is 08:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"