View Single Post
  #1   Report Post  
John Elford John Elford is offline
Junior Member
 
Posts: 2
Default 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.