Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|