CsJHUN
Active Member
- Joined
- Jan 13, 2015
- Messages
- 360
- Office Version
- 365
- 2021
- 2019
- Platform
- Windows
- Mobile
Hi Board,
Does anyone has advice about this problem.
I have this 2 sample table ("A1:D11" and "F1:G6")
[TABLE="class: head"]
<tbody>[TR="bgcolor: #888888"]
[TH][/TH]
[TH]
[TH]
[TH]
[TH]
[TH]
[TH]
[TH]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to multiple each group "need to multiply" values for each day with the group multiplier. (with macro if possible )
For example:
- D2 has to be 12 (6*2)
- D6 = 30 (5*6)
- D9 = 4 (2*2)
Thanks in advance!
John
Does anyone has advice about this problem.
I have this 2 sample table ("A1:D11" and "F1:G6")
[TABLE="class: head"]
<tbody>[TR="bgcolor: #888888"]
[TH][/TH]
[TH]
A
[/TH][TH]
B
[/TH][TH]
C
[/TH][TH]
D
[/TH][TH]
E
[/TH][TH]
F
[/TH][TH]
G
[/TH][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
1
[/TD][TD]
Grouping
[/TD][TD]
Date
[/TD][TD]
Data name
[/TD][TD]
Data value
[/TD][TD][/TD]
[TD]
Group
[/TD][TD]
Multiplier
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
2
[/TD][TD]
1
[/TD][TD]
1/1/2017
[/TD][TD]
Need to multiply
[/TD][TD]
6
[/TD][TD][/TD]
[TD]
1
[/TD][TD]
2
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
3
[/TD][TD]
1
[/TD][TD]
1/1/2017
[/TD][TD]
Not need to multiply
[/TD][TD]
10
[/TD][TD][/TD]
[TD]
2
[/TD][TD]
6
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
4
[/TD][TD]
1
[/TD][TD]
1/1/2017
[/TD][TD]
Not need to multiply
[/TD][TD]
4
[/TD][TD][/TD]
[TD]
3
[/TD][TD]
9
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
5
[/TD][TD]
2
[/TD][TD]
1/1/2017
[/TD][TD]
Not need to multiply
[/TD][TD]
10
[/TD][TD][/TD]
[TD]
4
[/TD][TD]
2
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
6
[/TD][TD]
2
[/TD][TD]
1/1/2017
[/TD][TD]
Need to multiply
[/TD][TD]
5
[/TD][TD][/TD]
[TD]
5
[/TD][TD]
6
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
7
[/TD][TD]
2
[/TD][TD]
1/1/2017
[/TD][TD]
Not need to multiply
[/TD][TD]
4
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
8
[/TD][TD]
3
[/TD][TD]
1/2/2017
[/TD][TD]
Not need to multiply
[/TD][TD]
5
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
9
[/TD][TD]
1
[/TD][TD]
1/2/2017
[/TD][TD]
Need to multiply
[/TD][TD]
2
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
10
[/TD][TD]
2
[/TD][TD]
1/2/2017
[/TD][TD]
Not need to multiply
[/TD][TD]
2
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
11
[/TD][TD]
5
[/TD][TD]
1/2/2017
[/TD][TD]
Not need to multiply
[/TD][TD]
1
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to multiple each group "need to multiply" values for each day with the group multiplier. (with macro if possible )
For example:
- D2 has to be 12 (6*2)
- D6 = 30 (5*6)
- D9 = 4 (2*2)
Thanks in advance!
John
Last edited: