Excel Formula Sumif/Sumifs: Sum value from one cell if another cell does not contain a certain text or blank value

Anonymous
2024-12-29T23:45:22+00:00

Hello Everyone,

I've been racking my brain with this as I haven't had to use Excel in a bit.

Long story short, working on a Excel template and I'm trying to make a formula to give me the sum of the values in colum B if colum A doesn't catain "N/A" or a blank value.

Example below:

Eample Colum 1 Eample Colum 2 What the Sum should be
12356789 $20.00 $120.00
11111111 $20.00
TIMMY!!! $20.00
Jo $20.00
N/A $20.00
N/A $20.00
Ste $20.00
$20.00
$20.00
FYI, been trying for the past two hours :'( $20.00

Any help would be greatly appricated.

Thanks

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2024-12-30T02:45:20+00:00

    Hi,

    In cell D2, enter this formula

    =SUMIFS(B2:B11,A2:A11,"<>n/a",A2:A11,"<>")

    The answer should be 100. See the yellow coloured cells.

    Hope this helps.

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-12-30T01:18:29+00:00

    you use a compound sumif

    SUMIF(D7:D16,"<>N/A",E7:E16)-SUMIF(D7:D16,"",E7:E16)<br><br><br><br>blanks are a problem because the the criteria must be either a value or a string<br><br>"<> N/A" is fine but "<> "" " is not accepted.
    0 comments No comments
  2. Anonymous
    2024-12-30T02:57:35+00:00

    =SUMIFS(H7:H16,G7:G16,"<>n/a",G7:G16,"<>"&"")

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-12-30T03:09:37+00:00

    Excel never cxeases to amaze. Yours and the next solution are creative.

    0 comments No comments
  4. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2024-12-30T03:52:15+00:00

    You are welcome. Please mark my previous reply as answer.

    0 comments No comments