J
John
In a spreadsheet with data in numerous rows and columns,
I wish to add the amounts in a particular column, when
specific data appears in the same row in two other
columns.
To use examples:
rows E5:E99 can contain (say) A B or C
rows F5:F99 can contain (say) 1 2 or 3
rows Q5:Q99 contain different (currency) amounts
I have tried, as an array:
=IF(AND((E5:E99="B"),(F5:F99="3")),SUM(Q5:Q99),0)
although this is accepted by Excel as a valid formula, it
returns "0", which is not the sum of the amounts in the
rows of column Q that have "B" in column E and "3" in
column F.
Can anyone help, please?
I wish to add the amounts in a particular column, when
specific data appears in the same row in two other
columns.
To use examples:
rows E5:E99 can contain (say) A B or C
rows F5:F99 can contain (say) 1 2 or 3
rows Q5:Q99 contain different (currency) amounts
I have tried, as an array:
=IF(AND((E5:E99="B"),(F5:F99="3")),SUM(Q5:Q99),0)
although this is accepted by Excel as a valid formula, it
returns "0", which is not the sum of the amounts in the
rows of column Q that have "B" in column E and "3" in
column F.
Can anyone help, please?