Hi,
I am trying to calculate totals from a column based on multiple criteria. But these criteria are randomly generated each time for the purpose of what I'm doing, so I am using cell values (A10, B10, etc) rather than a number or text string.
So, there are multiple random outputs from a column range and I want to capture the corresponding number to those random outputs.
I have tried SUMIFS with multiple criteria but that is AND rather than OR and produces a result of 0.
I have tried using {} to contain multiple OR criteria but it doesn't appear to work for cell values, only text or numbers.
I have tried lots of additions SUMIF + SUMIF, etc, which works but in my actual spreadsheet the equation is 486 characters long (and there are more than one number column, so lots of these) so I want to try and avoid this if possible.
I've been trying different options using a simple spreadsheet, where outputs in cells below in A8 and B8 could be "Joe" and "David" to represent the random outputs. In this example I would be looking for 5 as an answer (2+3).
[TABLE="width: 500"]
<tbody>[TR]
[TD]Names
[/TD]
[TD]Tennis Rackets
[/TD]
[/TR]
[TR]
[TD]Sid
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]Terry
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Joe
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]Billy
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]David
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
An example of a formula I tried: =SUM(SUMIFS(B2:B6,A2:A6,{A8,B8}))
Any help is gratefully appreciated.
I am trying to calculate totals from a column based on multiple criteria. But these criteria are randomly generated each time for the purpose of what I'm doing, so I am using cell values (A10, B10, etc) rather than a number or text string.
So, there are multiple random outputs from a column range and I want to capture the corresponding number to those random outputs.
I have tried SUMIFS with multiple criteria but that is AND rather than OR and produces a result of 0.
I have tried using {} to contain multiple OR criteria but it doesn't appear to work for cell values, only text or numbers.
I have tried lots of additions SUMIF + SUMIF, etc, which works but in my actual spreadsheet the equation is 486 characters long (and there are more than one number column, so lots of these) so I want to try and avoid this if possible.
I've been trying different options using a simple spreadsheet, where outputs in cells below in A8 and B8 could be "Joe" and "David" to represent the random outputs. In this example I would be looking for 5 as an answer (2+3).
[TABLE="width: 500"]
<tbody>[TR]
[TD]Names
[/TD]
[TD]Tennis Rackets
[/TD]
[/TR]
[TR]
[TD]Sid
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]Terry
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Joe
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]Billy
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]David
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
An example of a formula I tried: =SUM(SUMIFS(B2:B6,A2:A6,{A8,B8}))
Any help is gratefully appreciated.