Forum Discussion

Warwick03's avatar
Warwick03
Copper Contributor
Oct 13, 2022
Solved

Output The Sum of Cells If More Than One Row Has The Same Information

 

Hi does anyone know how I would combine multiple rows if they had the same information.

 

This is a very small scale but i didnt know if there was a way I could combine the cells if they had the same: Month, year and code. But then add the quantity and price together?

 

I have 5000 rows so I cant add a code for each row.

 

MonthYearQtyPriceCode
july202250£2,100106879
july202260£2,200106879
august202260£2,200106879
august202260£2,200106877
  • Warwick03 

    =SUMIFS(C$2:C$5,$A$2:$A$5,$G2,$B$2:$B$5,$H2,$E$2:$E$5,$I2)

    You can apply SUMIFS. In the example the formula is in cell J2 and filled across range J2:K4.

     

    • Warwick03's avatar
      Warwick03
      Copper Contributor
      Hi this kind of helps. But I dont want to input each month and code as there are hundreds of codes...

Resources