+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    05-30-2008
    Posts
    23

    Formula for two column sum

    I need help on a formula to sum in one column when a certain condition is met in another column. Here's the example:
    A B
    95275 2
    95389 7
    96752 5
    95275 3
    The correct response would be 95275=5, 95389=7, 96752=5. I can't use a table because the number in column B is not fixed, so the formula has to be able to differentiate between the number is column A and add the totals in column B. Any help is appreciated. Thanks.
    Last edited by cpope; 02-22-2010 at 01:57 PM.

  2. #2
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,134

    Re: Formula for two column sum

    The correct response would be 95275=5, 95389=7, 96752=5
    Pardon ?
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-30-2008
    Posts
    23

    Re: Formula for two column sum

    The return of the correct formula would show 95275 totaling 5 since it appears twice in column A (2+3).

  4. #4
    Forum Guru jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2007
    Posts
    1,996

    Re: Formula for two column sum

    Why not take a look at the advanced filter function to get a unique list and then use Sumif

    =SUMIF(A2:A5,E2,B2:B5)

    http://www.contextures.com/xladvfilter01.html#FilterUR

  5. #5
    Registered User
    Join Date
    05-30-2008
    Posts
    23

    Re: Formula for two column sum

    Thanks, works like a charm!

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.2.0