+ Reply to Thread
Results 1 to 4 of 4

How to make SUM based on lookup table

Hybrid View

  1. #1
    Registered User
    Join Date
    12-21-2012
    Location
    Den Bosch, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    How to make SUM based on lookup table

    I want to SUM project A & B based on productcodes.

    So Project A has to be (11+14) = 25 euros.

    What formula should I use?

    SUMIF and SUMPRODUCT didnt bring me the answers yet...

    Thanks in advance!


    -------------------

    Product Amount Project Product
    L15 € 10,00 A L25
    L25 € 11,00 A L41
    L31 € 12,00 B L61
    L33 € 13,00 B L81
    L41 € 14,00
    L43 € 15,00
    L51 € 16,00
    L53 € 17,00
    L61 € 18,00
    L81 € 19,00

    Project Amount
    A € 25,00
    B € 37,00
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: How to make SUM based on lookup table

    Hi - Welcome to the forum.

    To keep this simple, I would use column C as a 'helper column' and use the below formula in cell C2 and below:

    Formula: copy to clipboard
    =IFERROR(INDEX($D$2:$D$11,MATCH(A2,$E$2:$E$11,FALSE),),"")


    Then in cell E14 use:

    Formula: copy to clipboard
    =SUMIF($C$2:$C$11,"A",$B$2:$B$11)


    and in cell E15 use:

    Formula: copy to clipboard
    =SUMIF($C$2:$C$11,"B",$B$2:$B$11)


    Hope this helps.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to make SUM based on lookup table

    In F2 and copy down put this formula. This will be a helper and hidden if you like column)

    =INDEX($B$2:$B$11,MATCH(E2,$A$2:$A$11,0))

    Then in E14 and copy down, put this one.

    =SUMIF($D$2:$D$5,D14,$F$2:$F$5)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    12-21-2012
    Location
    Den Bosch, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to make SUM based on lookup table

    Great!

    The solution from Fotis1991 worked for me, it makes it able to also SUM similar projectcodes on one project.
    Thanks for helping me out!

    The solution always looks simple aft
    Last edited by eeman82; 12-21-2012 at 02:10 PM.

+ 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