+ Reply to Thread
Results 1 to 5 of 5

Using INDEX and MATCH to find SUM

  1. #1
    Registered User
    Join Date
    08-24-2021
    Location
    Here
    MS-Off Ver
    365
    Posts
    2

    Post Using INDEX and MATCH to find SUM

    Hi all. Hope you're doing well.

    I'm looking to find out how to use INDEX and MATCH in a way that will sum all the values in Column 2 IF the value in column 1 is equal to the value in cell R2C5. Column 1 will contain duplicate values, but it's corresponding value in Column 2 may vary. e.g. Column 1 contains the name of a county, column 2 contains the count of a specific building in that county. My formula wants to be able to figure out how many overall buildings there are.

    With so many types of building (warehouse, store, residence, utility etc.) the whole array is very large and wanted a quick way to get the sum, if this is possible.

    (numbers have been generated using RANDBTEWEEN 2,999 ;-))

    Thank you.
    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,215

    Re: Using INDEX and MATCH to find SUM

    Try

    =SUMIF(RC[-5]:R[34]C[-5],RC[-1],RC[-4]:R[34]C[-4])

    Or more sensible in my view

    =SUMIF(A2:A36,E2,B2:B36)

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Using INDEX and MATCH to find SUM

    We discourage posing a question in a way that assumes what the answer is going to be. It's better to describe what result you want, like "Get counts of all buildings by county". In this case INDEX and MATCH are rabbit holes.

    Put this formula in F2 and copy down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    08-24-2021
    Location
    Here
    MS-Off Ver
    365
    Posts
    2

    Re: Using INDEX and MATCH to find SUM

    Thank you both so much. You're certainly right about the rabbit hole, I tried to overcomplicate it and your formulas are very elegant.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Using INDEX and MATCH to find SUM

    Thank you for the rep!

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as 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. How to use INDEX MATCH to find all values that match the exact same criteria
    By Clooney003 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-24-2021, 03:08 PM
  2. Index Match to find match date to a range of dates
    By downcrusher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2017, 06:05 PM
  3. Replies: 5
    Last Post: 02-26-2017, 04:46 PM
  4. [SOLVED] Formula to find 2nd Match using Index and 2 Match conditions
    By Cra5h in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-24-2016, 11:52 AM
  5. [SOLVED] index-match where match needs to find substring
    By Machtyn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2012, 11:33 AM
  6. Replies: 5
    Last Post: 02-29-2012, 08:51 PM
  7. [SOLVED] INDEX, FIND.... MATCH????
    By Sonya in forum Excel General
    Replies: 3
    Last Post: 10-27-2005, 04:05 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