Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Chrisnelsonusa
 
Posts: n/a
Default Nested count and vlookups


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

Thanks in advance,

Chris Nelson


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

--
Chrisnelsonusa
------------------------------------------------------------------------
Chrisnelsonusa's Profile: http://www.excelforum.com/member.php...o&userid=24072
View this thread: http://www.excelforum.com/showthread...hreadid=376778

  #2   Report Post  
Biff
 
Posts: n/a
Default

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"
<Chrisnelsonusa.1q7myb_1118070303.9718@excelforu m-nospam.com wrote in
message news:Chrisnelsonusa.1q7myb_1118070303.9718@excelfo rum-nospam.com...

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

Thanks in advance,

Chris Nelson


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

--
Chrisnelsonusa
------------------------------------------------------------------------
Chrisnelsonusa's Profile:
http://www.excelforum.com/member.php...o&userid=24072
View this thread: http://www.excelforum.com/showthread...hreadid=376778



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"