Hello !
I've been trying to find a formula to sum as below, unfortunately sumif does not work as there are multiple rows in my spreadsheet that might keep changing, so I'm looking to create a fixed formula that can sum based on a criteria within the given range.
E.g. based on the chart below, I'd like to sum all the quantities below "Apple" within the entire range.
I've tried =sumif(A1:G1,"Apple",A2:G2) but that only works for one row, I'd need to auto formulate for it to replicate this across the whole range.
The rows are not finite, and new rows might be added within the given range.
Would anyone have a suggestion as to how this can be done?
Thank you!
I've been trying to find a formula to sum as below, unfortunately sumif does not work as there are multiple rows in my spreadsheet that might keep changing, so I'm looking to create a fixed formula that can sum based on a criteria within the given range.
E.g. based on the chart below, I'd like to sum all the quantities below "Apple" within the entire range.
I've tried =sumif(A1:G1,"Apple",A2:G2) but that only works for one row, I'd need to auto formulate for it to replicate this across the whole range.
The rows are not finite, and new rows might be added within the given range.
Would anyone have a suggestion as to how this can be done?
Thank you!
A | B | C | D | E | F | G |
1 | Apple | Apple | Pear | Grape | Apple | Pear |
2 | 10 | 30 | 30 | 10 | 20 | 10 |
3 | ||||||
4 | Apple | Apple | Apple | Pear | Grape | Pear |
5 | 20 | 20 | 10 | 30 | 30 | 30 |
6 | ||||||
7 | Apple | Pear | Pear | Grape | Apple | Apple |
8 | 30 | 30 | 20 | 10 | 10 | 20 |