+ Reply to Thread
Results 1 to 3 of 3

Sumproduct with horizontal and vertical criterion

  1. #1
    Registered User
    Join Date
    05-02-2010
    Location
    Cambridge
    MS-Off Ver
    Excel 2007
    Posts
    10

    Sumproduct with horizontal and vertical criterion

    Hi All,

    I have a dataset from A2 to GI3503 which has the forecast month in column B (i.e. Nov-12), the months forecasted in D (i.e. Jan-12 to Dec-16), the header A2 to GI2 which has categories of work.

    I have tried the following formula to sum based on the month of forecast, month forecasted and work category but it doesn't work:

    Please Login or Register  to view this content.
    I get a #Value error

    'Staging Sheet'!$B$127 = Month of forecast i.e. Nov-12
    'Staging Sheet'!D142 = Start of quarter i.e. Jan-12
    'Staging Sheet'!E142 = Start of next quarter i.e. Apr-12
    'Staging Sheet'!B143 = a client name that is on the header (Row 2)

    Any ideas?

    Regards

    Will

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sumproduct with horizontal and vertical criterion

    Hi Will 32,

    Please upload a sample workbook.. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Sumproduct with horizontal and vertical criterion

    hi will, the problem is probably due to your 4th & 5th brackets. this might solve it.
    =SUMPRODUCT(('Rev Dataset'!$B$3:$B$3503='Staging Sheet'!$B$127)*('Rev Dataset'!$D$3:$D$3503>'Staging Sheet'!D142)*('Rev Dataset'!$D$3:$D$3503<'Staging Sheet'!E142)*(OFFSET('Rev Dataset'!$N$3,0,MATCH('Staging Sheet'!B143,'Rev Dataset'!$N$2:$GF$2,0),3501)))

    do note that the "3501" is based on your 3503 rows - 2 rows on top which are probably your headers & a blank. adjust accordingly

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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