Share via

Insert Function shows result, but formula doesn't work

Anonymous
2012-07-11T22:32:01+00:00

When I use 'Insert Function' to review a formula, it shows a result under 'Formula Result'.  However, when I hit Enter, it results in "#VALUE".  Why would the 'Insert Formula' function be able to return a result when the formula in the cell won't?

If it helps, the formula is

=SUM(IF(A19=G5:G6,H5:H6,0))

where A19, G5, G6, H5, and H6 all contain numbers.

Microsoft 365 and Office | Excel | For home | 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

Answer accepted by question author

Anonymous
2012-07-11T22:43:32+00:00

The formula you're using there is an array formula which needs to be committed with Ctrl+Shift+Enter.

Why not just use SUMIF instead:

=SUMIF(G5:G6,A19,H5:H6)

comitted normally with Enter.

Hope that helps.

Cheers

Rich

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2012-07-11T22:40:16+00:00

… when I hit Enter, it results in "#VALUE" …

=SUM(IF(A19=G5:G6,H5:H6,0))

This is an array style formula that requires Ctrl+Shift+Enter↵ rather than just Enter↵. You would be better served with a SUMIF(…) formula like this,

=SUMIF(G5:G6,A19,H5:H6)

This require a simple Enter↵.

SUM function
IF function
SUMIF function
SUMIFS function
Introducing array formulas in Excel
Guidelines and examples of array formulas

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2013-02-06T11:44:23+00:00

    Gents,

     

    Some built-in functions do not yield results. I have not tested all, but when I input Hex2Bin or some other similar conversion functions, there is no result displayed.

     

    Thanks and regards,

     

    Abdelmalek

     

     

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-07-11T22:46:56+00:00

    Hi Jeeped, you just beat me to it with this one... but one note: the links you posted for "Introducing array formulas in Excel" and "Guidelines and examples of array formulas" are in French!  (and the first of these two links is broken).

    Cheers

    Rich

    Was this answer helpful?

    0 comments No comments