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

Microsoft ExcelSpreadsheetsMicrosoft Office

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

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

Not sure if Index is the right term but each range has a separate colored cell

to highlight the range.

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

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

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
Here is an example with A col at end of formula

MIN(IF($EM$14:$EM$60000=EM14,$A$14:$A$60000)))

MIN(IF($EM$14:$EM$60000=EM14,$A$14:$A$60000)))

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.

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.

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;

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.

No worries, thanks for the feedback.

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.