+ Reply to Thread
Results 1 to 12 of 12

Can we use Index/match to return Sumrange for Sumif?

  1. #1
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Can we use Index/match to return Sumrange for Sumif?

    Hi, i need to sumif by column and row criteria, i know this can be achieve by using Sumproduct.

    However, i wish to know if its possible to Return the Sumrange column using Index/Match so that i can use Sumif instead.

    I am not a fan of Sumproduct....
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Can we use Index/match to return Sumrange for Sumif?

    Try

    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,532

    Re: Can we use Index/match to return Sumrange for Sumif?

    One way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Can we use Index/match to return Sumrange for Sumif?

    Hi John, thanks for the formula. may i ask for INDEX($C$2:$N$7,,MATCH($C$11,$C$1:$N$1,0)), the ,, does it mean to take "Number of row as per range"?

    Hence if lets say i wan to sumif Horizontally, my index would be Index($C$2:$N$7,match(.......),) instead?

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Can we use Index/match to return Sumrange for Sumif?

    This ??

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by JohnTopley; 03-21-2024 at 10:29 AM.

  6. #6
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Can we use Index/match to return Sumrange for Sumif?

    Hi John, yes. Coz the formula you given is sumrange is a by Column, hence INDEX($C$2:$N$7,,MATCH($C$11,$C$1:$N$1,0)), right?

    Lets say if my sumrange is by Row, so i use index($C$2:$N$7,match($C$10,$A:$A,0),) right?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,397

    Re: Can we use Index/match to return Sumrange for Sumif?

    NO!

    Your ranges need to be the same length:

    index($C$2:$N$7,match($C$10,$A2:$A7,0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Can we use Index/match to return Sumrange for Sumif?

    Oic, Thanks for your reply Aligw

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,397

    Re: Can we use Index/match to return Sumrange for Sumif?

    Glad to have helped.

    If you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,469

    Re: Can we use Index/match to return Sumrange for Sumif?

    Cell D10 formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Can we use Index/match to return Sumrange for Sumif?

    Hi Thanks wk9128 for your solution.

  12. #12
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,469

    Re: Can we use Index/match to return Sumrange for Sumif?

    @FT00 You're Welcome. Glad to help . Thank You for the feedback.


    If you finally get a solution please mark your thread as SOLVED:
    - Click Thread Tools above your first post,you will see the word PREFIX on the upper left, press the button to select [SOLVED] select "Mark your thread as Solved".
    - you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help
    was given. By doing so you can add to the reputation(s) of those who helped.

+ 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 in a single horizontal row (range and sumrange in same row)
    By noclueaboutexcel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-14-2018, 12:32 AM
  2. Need help today please! Sumif, index, index match
    By helpmeplz_ in forum Excel General
    Replies: 2
    Last Post: 08-26-2017, 12:50 PM
  3. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  4. SumIf with sumrange in multiple variable columns
    By rpinxt in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-19-2015, 09:10 AM
  5. SUMIF, Index and Match Formula. Return Cell value
    By FLani in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2014, 02:43 AM
  6. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  7. How to sumif with multiple range and single sumrange
    By helpplease! in forum Excel General
    Replies: 4
    Last Post: 11-05-2007, 11:53 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