ganesh1988
New Member
- Joined
- Mar 10, 2016
- Messages
- 1
Have a table as below
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Sample A[/TD]
[TD]Sample B[/TD]
[/TR]
[TR]
[TD]01 Mar[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]02 Mar[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]04 Mar[/TD]
[TD]10[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]10 Mar[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]11 Feb[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
When Date column has date < current date -7 days, need to Add Sample A and Sample B
So the output will be 2 (for the 11 feb column)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Sample A[/TD]
[TD]Sample B[/TD]
[/TR]
[TR]
[TD]01 Mar[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]02 Mar[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]04 Mar[/TD]
[TD]10[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]10 Mar[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]11 Feb[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
When Date column has date < current date -7 days, need to Add Sample A and Sample B
So the output will be 2 (for the 11 feb column)