+ Reply to Thread
Results 1 to 5 of 5

Combine index match and sumproduct

  1. #1
    Esrei
    Guest

    Combine index match and sumproduct

    Is it possible to combine sumproduct with index or match/

    I have a list of customers with area codes in A, C is overdue amounts D
    amounts payable the end of the current month and E payable next month. The
    headings for c,d,e is dates.
    How do I tell the formula to sumproduct a column, but the column varies.
    My summayr is a forcast of when recievables is due with area codes in A
    descriptions in B and dates from C-AZ.
    Sorry I think I have confused myself by now

  2. #2
    Franz Verga
    Guest

    Re: Combine index match and sumproduct

    Esrei wrote:
    > Is it possible to combine sumproduct with index or match/
    >
    > I have a list of customers with area codes in A, C is overdue amounts
    > D amounts payable the end of the current month and E payable next
    > month. The headings for c,d,e is dates.
    > How do I tell the formula to sumproduct a column, but the column
    > varies. My summayr is a forcast of when recievables is due with area
    > codes in A descriptions in B and dates from C-AZ.
    > Sorry I think I have confused myself by now



    I think it could be better if you could upload a small example file to
    www.savefile.com

    --
    Thanks in advance for your feedback.

    Ciao

    Franz Verga from Italy



  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    A small example

    If you had customers listed in column A and amounts in columns B to F with date headers in B1:F1 then you could sum amounts for a specific customer for a specific date with this formula

    =SUMPRODUCT(--(A2:A100=H1),INDEX(B2:F100,0,MATCH(H2,B1:F1,0)))

    where H1 contains the customer name and H2 the date to sum for.

  4. #4
    Registered User
    Join Date
    10-10-2013
    Location
    MARION, IL.
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Combine index match and sumproduct

    Hello
    I am using a similar formula to pull data for a weekly efficiency report, see below.
    {=SUMPRODUCT(--(ALVA!B9:B49=P4),INDEX(ALVA!P9:P49,0,))/SUMPRODUCT(--(ALVA!B9:B49=P4),INDEX(ALVA!L9:L49,0))}

    The formula works great, but I get a #DIV/O error if it references a cell that it blank.
    How can I hide this error?
    Thanks

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Combine index match and sumproduct

    DRFJR,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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