+ Reply to Thread
Results 1 to 14 of 14

Having a ton of trouble with this index/match/sumif formula

  1. #1
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Having a ton of trouble with this index/match/sumif formula

    Hi all,

    I am trying to create a formula that will tally the following cells containing text based on the following criteria.
    - Date (or range of dates)
    - Shop
    - Position

    I've been trying to use a SUMIF/COUNTIF with an index/match but i can't seem to get it to work.

    I've attached a sample of the sheet.

    Any help is appreciated.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Having a ton of trouble with this index/match/sumif formula

    Have you tried the SUMIFS function?
    Martin

  3. #3
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Re: Having a ton of trouble with this index/match/sumif formula

    I'm summing cells containing only text, from my understanding, I thought you could only use sumifs for numbers?

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Having a ton of trouble with this index/match/sumif formula

    COUNTIFS then?

  5. #5
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Re: Having a ton of trouble with this index/match/sumif formula

    yes but i dont think i've used it properly. That could be part of the problem.

  6. #6
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Having a ton of trouble with this index/match/sumif formula

    It's not clear were you want the sum to go or the range of data that should be analysed.

    Could you post an example with a manually created tally and some highlighting to show the source data?

  7. #7
    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,209

    Re: Having a ton of trouble with this index/match/sumif formula

    Use COUNTIFS.

    Not sure where the formula should go as there are no obvious calculations in your file.!

  8. #8
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Re: Having a ton of trouble with this index/match/sumif formula

    Hey john,
    What I'm trying to say is to sum the total amount of a specific position, lets say "team lead", for a specific date range in a specific shop, for example "ASSEMBLY S".

  9. #9
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Re: Having a ton of trouble with this index/match/sumif formula

    Sorry, mrice i didn't notice your comment. Here is an idea of what i am looking for (check the 2nd sheet). Still struggling to get it to work, getting frustrated now. -.-
    Attached Files Attached Files

  10. #10
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Having a ton of trouble with this index/match/sumif formula

    Maybe something like

    Please Login or Register  to view this content.
    pasted into B2 on Sheet2?

  11. #11
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Re: Having a ton of trouble with this index/match/sumif formula

    I'm no longer at work so I won't be able to test it, i tried it on my sample sheet, looks accurate. thanks mrice.

  12. #12
    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,209

    Re: Having a ton of trouble with this index/match/sumif formula

    Again not sure if this what you want but try

    in B2 copy down

    =SUMPRODUCT((Sheet1!$C$2:$C$14=Sheet2!$A2)*(Sheet1!$H$2:$BE$14=B$1))

    Similar formulas for C , D

    For E

    =SUMPRODUCT((Sheet1!$C$2:$C$14=Sheet2!$A2)*(LEFT(Sheet1!$H$2:$BE$14,7)=D$1)*(MONTH(Sheet1!$H$1:$BE$1)>=5)*((MONTH(Sheet1!$H$1:$BE$1)<=8)))

    I changed headings to incorporate in formulae.

    See attached (following post!).
    Last edited by JohnTopley; 05-26-2016 at 03:49 AM.

  13. #13
    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,209

    Re: Having a ton of trouble with this index/match/sumif formula

    Sorry .... had problem trying to add attachment.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Re: Having a ton of trouble with this index/match/sumif formula

    Sweet! I got it to work, turns out I had a couple "shops" with the an #N/A in them so it caused by formula not to work. Thanks again everyone, you guys are life savers!

+ 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. Trouble with nested index match formula
    By jamesplant77 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2016, 10:44 AM
  2. [SOLVED] Trouble with Index/Match formula
    By josh_malpas in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-05-2014, 11:15 AM
  3. [SOLVED] Sumif + Index + Match Trouble
    By simple? in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2013, 04:01 PM
  4. Trouble with index/match formula
    By mstar93 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2013, 08:27 PM
  5. Trouble with index and match formula
    By mrggutz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2013, 11:02 PM
  6. Index,match function trouble with formula
    By tuckerbunch in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2013, 06:25 PM
  7. [SOLVED] Trouble with Index and match formula
    By mdot218 in forum Excel General
    Replies: 2
    Last Post: 04-03-2012, 10:41 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