Avatar of Ian Bell
Ian Bell
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Count Specific values in an indexed range.

Hi

I would like to count number of specific values.

I have attached a sheet with explanation and sample data.

Many thanks

IanCount specific values.xlsx 

Microsoft ExcelSpreadsheetsMicrosoft Office

Avatar of undefined
Last Comment
Rob Henson

8/22/2022 - Mon
Rob Henson

Not sure what you mean by "within Index column A".

For counting 1:
Fromula in C2 =COUNTIF(F2:U2,1)
For counting 1 - 3 ( do you mean 2 to 3 as you already have 1)
Formula in D2 =COUNTIFS(F2:U2,">"&1,F2:U2,"<="&3)

Copy down as required.
Ian Bell

ASKER
Hi Rob

I would like two separate formulas. ie: the formula in D col should include 1,2 and 3
Can you please add the index A column and place formulas on sheet supplied.
Many thanks
Ian
Ian Bell

ASKER
Not sure if Index is the right term but each range has a separate colored cell
to highlight the range.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Rob Henson

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Ian Bell

ASKER
Here is an example with A col at end of formula
MIN(IF($EM$14:$EM$60000=EM14,$A$14:$A$60000)))

Rob Henson

Sorry, doesn't help, but I think I have worked out what you mean.

Column A has 10 in rows 2 to 6 so need to count F2 to U6 for 1 and 1 to 3
Column A has 20 in rows 7 to 10 so need to count F7 to U10 for 1 and 1 to 3
Column A has 30 in rows 11 to 14 so need to count F11 to U14 for 1 and 1 to 3

No doubt the number of rows per index will change so you want it dynamic.
Ian Bell

ASKER
My apologies Rob for the confusion and also the delay in replying. Just returned from a shopping trip :)
I made a mistake with that index reference. Your formula is perfect
Thanks again for your help;
 
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Rob Henson

No worries, thanks for the feedback.