Forum Discussion
SUMIFs
- Jan 11, 2022
sinadanaee ... The following works fine for me. See the attached Excel file.
A1:
=SUMIFS(D3:D13, D3:D13, "<>#N/A", A3:A13, "*"&F3&"*")
NOTE: No need for the condition A3:A13,"<>#N/A". It is redundant.
PS.... I tested with the F3 condition first, and it appears that order of the conditions does not matter.
Aside.... I would prefer to avoid the #N/A errors in the data, in the first place.
Which of the ranges contains #N/A? D3:D2000 or A3:A2000 or both?
HansVogelaar Hi Hans, the #N/A comes from D range. Although I would probably need it for both?
- HansVogelaarJan 11, 2022MVP
Sergei's suggestion should do what you want.
- sinadanaeeJan 11, 2022Copper Contributor
HansVogelaar Hi Hans, so i did try this formula, and it just gave me #value error, even on the cells were there use to be a correct value on. Sorry!
- HansVogelaarJan 11, 2022MVP
Does it help if you confirm the formula with Ctrl+Shift+Enter?
I have attached a small sample workbook that shows Sergei's formula in action.