+ Reply to Thread
Results 1 to 3 of 3

SUM function using MATCH values?

  1. #1
    Registered User
    Join Date
    12-03-2019
    Location
    OKLAHOMA
    MS-Off Ver
    18.1910
    Posts
    1

    SUM function using MATCH values?

    I'm trying to speed up a report i do on a monthly basis. trying to total sales by state but the number of rows my vary from month to month. states are always in order so for instance AL always follows AK.

    is there a way to target a sum function based on my match results?

    For ex. this month AK match returns 2 and Al returns 18 so i know i need the sum of Column J2:J17 but i cant seem to get the a formula for this.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: SUM function using MATCH values?

    You can use a SUMIF (or SUMIFS) function for this - the syntax is:

    =SUMIF(criteria_range, criteria_value, sum_range)

    Your sum_range seems to be J2:J17 from what you have said, but I don't know what range you are using for your states. The criteria_value can refer to a cell which contains a particular state.

    It usually helps if you attach a sample Excel workbook to one of your posts - the yellow banner at the top of the screen gives details of how to do this.

    Hope this helps.

    Pete

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

    Re: SUM function using MATCH values?

    since I worked on something I thought I'd post it even though Pete gave you the basics for the answer.
    something like this...
    =SUMIFS(B2:B13,J2:J13,">="&DATE(2019,10,1),J2:J13,"<"&DATE(2019,11,1),C2:C13,"AL")
    where col B is the data you are summing, J has the dates and C has the states.
    now, you can set up dates into a table and just reference the table for example and you can do the same for the state abbreviations so instead of changing AL for example you can point it at X2 as a possible location for the state table to begin.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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] If all values match to - come back with a result function
    By gpktm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2019, 03:56 AM
  2. Function to match two values one in row, another in column
    By LinaVa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-31-2017, 07:19 AM
  3. [SOLVED] Values through match function
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-13-2013, 02:21 PM
  4. function to match values in 3 columns
    By brichigo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-11-2012, 12:04 PM
  5. using match function for duplicate values
    By enocht in forum Excel General
    Replies: 9
    Last Post: 07-12-2010, 11:11 PM
  6. [SOLVED] Using Match function with duplicate values in an array
    By bj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 12:05 PM
  7. [SOLVED] Using Match function with duplicate values in an array
    By Richard in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM

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