Nested count and vlookups

C

Chrisnelsonusa

I have a list of codes that has a number associated with it on th
right. I wish to write an equation that counts the number of codes o
the left that fall within a certain grouping of the numbers on th
right. This does not make much sense as I retype it and try to figur
out a better way to explain it, so I have attached a sample of what
am working on.

Thanks in advance,

Chris Nelso

+-------------------------------------------------------------------
|Filename: Sample.txt
|Download: http://www.excelforum.com/attachment.php?postid=3461
+-------------------------------------------------------------------
 
B

Biff

Hi!

To count how many times the code mileage is less than 15:

With codes in column A and mileages in column B:

=SUMPRODUCT(--(A1:A20="code"),--(B1:B20<15))

To count mileages between ranges: 15 to 50 inclusive:

=SUMPRODUCT(--(A1:A20="code"),--(B1:B20>=15),--(B1:B20<=50))

Biff

"Chrisnelsonusa"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top