Share via

What does this formula mean?

Anonymous
2014-02-07T21:07:42+00:00

I have inherited a worksheet and I can see what the formula is adding up, but I don't know why this formula was used and what it does.  From my perspective a simple Sum formula would have suffice for this calculations, but maybe I am just making it out to be too simple.  Can someone explain to me what this formula means and what it does.

=SUM(($F$2:$F$121=$F$129)*(G$2:G$121))

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

Ashish Mathur 101.9K Reputation points Volunteer Moderator
2014-02-07T23:12:13+00:00

Hi,

This formula can be simplified to:

=SUMIF($F$2:$F$121,$F$129,G$2:G$121)

This formula will add the numbers in G2:G121 if the criteria (in cell F129) is found in range F2:F121.

Hope this helps.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-02-07T21:23:25+00:00

    This is an array formula (entered using CTRL-ENTER, not just ENTER).  It is summing up items in Column G, but only those items in Column G where the value in Column F is equal to the value in $F$129.

    This part:

    ($F$2:$F$121=$F$129) results in either TRUE or FALSE.  If TRUE, it becomes the equivalent of a value of one (1).  The example below shows you how this works.  Some of the values in Column F result in TRUE and some result in FALSE.  Only those that are TRUE add to the SUM.

    Column F Column G $F$? = $F$129? Add to SUM:
    Row 2 3 15 FALSE 0*15
    Row 3 55 22 TRUE 1*22
    Row 4 -17 13 FALSE 0*13
    Row 5 55 87 TRUE 1*87
    Row 121 55 19 TRUE 1*19
    Row 129 55

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2014-02-10T19:40:01+00:00

    Hi,

    This formula can be simplified to:

    =SUMIF($F$2:$F$121,$F$129,G$2:G$121)

    This formula will add the numbers in G2:G121 if the criteria (in cell F129) is found in range F2:F121.

    Hope this helps.

    Thank you Ashish, I used your formula and it worked.  Thankyou so much for your help!

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2014-02-10T19:39:04+00:00

    Thank you E.J. for your help in explaing the formula.  Although I could not make the formula work, eventhough I used CTRL-ENTR intead of just ENTR.  I used the suggestion that Ashish has below and I was able to make it work.

    Was this answer helpful?

    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more