+ Reply to Thread
Results 1 to 4 of 4

2 Dimensional SUMIF

  1. #1
    Registered User
    Join Date
    05-21-2015
    Location
    London
    MS-Off Ver
    MS Office
    Posts
    2

    2 Dimensional SUMIF

    I would like to summarise the sales data below by region and by year. Could someone suggest a formula that sums based on both horizontal and vertical criteria?
    Sales Data

    Period 1 1 2 2 3 3

    UK Product A 500 700 450 600 550 500
    UK Product B 200 400 250 350 400 450
    USA Product A 200 350 210 450 250 400
    USA Product B 100 150 250 300 310 350
    Asia Product A 1200 1500 1000 1100 1200 1250
    Asia Product B 1000 1250 950 1000 1100 1000

    Sales Summary
    1 2 3
    UK
    USA
    Asia

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: 2 Dimensional SUMIF

    it is a little difficult to see what you are trying to sum, can you post a small sample so people can see what you have and what you are looking for? Go advanced to accomplish this.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: 2 Dimensional SUMIF

    Hello,

    consider the following screenshot. The formula in cell K2 is

    =SUMPRODUCT($C$3:$H$8*($A$3:$A$8=$J2)*($C$1:$H$1=K$1))

    copied across and down.

    2015-05-21_21-21-06.png

    cheers, teylyn

  4. #4
    Registered User
    Join Date
    05-21-2015
    Location
    London
    MS-Off Ver
    MS Office
    Posts
    2

    Re: 2 Dimensional SUMIF

    Many Thanks. The SUMPRODUCT formulae works fine. Problem Solved.

+ 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] Convert one dimensional array into two dimensional array
    By mohammed sabr in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-26-2015, 10:34 AM
  2. Replies: 2
    Last Post: 01-02-2015, 04:24 PM
  3. Two dimensional (2D) SUMIF / SUMPRODUCT across multiple worksheets?
    By formulaic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2012, 01:36 PM
  4. Creating a 2-dimensional array from a 1-dimensional list
    By guywithcamera in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2008, 06:34 PM
  5. Create One-Dimensional Array from Two-Dimensional Array
    By Stratuser in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2005, 05:06 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