+ Reply to Thread
Results 1 to 4 of 4

Sum row values based on horizontal and vertical criteria

  1. #1
    Registered User
    Join Date
    06-20-2017
    Location
    New York, NY
    MS-Off Ver
    2016
    Posts
    5

    Sum row values based on horizontal and vertical criteria

    Hello,

    I am looking to sum values in a row based on a horizontal month range and vertical name range.

    Here is what I am trying to achieve:

    1 2 3 4 5

    Michael $24,000 $36,000 $24,567 $45,000 $36,900
    Jerry $27,000 $39,090 $55,567 $85,000 $39,900
    Sandra $24,000 $36,000 $24,567 $45,000 $36,900
    Michelle $24,000 $36,000 $24,567 $45,000 $36,900

    I want to be able to sum based on the month range.

    For example, If I want to know what the value is for Sandra in months 3-5 ($24,567 + $45,000 + $36,900)
    So everytime I play around with the range it should give me the sum of those values.

    I tried an index match match function but I could only do it for a specific month not a range.

    This was the formula I used : =INDEX(Quota!$A$3:$P$29,MATCH('Summary by Rep'!A7,Quota!$A$3:$A$29,0),MATCH('Summary by Rep'!B4,Quota!$A$3:$P$3,0))

    Any help would be greatly appreciated!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Sum row values based on horizontal and vertical criteria

    You could use SUMPRODUCT for this. For example:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See attached where rather than hardcoding the parameters I've referenced cells with the details in so you can change them easily to update the result.

    BSB
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-20-2017
    Location
    New York, NY
    MS-Off Ver
    2016
    Posts
    5

    Re: Sum row values based on horizontal and vertical criteria

    This works perfectly! Thank you so much!!!!!!!!!!!!!!!

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Sum row values based on horizontal and vertical criteria

    Happy to help.

    BSB

+ 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] INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal
    By beenbee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-02-2021, 04:55 PM
  2. Need help with Countifs that has vertical/horizontal criteria
    By looking_to_improve5 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-14-2018, 07:53 PM
  3. Replies: 5
    Last Post: 10-03-2016, 03:39 AM
  4. Sum with multiple criteria Horizontal and Vertical
    By freqzz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-26-2015, 04:39 AM
  5. [SOLVED] 3 criteria for horizontal and vertical matching
    By mator in forum Excel General
    Replies: 5
    Last Post: 12-24-2014, 07:19 AM
  6. [SOLVED] Converting dataset from vertical to horizontal based on fixed criteria
    By LJH2410 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2014, 10:56 AM
  7. [SOLVED] Dynamic Formula based on two vertical criteria and one horizontal
    By GoGators in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2013, 04:41 PM

Tags for this Thread

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