S
Syed Zeeshan Haider
Hello Experts,
I have Excel 97 Pro on Win98SE.
For a typical investment, here in Pakistan, a government bank pays the
profit to the investor after a certain interval of time. For a certain type
of investment scheme, the profit is paid after every 6 months.
For example, if you invested on March 23, 2003, your first profit will be
due to be paid to you on September 23, 2003 (right after six months) and
then on March 23, 2004 and so on.
Is there any function which could *easily* tell the next profit date
according to the situation given above?
I tried to write a formula by nesting many functions in each other but
messed up everything. Then I saw some VBA examples at Chip Pearson's web
site which indicated that a user can write custom functions. So I decided to
test my limited skills of VBA.
Now I have written some quite confusingly coded function which returns next
profit date for a six monthly investment like given above. As this function
works quite well but I am still curious:
Is there any function which could *easily* tell the next profit date
according to the situation given above?
As an Excel Expert, how do you take the idea of writing custom function with
VBA? Is it good idea or bad idea?
Thank you,
I have Excel 97 Pro on Win98SE.
For a typical investment, here in Pakistan, a government bank pays the
profit to the investor after a certain interval of time. For a certain type
of investment scheme, the profit is paid after every 6 months.
For example, if you invested on March 23, 2003, your first profit will be
due to be paid to you on September 23, 2003 (right after six months) and
then on March 23, 2004 and so on.
Is there any function which could *easily* tell the next profit date
according to the situation given above?
I tried to write a formula by nesting many functions in each other but
messed up everything. Then I saw some VBA examples at Chip Pearson's web
site which indicated that a user can write custom functions. So I decided to
test my limited skills of VBA.
Now I have written some quite confusingly coded function which returns next
profit date for a six monthly investment like given above. As this function
works quite well but I am still curious:
Is there any function which could *easily* tell the next profit date
according to the situation given above?
As an Excel Expert, how do you take the idea of writing custom function with
VBA? Is it good idea or bad idea?
Thank you,