#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
shirley
 
Posts: n/a
Default pls help

hi,

i have a small problem....here's what it looks like:

A(flag) B(date of sale) C(sale amt) D(Feb06) E(Mar06) F(Apr06).....
1 0 25000

ok heres where the problem is.....when there is a sale, the flag in col A
changes from 0 to 1. then the month of sale is entered in col B..... now the
first installment of the payment has to start in the month of the sale....for
eg. if the first sale is for 25000$ in the month of Mar06, then 50% of $25000
shud appear in Mar06 column and 25% of $25000 in the col 5 months from
Mar06(i.e. in Aug06) and the last 25% in the col 10 months from Mar06.

kindly help me if my problem is clear!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default pls help

Hi Shirley

Assuming you enter proper Excel Dates in D1 onward, e.g. 01 Feb 2006
formatted to just show Month and year with
FormatCellsNumberCustommmmyy
Also, assuming you use a proper Excel date in column B, then enter the
following formula into cell D2 and copy across as far as required.
Copy the whole row down as far as required.
=IF($A3="","",IF(D$1<$B3,"",
IF(DATEDIF($B3,D$1,"m")=0,$C3*50%,
IF(DATEDIF($B3,D$1,"m")=5,$C3*25%,
IF(DATEDIF($B3,D$1,"m")=10,$C3*25%,"")))))

Until you enter a value greater than 0 in your flag field, the values
will remain as 0
If you need more help on the undocumented Datedif function, take a look
at Chip Pearson's site
http://www.cpearson.com/excel/datedif.htm

--
Regards

Roger Govier


"shirley" wrote in message
...
hi,

i have a small problem....here's what it looks like:

A(flag) B(date of sale) C(sale amt) D(Feb06) E(Mar06)
F(Apr06).....
1 0 25000

ok heres where the problem is.....when there is a sale, the flag in
col A
changes from 0 to 1. then the month of sale is entered in col B.....
now the
first installment of the payment has to start in the month of the
sale....for
eg. if the first sale is for 25000$ in the month of Mar06, then 50% of
$25000
shud appear in Mar06 column and 25% of $25000 in the col 5 months from
Mar06(i.e. in Aug06) and the last 25% in the col 10 months from Mar06.

kindly help me if my problem is clear!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
shirley
 
Posts: n/a
Default pls help

Hi Roger

YAY! it worked!! Thanks for all the help. You are a life saver!!!

Shirley

"Roger Govier" wrote:

Hi Shirley

Assuming you enter proper Excel Dates in D1 onward, e.g. 01 Feb 2006
formatted to just show Month and year with
FormatCellsNumberCustommmmyy
Also, assuming you use a proper Excel date in column B, then enter the
following formula into cell D2 and copy across as far as required.
Copy the whole row down as far as required.
=IF($A3="","",IF(D$1<$B3,"",
IF(DATEDIF($B3,D$1,"m")=0,$C3*50%,
IF(DATEDIF($B3,D$1,"m")=5,$C3*25%,
IF(DATEDIF($B3,D$1,"m")=10,$C3*25%,"")))))

Until you enter a value greater than 0 in your flag field, the values
will remain as 0
If you need more help on the undocumented Datedif function, take a look
at Chip Pearson's site
http://www.cpearson.com/excel/datedif.htm

--
Regards

Roger Govier


"shirley" wrote in message
...
hi,

i have a small problem....here's what it looks like:

A(flag) B(date of sale) C(sale amt) D(Feb06) E(Mar06)
F(Apr06).....
1 0 25000

ok heres where the problem is.....when there is a sale, the flag in
col A
changes from 0 to 1. then the month of sale is entered in col B.....
now the
first installment of the payment has to start in the month of the
sale....for
eg. if the first sale is for 25000$ in the month of Mar06, then 50% of
$25000
shud appear in Mar06 column and 25% of $25000 in the col 5 months from
Mar06(i.e. in Aug06) and the last 25% in the col 10 months from Mar06.

kindly help me if my problem is clear!




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



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

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

About Us

"It's about Microsoft Excel"