LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default Counting values in column B in condition of A

To count the number of occurences for a specific country between the
value 1 to 5, try this
=SUMPRODUCT(--(A2:A100=C2),--(B2:B100=1),--(B2:B100<=5)), where C2 is the
cell to hold the country

to sum the values between 1 to 5 for a country, try this
=SUMPRODUCT(--(A2:A100=C2),--(B2:B100=1),--(B2:B100<=5),B2:B100)
where C2 is the cell to hold the country

In 2007 version, you may try SUMIFS
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"Nrechnitzer" wrote:

I have a sheet with a country column and a column with numbers for each
country. I need a count for a range of values belonging to a specific
country. E.g. "For each country, count all cells with a value between 1 and
5". I am using Excel 2003

 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting two or more values from same column UT Excel Discussion (Misc queries) 1 February 9th 09 02:25 PM
Counting entries in column based on condition in another column RobertR Excel Worksheet Functions 1 February 8th 07 03:54 PM
How to average values based on a condition in another column Ken99 Excel Worksheet Functions 2 November 16th 06 03:38 PM
How to get the values using a condition refering to the other column ramana Excel Worksheet Functions 2 October 28th 05 12:54 PM
Counting Values on a condition madeforidiots Excel Worksheet Functions 1 July 27th 05 12:40 AM


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

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

About Us

"It's about Microsoft Excel"