+ Reply to Thread
Results 1 to 5 of 5

INDEX, MATCH and COUNTIFS

  1. #1
    Registered User
    Join Date
    11-23-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    54

    INDEX, MATCH and COUNTIFS

    Hi
    I have seen an earlier thread on this, but it doesn't quite answer what I need. I have spreadsheet where I need to summarize values of specific criteria. I tried a PivotTable, but to add in all names means that I have to enter these in separate lines in the resourcing sheet, and that then interferes with any sorting of the data. I have tried doing something similar using COUNTIFS, but I can't seem to find something that will allow me to use the Sector as an initial filter (which would have been the slicer on a pivot table).

    What I want is to count occurrences of specific products for each named PPM, but by sector. Once I have the formula right I can then replicate this for all other job roles.

    Without the Sector complication this works quite well using COUNTIFS, but I've got completely stuck trying to add in the sector criteria.

    The COUNTIFS formula is as follows:-
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I've also attached a file, so that you can more easily see what I'm trying to do, I hope!

    Thanks in advance if anyone has any suggestions
    Attached Files Attached Files

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

    Re: INDEX, MATCH and COUNTIFS

    b5=COUNTIFS(ResTbl[[#All],[PPM]],B$4,ResTbl[[#All],[Component]],$A5,ResTbl[[#All],[Sector]],$B$1)
    is this you are looking for
    Samba

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

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: INDEX, MATCH and COUNTIFS

    Hi all- @1953CAG, in your sample workbook, the value in B1 is not a valid sector. Make sure you select something you can actually find.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  4. #4
    Registered User
    Join Date
    11-23-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    54

    Re: INDEX, MATCH and COUNTIFS

    Hi nflsales

    Many thanks, this is perfect. I've just added an IF statement around it so that I can show all results if the sector is left blank and it works perfectly. Hugely grateful, and I was so nearly there, I should have just been a bit more confident!
    Thanks again, really appreciate the help.

  5. #5
    Registered User
    Join Date
    11-23-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    54

    Re: INDEX, MATCH and COUNTIFS

    Ah! I knew I'd miss something when I annonymised the spreadsheet. That sector was an original and should have been deleted from the cell.

+ 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. Countifs (and index match in it) for a horizontal payroll data
    By muraterguden in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2017, 01:46 PM
  2. Using INDEX, MATCH, and COUNTIFS to dissect survey results
    By gramdaman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2017, 04:12 PM
  3. [SOLVED] INDEX MATCH MATCH but with COUNTIFS??
    By hilton426 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2017, 09:47 AM
  4. Complex function using Index, Match, Countifs, Closest Date -HELP!-
    By Vend1301 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-17-2015, 08:57 PM
  5. Countifs, index, match help wanted
    By DawitX in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-18-2015, 12:45 PM
  6. Countifs, Index and match is not working together
    By vinod2802 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-03-2015, 08:06 AM
  7. Countifs Index Match
    By Keelin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-16-2014, 08:38 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