Count a range of codes whose ID > 10: COUNTIF with INDEX & MATCH as Criteria?

mateorafa

New Member
Joined
Nov 30, 2014
Messages
2
Hi guys,

Im getting crazy trying the whole weekend to solve this issue. Hope somebody may help!

1) I have a TABLE in which I have 3 main headers:
  • [ID]: Numeric field from 1 to n
  • [CONCEPT]: Text field with the description of each ID
  • Code:
    : Text field with initials that represent each CONCEPT
    [/LIST]
    
    2) In other sheet, I have a [U][B]RANGE[/B][/U] (in a row) with lots of cells , each of those cells containing a different CODE
    
    3) I need a formula (without creating any auxiliary columns or rows) that gives me the number of CODES in that RANGE with ID>10. Something like this: [B]COUNTIF (RANGE of CODES,"CODES whose ID>10")[/B]
    
    4) I have tried combinations of COUNTIF+INDEX+MATCH with no result. Any ideas?
    
    Many thanks in advance!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Welcome to MrExcel.

Does this example help you?


Excel 2010
ABCDEF
1IDCONCEPTCODECode15
21Concept1Code1Code2
36Concept2Code2Code3
411Concept3Code3
516Concept4Code1
61Concept5Code3
723Concept6Code2
811Concept7Code2
916Concept8Code3
Sheet1
Cell Formulas
RangeFormula
F1=SUMPRODUCT(COUNTIFS(Table1[ID],">10",Table1
Code:
,E1:E3))[/XD][/XR][/RANGE]
 
Upvote 0
It worked perfect Andrew, thanks a lot!! :)
I wonder the solution was around sumproduct, but I have still to understand the logic behind the use of this function for these cases
Kind regards!
PD: sorry for the delay in my response, but I was unable to connect to the Internet until now
 
Upvote 0

Forum statistics

Threads
1,223,276
Messages
6,171,139
Members
452,381
Latest member
Nova88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top