+ Reply to Thread
Results 1 to 5 of 5

Sum if horizontal and Vertical criteria matches

  1. #1
    Registered User
    Join Date
    10-07-2014
    Location
    london, england
    MS-Off Ver
    MS Office 2010
    Posts
    18

    Sum if horizontal and Vertical criteria matches

    Hi,

    I have a table with my P&L figures in it, by month for the year.

    I want to set a formula that will pull through total sum based on the month that has been selected and the category selected in the rows.

    I tried sumproduct, but it's not working for me I'm getting a #Div0 error.

    Any help would be gratefully received.

    Thank you

    Nilani

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Sum if horizontal and Vertical criteria matches

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Registered User
    Join Date
    10-07-2014
    Location
    london, england
    MS-Off Ver
    MS Office 2010
    Posts
    18

    Re: Sum if horizontal and Vertical criteria matches

    Hi,

    I am looking for a sumif/ sum product formula that can return the result based on the horizontal and vertical criteria's being met.

    I have attached a sample spreadsheet.

    I'd be grateful for any help.

    Many thanks

    N
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Sum if horizontal and Vertical criteria matches

    D19=sumifs(index(c4:j13,,match(d18,c2:j2,0)),b4:b13,c19)


    D19=SUMPRODUCT((B4:B13=C19)*(C2:J2=D18)*(C4:J13))
    Last edited by CARACALLA; 09-02-2020 at 09:07 AM.

  5. #5
    Registered User
    Join Date
    10-07-2014
    Location
    london, england
    MS-Off Ver
    MS Office 2010
    Posts
    18

    Re: Sum if horizontal and Vertical criteria matches

    Amazing - thank you!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] IndexMatch - multiple horizontal & vertical matches
    By Sthomson1984 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-19-2020, 02:19 PM
  2. Sumproduct with criteria horizontal and vertical and > than
    By krunk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2017, 11:37 AM
  3. Replies: 6
    Last Post: 06-07-2017, 10:25 AM
  4. Replies: 5
    Last Post: 10-03-2016, 03:39 AM
  5. Sum data with vertical and horizontal criteria
    By Vernell10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-09-2016, 10:01 AM
  6. [SOLVED] 3 criteria for horizontal and vertical matching
    By mator in forum Excel General
    Replies: 5
    Last Post: 12-24-2014, 07:19 AM
  7. Index Match with Horizontal and Vertical Matches
    By KMCurtis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2014, 04:18 PM

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