Consulting

Results 1 to 4 of 4

Thread: Solved: Lookup / Sumproduct Issue

  1. #1
    VBAX Contributor
    Joined
    Nov 2007
    Posts
    144
    Location

    Solved: Lookup / Sumproduct Issue

    I have 3 tables, as shown in the attached sheet.

    SHEET2 is simply a database of details for each project. There is always mulitple 'Funders' per projects, as shown in column I.

    SHEET 1 contains two tables - the top table contains the Year to Date and Life to Date costs for each project. The bottom table will be a summary of the total cost per Funder.

    Problem:

    There is multiple 'Funders' per project and I need to calculate the total costs incurred for each Funder (i.e. sum the YTD_gross values for every project that 'Funder 01' is involved in and then the same for the YTD_Net values and so on). I know there will be double counting but this can be ignored.

    Can you someone help me with the formula for SHEET1!D27?
    Attached Files Attached Files

  2. #2
    VBAX Regular arkusM's Avatar
    Joined
    May 2007
    Location
    Calgary
    Posts
    52
    Location
    See Attached.

    The Formula is:
    [VBA]
    =SUMPRODUCT(--NOT(ISERROR(SEARCH($C27,SHEET2!$I$5:$I$24))),--(SHEET2!$C$5:$C$24=$C$5:$C$24),D$5$24)
    [/VBA]
    Attached Files Attached Files
    Excel 2003, WinXP

  3. #3
    VBAX Contributor
    Joined
    Nov 2007
    Posts
    144
    Location
    Quote Originally Posted by arkusM
    See Attached.

    The Formula is:
    [vba]
    =SUMPRODUCT(--NOT(ISERROR(SEARCH($C27,SHEET2!$I$5:$I$24))),--(SHEET2!$C$5:$C$24=$C$5:$C$24),D$5$24)
    [/vba]
    Superstar!!!

    Works perfectly. Thanks for the help

    F.

  4. #4
    VBAX Newbie
    Joined
    Jan 2011
    Posts
    1
    Location
    A GOOD JOB.

Posting Permissions

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