ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Combining SUMPRODUCT with IF - help! (https://www.excelbanter.com/excel-worksheet-functions/266485-combining-sumproduct-if-help.html)

John Elford

Combining SUMPRODUCT with IF - help!
 
Help, please! I am summing alternate rows in a spreadsheet, e.g.

=SUMPRODUCT(--(MOD(ROW(F5:F306),2)=1),F5:F306)

but I only want to include the rows where is a particular bit of text in Column C (in this case "GARD"):

=SUMIF($C7:$C302,"GARD",G7:G302)

Is there a formula which will add these selected rows only?

Many thanks.

John Elford

Quote:

Originally Posted by John Elford (Post 960253)
Help, please! I am summing alternate rows in a spreadsheet, e.g.

=SUMPRODUCT(--(MOD(ROW(F5:F306),2)=1),F5:F306)

I've got a reply to this elsewhere, thanks. Problem solved.


All times are GMT +1. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com