Counting within a range meeting a range of criteria

bgill

New Member
Joined
Aug 22, 2002
Messages
33
I have imported data from a .prn file and need to count a few different combinations. 1 - I need to count the number of times the number in column A is within a certain range (ie. 500-550). Sometimes the number is on the list more than once but I can only count it one time.
2 - I need to know how many times speciic text shows up in column B related to the range in column A.
Specifically, how many "GNNK"s or "GNND"s (column B) are in the 500 range (column A) or the 600 range or the 700 range, etc.

Here is a short sample of the list:
A B
525 GNNK
528 GNNK
530 GNND
531 GNNK
532 GNNK
532 GNNK
533 GNND
534 GNNK
535 GNND
537 GNNK
539 GNNK
601 GNND
601 GNND
603 GNNK
605 GNNK
607 GNNK
608 GNND
610 GNNK

Please let me know if I can clarify this question. Thank you.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Thank you Brian. I may have entered something wrong but the formula does not seem to be related to the number in column B. It counts the number of times the text appears in column A without regard to the number in column B being <="600". Do you have any other suggestions?
 
Upvote 0
On 2002-08-23 15:59, bgill wrote:
Thank you Brian. I may have entered something wrong but the formula does not seem to be related to the number in column B. It counts the number of times the text appears in column A without regard to the number in column B being <="600". Do you have any other suggestions?

Becky,

Remove the double quotes around 600.

Aladin
 
Upvote 0
Book2.xls
ABCDEFGH
1Field1Field2
2525GNNK
3528GNNK
4530GNND
5531GNNK
6532GNNK
7532GNNK
8533GNNDCountofField2Field2
9534GNNKField1GNNDGNNKGrandTotal
10535GNND500-5993811
11537GNNK600-699358
12539GNNKGrandTotal61319
13601GNND
14601GNND
15603GNNK
16605GNNK
17607GNNK
18608GNND
19610GNNK
20610GNNK
21
Sheet2
 
Upvote 0
Getting closer! Thank you Aladin - your tip worked to get things moving in the right direction.

Mark, your table is PERFECT! I can't see the formulas you entered. Is there any way that you can get them to me?
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top