+ Reply to Thread
Results 1 to 9 of 9

Sumif / index / match / vlookup / hlookup

  1. #1
    Registered User
    Join Date
    09-25-2015
    Location
    Louisiana
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Sumif / index / match / vlookup / hlookup

    I over complicate things. Need help.

    Data tab with the name of each department listed 12 times (1 for each month Jan - Dec)

    I have a combobox and many other things going on in the file but this one little thing is seeming difficult. Attached is a sample of what I'm looking at.

    I want to sum the all of the cells in Data tab for each column if it matches cell A4 (Dept) and if it matches the GL account # for revenue and expense accounts. Formula would be in column D of first tab in sample file attached. I've tried research and little bit of everything.

    Any help would be greatly appreciated!
    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,189

    Re: Sumif / index / match / vlookup / hlookup

    in D10 and copy down

    =SUMPRODUCT((Data!$C$6:$AL$9)*(Data!$C$2:$AL$2='Income Stmt'!$A$4)*(Data!$A$6:$A$9='Income Stmt'!$A10)*(Data!$B$6:$B$9='Income Stmt'!$B10)*(Data!$C$4:$AL$4<=EOMONTH(TODAY(),0)))

    NOTE: I changed dates to date format (01/01/2016) etc and formatted as "mmm".

    Compares date against last day of "TODAY()" i.e. current month

  3. #3
    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,189

    Re: Sumif / index / match / vlookup / hlookup

    See attached file
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-10-2014
    Location
    New Jersey
    MS-Off Ver
    2010 & 2013
    Posts
    276

    Re: Sumif / index / match / vlookup / hlookup

    Hello,

    Use this formula in column D as an array formula. Make sure there are {} around the formula by hitting ctrl+shift+enter:

    Please Login or Register  to view this content.
    Or see attached:
    Data Sample for jkle4596.xlsx
    Last edited by Teblol; 01-22-2016 at 01:16 PM.

  5. #5
    Registered User
    Join Date
    09-25-2015
    Location
    Louisiana
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Re: Sumif / index / match / vlookup / hlookup

    Awesome thank you! I need it to sum up all of the columns that match the department. Basically for every revenue or expense account sum up Jan through Dec as opposed to bound by today's date. I removed the = of column B part where the revenue or expense name will be...matching the account # sufficed.

    I'll try to work with what you gave me later in the day. Boss just gave me a deadline.

  6. #6
    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,189

    Re: Sumif / index / match / vlookup / hlookup

    Amended as you require:

    =SUMPRODUCT((Data!$C$6:$AL$9)*(Data!$C$2:$AL$2=$A$4)*(Data!$A$6:$A$9=$A10)*(Data!$B$6:$B$9=$B10))

  7. #7
    Forum Contributor
    Join Date
    10-10-2014
    Location
    New Jersey
    MS-Off Ver
    2010 & 2013
    Posts
    276

    Re: Sumif / index / match / vlookup / hlookup

    Sorry I didn't see the date part. Please see attached. This should include everything you need. Let me know if you need anything else.

    Data Sample for jkle4596.xlsx

  8. #8
    Registered User
    Join Date
    09-25-2015
    Location
    Louisiana
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Thumbs up Re: Sumif / index / match / vlookup / hlookup

    Very nice! I was just able to get back to this project a few minutes ago! I initially thought SUMPRODUCT was the formula needed for the way I have my data tab set up and had tried it for this particular column but obviously I didn't get it right.

    Thank you very much. The system generated reports here are not the best so I've been creating my own since I first started in 2015. Thanks to this forum as I've received some help that has been very beneficial. I now have given myself more work as my reports are now required of me every month. Thank you again.

  9. #9
    Registered User
    Join Date
    09-25-2015
    Location
    Louisiana
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Re: Sumif / index / match / vlookup / hlookup

    Ok I'm sorry but with the 900 columns and 300 rows this is slowing the data loading when scrolling through the combobox list. I can usually scroll through the 80 items in my drop down list almost flawlessly and this sumproduct seems to be the culprit. Any idea on maybe a SUMIFS in an array between 2 dates?

+ 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. Index, Match, Vlookup, Hlookup or what?
    By ovgarcia24 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-22-2014, 07:07 PM
  2. [SOLVED] Index, Match, Vlookup, Hlookup help needed
    By Gemma_10 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2013, 01:05 PM
  3. Vlookup with Hlookup or Index with Match?
    By brad_x81 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-08-2013, 06:40 AM
  4. Vlookup, HLookup, Index, Match, oh my! Help me.
    By ryanl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2013, 09:29 PM
  5. Vlookup/hlookup/match/index?
    By margggggg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 07:46 PM
  6. [SOLVED] Search in Table vlookup / Hlookup or INDEX - MATCH command
    By dalaie in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-13-2012, 07:42 AM
  7. [SOLVED] Vlookup & Hlookup at same time - Why is this Index+Match formula not working
    By fabrice.usa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2012, 06:46 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