+ Reply to Thread
Results 1 to 4 of 4

formula that adds only cells with specific reference next to it

Hybrid View

  1. #1
    Registered User
    Join Date
    04-27-2009
    Location
    New York, New York
    MS-Off Ver
    Excel 2003
    Posts
    25

    formula that adds only cells with specific reference next to it

    For instance if Cells A1=Snail, cell B2=Dog and cell A3=Snail and cells B1=100, B2=50 and B3=320 I would want a formula that only sums B1 and B3 together since they have the same exact text in the cell to their left. Can anyone help?

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: formula that adds only cells with specific reference next to it

    Try

    =SUMPRODUCT((A1:A3="Snail")*(B1:B3))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: formula that adds only cells with specific reference next to it

    Try:

    =SUMIF(A1:A3,"Snail",B1:B3)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: formula that adds only cells with specific reference next to it

    Try:

    =SUMIF(A1:A3,"Snail",B1:B3)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1