+ Reply to Thread
Results 1 to 10 of 10

SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

  1. #1
    Registered User
    Join Date
    09-30-2014
    Location
    Cumbria
    MS-Off Ver
    2013
    Posts
    4

    SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    Hey,

    This to me is a very complicated problem and I have found similiar problems solved on forums but nothing yet that translates and works to my issue.

    I have attached the table so you can see what I am trying to achieve.

    I am trying to record how many times each member has attended in the given range of dates.
    Currently Column C gives me how many times they have attended (i.e. ="Attended" or "Yes"), I would like this to only count the results that the dates fall in between the range given in cells C2 & C3.

    I will keep adding Columns leftmost of D and so INDIRECT() type references might be needed.

    If you need more information then please let me know but I think you should have all the info.

    Thanks

    Adam
    Attached Files Attached Files

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    Try this
    Sumproduct
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Countifs And Sumproduct
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Put both formulas in C4 and drag down..
    Totally Dynamic.. doesn't matter how far you go horizontally..
    check the attached files
    Attached Files Attached Files
    Last edited by Vikas_Gautam; 09-30-2014 at 11:28 PM.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  3. #3
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    Please Login or Register  to view this content.
    You can try this as well.
    Remark: Some cell you will "Attend" or "Attended".
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    see the attached file
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    09-30-2014
    Location
    Cumbria
    MS-Off Ver
    2013
    Posts
    4

    Re: SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    Thanks for all the replies, I found the below formula the best for my use.

    =SUM(COUNTIFS($D$2:$M$2,">="&$C$2,$D$2:$M$2,"<="&$C$3,D4:M4,{"Attend*","Yes"}))
    I now realise I had been so close with a previous attempt but I don't think I'd have got there in the end so thanks.

    Adam

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    What about the adjustable ranges..?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Doing the same job.. ( Non array as well )
    Last edited by Vikas_Gautam; 10-01-2014 at 08:25 AM.

  7. #7
    Forum Contributor
    Join Date
    01-28-2008
    MS-Off Ver
    Excel 365
    Posts
    160

    Re: SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    Can anyone explain when you use SUM(COUNTIFS..., instead of just SUM or instead of just COUNTIFS?
    Thank you.

  8. #8
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    Using only Arrayed Countifs will give an array of {Attend*_Count, Yes_count} having respect to other two ">=" and "<=" conditions..
    So Using sum will total the Attend* and Yes Count..
    which is required by the OP...

    I hope you understand..
    To know more how it works, use FORMULA AUDITING...


    Regards,

  9. #9
    Forum Contributor
    Join Date
    01-28-2008
    MS-Off Ver
    Excel 365
    Posts
    160

    Re: SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    Thank you--that's clear!

  10. #10
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many

    Thanks for the response...

+ 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 function to count my criteria results once
    By superboy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-14-2014, 02:29 PM
  2. Using Index And Match To Return Potential Multiple Results To One Cell
    By jcaynes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2013, 10:41 AM
  3. Using Index Match to return multiple results with very messy data.
    By falkon007 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-30-2013, 12:28 PM
  4. Index match and count results
    By dpatel in forum Excel General
    Replies: 2
    Last Post: 05-27-2011, 06:54 AM
  5. Can Index or Match return multiple results?
    By waverider in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-30-2007, 10:06 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