+ Reply to Thread
Results 1 to 3 of 3

Sumifs formula to handle vertical and horizontal lines

  1. #1
    Registered User
    Join Date
    04-13-2020
    Location
    Denver, Colorado
    MS-Off Ver
    Office 365
    Posts
    12

    Sumifs formula to handle vertical and horizontal lines

    Hi All,

    I'm having some trouble getting this data to pull correctly.

    Basically, I'm looking to use the sumifs formula to pull the total costs for the month of February by job code. My dilemma is that I'm looking at both horizontal (job codes) and vertical data (months and costs).

    I'm not sure if I need to shorten the job code from 2100.02 - ABC to 2100.02 or if I can leave the full job code in there to get it to pull correctly.

    See attached for the example with the Summary tab as the end goal highlighted in red, and the data tab as the data source.

    Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Sumifs formula to handle vertical and horizontal lines

    you didn't input what you're expecting to see though. my guess is this formula in D5:
    =SUMIFS(INDEX(Data!C:G,,MATCH(B5,Data!$C$5:$G$5,0)),Data!B:B,">="&EOMONTH($C$2,-1)+1,Data!B:B,"<="&EOMONTH($C$2,0))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    04-13-2020
    Location
    Denver, Colorado
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Sumifs formula to handle vertical and horizontal lines

    Thanks so much, that's what I was looking for, didn't know you could add index match to the sumif formula.

+ 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] Sumifs for horizontal, vertical and with multiple range
    By chandu10787 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-16-2017, 06:58 AM
  2. Sumifs for horizontal, vertical and with multiple range
    By chandu10787 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2017, 03:12 AM
  3. Sumifs horizontal vertical
    By Play1234 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-26-2017, 04:31 PM
  4. [SOLVED] SUMIFS(?) I need to sum data using both horizontal and vertical criteria
    By bighandsam in forum Excel General
    Replies: 22
    Last Post: 01-06-2017, 11:31 PM
  5. Sumifs for vertical & horizontal condition
    By rchure in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-14-2016, 12:34 AM
  6. Replies: 3
    Last Post: 09-13-2016, 03:17 PM
  7. SUMIFS (vertical and horizontal with Date range)
    By akul.rkul in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2015, 01:09 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