Hi everyone
I'm trying to generate a report wherein i dump a relatively large dataset in a hidden sheet. To create the summary from this, I need to use a criteria on a one field and then sumproduct the visible records from two others
For illustration, consider the following table:
Scenario : 1,1,1,2,2,3,3,3,3
Name: a,b,c,d,f,g,h,a,d
Met1: 5,3,5,4,2,7,9,7,1
Met2: 0.5, 0.1,1.0,0.2,1.1,0.3,1.3,0.5,0.9
I need to filter the table on Scenario (say 2) and then sumproduct(met1,met2) to populate a cell via VBA code. I'm fairly new to the language so any help would be much appreciated.
Thanks.
I'm trying to generate a report wherein i dump a relatively large dataset in a hidden sheet. To create the summary from this, I need to use a criteria on a one field and then sumproduct the visible records from two others
For illustration, consider the following table:
Scenario : 1,1,1,2,2,3,3,3,3
Name: a,b,c,d,f,g,h,a,d
Met1: 5,3,5,4,2,7,9,7,1
Met2: 0.5, 0.1,1.0,0.2,1.1,0.3,1.3,0.5,0.9
I need to filter the table on Scenario (say 2) and then sumproduct(met1,met2) to populate a cell via VBA code. I'm fairly new to the language so any help would be much appreciated.
Thanks.