Gesyca_is_joy
Board Regular
- Joined
- Apr 24, 2014
- Messages
- 90
- Office Version
- 365
- Platform
- Windows
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]1
[/TD]
[TD]a[/TD]
[TD]2[/TD]
[TD]b[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]b[/TD]
[TD]1[/TD]
[TD]d[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]a[/TD]
[TD]3[/TD]
[TD]a[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]d[/TD]
[TD]5[/TD]
[TD]c[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]c[/TD]
[TD]6[/TD]
[TD]d[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have a table in it that holds data. I have a second table that will report a total count off the first table. An example of my “data” table is above. The formula I am trying to write needs to search for a value “a” and when it finds that value then will multiply the cell immediately to the right of “a” against the first cell in the row and return the sum total for the whole table.
In the example table above I have 3 instances of “a” , one with a 2 next to it, one with a 3 next to it and one with a 1 next to it. So those three values (2, 3, 1) all need to be multipled against the first cell in their respective rows, then the totals added together. So the formula for a needs to reply with the sum total of (2*1)+(3*1)(1*1)=6
I am trying to write this formula as opposed to doing it manually because my table is much larger than the example and it takes forever to get a count live.
<tbody>[TR]
[TD]1
[/TD]
[TD]a[/TD]
[TD]2[/TD]
[TD]b[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]b[/TD]
[TD]1[/TD]
[TD]d[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]a[/TD]
[TD]3[/TD]
[TD]a[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]d[/TD]
[TD]5[/TD]
[TD]c[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]c[/TD]
[TD]6[/TD]
[TD]d[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have a table in it that holds data. I have a second table that will report a total count off the first table. An example of my “data” table is above. The formula I am trying to write needs to search for a value “a” and when it finds that value then will multiply the cell immediately to the right of “a” against the first cell in the row and return the sum total for the whole table.
In the example table above I have 3 instances of “a” , one with a 2 next to it, one with a 3 next to it and one with a 1 next to it. So those three values (2, 3, 1) all need to be multipled against the first cell in their respective rows, then the totals added together. So the formula for a needs to reply with the sum total of (2*1)+(3*1)(1*1)=6
I am trying to write this formula as opposed to doing it manually because my table is much larger than the example and it takes forever to get a count live.
Last edited: