+ Reply to Thread
Results 1 to 4 of 4

Sumif including index,match formulas

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    29

    Sumif including index,match formulas

    Hi All,

    I'm trying to do a SUMIF formula, but the way the data is set up I need to use the index and match function to look at multiple data points.

    In Sheet1, I have store numbers in Column A, and Product Codes in Row 4. In Cell A1 is a date, which will change each week.

    In sheet 2, I have a data range A1:AT31. Column A has the store number. Column B has the product code. in row 1 are the dates.

    Based on the store number, product, and date, I am trying to populate data into Sheet1. I have this formula so far:

    =SUMIF(Sheet2$A$2:$A$31,Sheet1$A$5,INDEX(Sheet2$B$2:$AT$31,0,MATCH(Sheet1$A$1,Sheet2$A$1:$AT$1,0)))

    So I'm nearly there but can't figure out how to add the product criteria into the formula. I've attached a sample spreadsheet to help.

    Any help would be appreciated.

    CheersSample_2205.xlsx

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Sumif including index,match formulas

    use below formula hope this will help..
    =SUMIF(Sheet2!$A$2:$A$31,Sheet1!$A5,INDEX(Sheet2!$C$2:$AT$31,,MATCH($A$1,Sheet2!$C$1:$AT$1,0)))

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Sumif including index,match formulas

    Please Login or Register  to view this content.
    B5=SUMIFS(INDEX(Sheet2!$C$2:$AT$31,0,MATCH($A$1,Sheet2!$C$1:$AT$1)),Sheet2!$A$2:$A$31,$A5,Sheet2!$B$2:$B$31,B$4)
    Try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: Sumif including index,match formulas

    here with sumproduct

+ 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. Sumif or Index/Match on Multiple Criteria including Dates to Month?
    By patrick1024 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2015, 11:00 PM
  2. [SOLVED] INDEX MATCH based on 5 criteria, including a date range.
    By Folshot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 09:35 PM
  3. [SOLVED] Using Index/Match using criteria including range between two cells
    By fer907 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2013, 04:07 PM
  4. [SOLVED] Index and Match for first 3 items found, including cells with same values
    By hazelwouldbe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2012, 09:17 PM
  5. [SOLVED] Use of Imbedded formulas including VLOOKUP, INDEX and MATCH to determine fuel cost.
    By haloperidal in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-22-2012, 03:19 AM

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