# Sum totals

#### Svgmassive

##### Board Regular
I have recently re did a worksheet on the old worksheet i had the formula below that sum the employee totals for a given week.
=IF(COUNTA(INDEX(\$F\$5:\$F\$12,MATCH(99^99,\$A\$5:\$A\$12,1)):INDEX(\$F\$5:\$F\$12,ROW()))>0,SUMPRODUCT(--(\$F\$5:\$F\$12=\$F6),--(\$I\$5:\$I\$12>=0),--(\$I\$5:\$I\$12)))

my problem is the ranges are now reference different as listed below
\$F\$5:\$F\$7,\$F\$9:\$F\$12
can i get the formula corrected or is there another formula can perform the same function? thanks

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

##### MrExcel MVP
You need to explain in words what the formula you posted is supposed to do.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,167,653
Messages
5,854,963
Members
431,689
Latest member
jacker01

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back