Dears kindly help me with this
I have this table The expected result is in column No. of Days
So it must count number of days for these Products (1010,1030,1040,1020)
I have this formula which give similar results but for dates that have gap like 21\01 then 24\01 here it will jump from 14 to 11 so the number of days will be 18,17,16,15,14,11
<colgroup><col><col><col></colgroup><tbody>
</tbody>
I have this table The expected result is in column No. of Days
So it must count number of days for these Products (1010,1030,1040,1020)
I have this formula which give similar results but for dates that have gap like 21\01 then 24\01 here it will jump from 14 to 11 so the number of days will be 18,17,16,15,14,11
Code:
=INDIRECT(CONCATENATE("$B";"$";MIN(ROW([Date]))+ROWS([Date])-1))-B1
ID | Date | No. Days |
1010 | 1/17/2016 | 18 |
1030 | 1/17/2016 | 18 |
1040 | 1/17/2016 | 18 |
1020 | 1/17/2016 | 18 |
1010 | 1/18/2016 | 17 |
1040 | 1/18/2016 | 17 |
1030 | 1/18/2016 | 17 |
1020 | 1/18/2016 | 17 |
1020 | 1/19/2016 | 16 |
1010 | 1/19/2016 | 16 |
1040 | 1/19/2016 | 16 |
1030 | 1/19/2016 | 16 |
1020 | 1/20/2016 | 15 |
1010 | 1/20/2016 | 15 |
1040 | 1/20/2016 | 15 |
1030 | 1/20/2016 | 15 |
1020 | 1/21/2016 | 14 |
1040 | 1/21/2016 | 14 |
1010 | 1/21/2016 | 14 |
1030 | 1/21/2016 | 14 |
1020 | 1/24/2016 | 13 |
1040 | 1/24/2016 | 13 |
1010 | 1/24/2016 | 13 |
1030 | 1/24/2016 | 13 |
1040 | 1/25/2016 | 12 |
1030 | 1/25/2016 | 12 |
1010 | 1/25/2016 | 12 |
1020 | 1/25/2016 | 12 |
1010 | 1/26/2016 | 11 |
1020 | 1/26/2016 | 11 |
1030 | 1/26/2016 | 11 |
1040 | 1/26/2016 | 11 |
1020 | 1/27/2016 | 10 |
1030 | 1/27/2016 | 10 |
1040 | 1/27/2016 | 10 |
1010 | 1/27/2016 | 10 |
1010 | 1/28/2016 | 9 |
1020 | 1/28/2016 | 9 |
1030 | 1/28/2016 | 9 |
1040 | 1/28/2016 | 9 |
1010 | 1/31/2016 | 8 |
1020 | 1/31/2016 | 8 |
1030 | 1/31/2016 | 8 |
1040 | 1/31/2016 | 8 |
1010 | 2/1/2016 | 7 |
1020 | 2/1/2016 | 7 |
1030 | 2/1/2016 | 7 |
1040 | 2/1/2016 | 7 |
1010 | 2/2/2016 | 6 |
1020 | 2/2/2016 | 6 |
1030 | 2/2/2016 | 6 |
1040 | 2/2/2016 | 6 |
1010 | 2/3/2016 | 5 |
1020 | 2/3/2016 | 5 |
1030 | 2/3/2016 | 5 |
1040 | 2/3/2016 | 5 |
1010 | 2/4/2016 | 4 |
1020 | 2/4/2016 | 4 |
1030 | 2/4/2016 | 4 |
1040 | 2/4/2016 | 4 |
1010 | 2/7/2016 | 3 |
1020 | 2/7/2016 | 3 |
1030 | 2/7/2016 | 3 |
1040 | 2/7/2016 | 3 |
1010 | 2/8/2016 | 2 |
1020 | 2/8/2016 | 2 |
1030 | 2/8/2016 | 2 |
1040 | 2/8/2016 | 2 |
1010 | 2/9/2016 | 1 |
1020 | 2/9/2016 | 1 |
1030 | 2/9/2016 | 1 |
<colgroup><col><col><col></colgroup><tbody>
</tbody>