Sajan
Excel Ninja
Hi,
I have the following dataset (simplified to illustrate my question):
[pre]
[/pre]
In this case, I am expecting the value 4+7+8=19. However, Excel returns 0 (zero).
If I select the formula and press F9, I get the correct result of 19.
Any ideas on what I am overlooking?
Thanks,
Sajan.
I have the following dataset (simplified to illustrate my question):
[pre]
Code:
# A B C D E
1 Item 1 1 2 Item 2
2 Item 2 Q 4 Item 4
3 Item 3 5 6
4 Item 4 7 8
Column A has a list of text values (Item 1, Item 2, etc.)
Column B and C has the mostly numeric values that I need to add up. Please note that cell B2 has the non-numeric value of "Q".
Column E has the criteria (also a list of text values)
I am attempting to sum the values in columns B and C, when the value in Column A is one of the values in Column E.
I am using the following formula:
=sumproduct ( not(iserror(match(A1:A4, E1:E2, 0))) * iferror(B1:C4*1,0) )
In this case, I am expecting the value 4+7+8=19. However, Excel returns 0 (zero).
If I select the formula and press F9, I get the correct result of 19.
Any ideas on what I am overlooking?
Thanks,
Sajan.