huiyin9218
Board Regular
- Joined
- Aug 7, 2018
- Messages
- 53
Hi,
May i know how to write a code to sum up the numbers of each date in second column and write it at the side of each serial number (For example : location A and B)?
As you can see, serial number 1 has 2 dates and serial number 2 only have one date, how do i write a code to sum all the numbers between the serial numbers as the dates sometimes can go up to 5 dates per serial number?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Serial Number 1[/TD]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]8 july 2018[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4 july 2018[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Serial Number 2[/TD]
[TD][/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]8 july 2018[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would be so grateful for your help.
May i know how to write a code to sum up the numbers of each date in second column and write it at the side of each serial number (For example : location A and B)?
As you can see, serial number 1 has 2 dates and serial number 2 only have one date, how do i write a code to sum all the numbers between the serial numbers as the dates sometimes can go up to 5 dates per serial number?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Serial Number 1[/TD]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]8 july 2018[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4 july 2018[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Serial Number 2[/TD]
[TD][/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]8 july 2018[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would be so grateful for your help.