+ Reply to Thread
Results 1 to 2 of 2

Summation and Lookup

  1. #1
    Registered User
    Join Date
    05-26-2006
    Posts
    36

    Summation and Lookup

    Another type of question everyone:

    Say I have 2 Sheets, Sheet1 and Sheet2

    Sheet 2 has the following data:
    A B
    PE001 10
    PE001 10
    PE002 20
    PE002 10
    PE002 10
    PE002 10

    I'm looking for a function for Sheet1, that will ADD all the entries in B for the same name in A.

    Meaning
    on sheet1 I want to return this value

    For PE001, 20
    For PE002, 50

    ADDS ALL ENTRIES AND SUMMATES THEM, TOTALS

    ANY IDEAS???

  2. #2
    Ardus Petus
    Guest

    Re: Summation and Lookup

    To add entries (de-dupe from original list), use >data>Filter>Advanced
    Filter with copy option and Unique records only.

    For summation, use formula:
    =SUMIF(Sheet2!A1:A999,A1,Sheet2!B1:B999)

    For automating the whole process, you would need a VBA macro.

    HTH
    --
    AP

    "Solarissf" <[email protected]> a écrit
    dans le message de news:
    [email protected]...
    >
    > Another type of question everyone:
    >
    > Say I have 2 Sheets, Sheet1 and Sheet2
    >
    > Sheet 2 has the following data:
    > A B
    > PE001 10
    > PE001 10
    > PE002 20
    > PE002 10
    > PE002 10
    > PE002 10
    >
    > I'm looking for a function for Sheet1, that will ADD all the entries in
    > B for the same name in A.
    >
    > Meaning
    > on sheet1 I want to return this value
    >
    > For PE001, 20
    > For PE002, 50
    >
    > ADDS ALL ENTRIES AND SUMMATES THEM, TOTALS
    >
    > ANY IDEAS???
    >
    >
    > --
    > Solarissf
    > ------------------------------------------------------------------------
    > Solarissf's Profile:
    > http://www.excelforum.com/member.php...o&userid=34834
    > View this thread: http://www.excelforum.com/showthread...hreadid=549600
    >




+ 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