Hello.
I'm trying to figure out a formula to get a list of dates between two dates. I want these dates to list automatically in just one column when I insert two dates (start date and end date) in two separate cells that I have in another worksheet. Description of the situation as follows:
---------------------------------------------
Worksheet 1
(named "Portada". Contains two cells where the start date and end date actually are):
Cell D14 (Start date). Eg: 08/24/12
Cell D15 (End date). Eg: 08/31/12
---------------------------------------------
Worksheet 2:
(named "calcula". I need the formula to be placed at the column AZ and display dates like this:
Row │ Column AZ
8 │ 08/24/12
9 │ 08/25/12
10 │ 08/26/12
11 │ 08/27/12
12 │ 08/28/12
13 │ 08/29/12
14 │ 08/30/12
15 │ 08/31/12
16 │ -
17 │ -
18 │ -
---------------------------------------------
I'm using this formula for column AZ, but I don't want the formula to repeat dates when I drag it down for the whole column (AZ:AZ). I want it to stop listing dates right after coping the last date (end date) and write nothing after (in the example above where you see the dashes " - "):
=IF($AZ$8=Portada!$D$15," ",IF($AZ$8>Portada!$D$15," ",IF($AZ$8<Portada!$D$14," ",IF(AZ8<Portada!$D$15,AZ8+1,IF(AZ8>Portada!$D$14,AZ8+1,IF(AZ8=Portada!$D$15,Portada!$D$15," "))))))
Can you guys/gals help me? I've been stucked with this for hours and have tried everything. I need this to be a formula and to automatically work without changing the situation of the problem (no dragging, no advanced filter, no nothing else).
I'm trying to figure out a formula to get a list of dates between two dates. I want these dates to list automatically in just one column when I insert two dates (start date and end date) in two separate cells that I have in another worksheet. Description of the situation as follows:
---------------------------------------------
Worksheet 1
(named "Portada". Contains two cells where the start date and end date actually are):
Cell D14 (Start date). Eg: 08/24/12
Cell D15 (End date). Eg: 08/31/12
---------------------------------------------
Worksheet 2:
(named "calcula". I need the formula to be placed at the column AZ and display dates like this:
Row │ Column AZ
8 │ 08/24/12
9 │ 08/25/12
10 │ 08/26/12
11 │ 08/27/12
12 │ 08/28/12
13 │ 08/29/12
14 │ 08/30/12
15 │ 08/31/12
16 │ -
17 │ -
18 │ -
---------------------------------------------
I'm using this formula for column AZ, but I don't want the formula to repeat dates when I drag it down for the whole column (AZ:AZ). I want it to stop listing dates right after coping the last date (end date) and write nothing after (in the example above where you see the dashes " - "):
=IF($AZ$8=Portada!$D$15," ",IF($AZ$8>Portada!$D$15," ",IF($AZ$8<Portada!$D$14," ",IF(AZ8<Portada!$D$15,AZ8+1,IF(AZ8>Portada!$D$14,AZ8+1,IF(AZ8=Portada!$D$15,Portada!$D$15," "))))))
Can you guys/gals help me? I've been stucked with this for hours and have tried everything. I need this to be a formula and to automatically work without changing the situation of the problem (no dragging, no advanced filter, no nothing else).