AjayGunware
New Member
- Joined
- Dec 13, 2016
- Messages
- 3
hi folks, will it be possible please to help in shortening or suggesting an alternative formula so that it can account for at least 100 rows for the below calculation of Burgers per Person ?
<tbody>
</tbody><colgroup><col span="3"></colgroup>
To calculate Total people, I have used below formula as I need to consider only those people where a number is present under Burger column.
=SUM(IF(ISNUMBER(B2),C2,"0"),IF(ISNUMBER(B3),C3,"0"),IF(ISNUMBER(B4),C4,"0"),IF(ISNUMBER(B5),C5,"0"))
I feel it is easy for just 4 rows but this might become a tedious formula for 100 rows ! please help....
Regards,
Ajay Gunware
City | Burgers | People |
A | 10 | 5 |
B | 10 | |
C | 20 | 4 |
D | 30 | 6 |
Total | 60 | 15 |
Ratio | 4 |
<tbody>
</tbody><colgroup><col span="3"></colgroup>
To calculate Total people, I have used below formula as I need to consider only those people where a number is present under Burger column.
=SUM(IF(ISNUMBER(B2),C2,"0"),IF(ISNUMBER(B3),C3,"0"),IF(ISNUMBER(B4),C4,"0"),IF(ISNUMBER(B5),C5,"0"))
I feel it is easy for just 4 rows but this might become a tedious formula for 100 rows ! please help....
Regards,
Ajay Gunware