Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Count Cells Mutiple Criteria

I need to know how many cells in Column B meet 3 different results using
multiple criteria using the following as an example:


B D G
7 1.5 1000 1000
8 0.89 0 4583
9 0.31 703 5700
10 0.47 4782 3658
11 2.11 235 6258
12 0.77 10421 1266
13 1.00 9688 2293
14 1.05 5691 6632
15 0.00 0 0
16 0.75 0 1197
17 1.99 172 3848
18 2.52 3984 1930
19 1.25 931 3784
20 0.00 0 5230

For the first result, I need to know how many cells are = or<B7 AND D7 in
cells D8:D20 OR G7 in cells G8:G20

For the second result, I need to know how many cells are between B7 and
<B7*1.1 AND D7 in cells D8:D20 OR G7 in cells G8:G20

For the third result, I need to know how many cells are B7*1.1 AND D7 in
cells D8:D20 OR G7 in cells G8:G20

Thanks Again For Everyone's Help!!!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Count Cells Mutiple Criteria

For your first question, array-enter (enter using Ctrl-Shift-Enter)

=SUM(IF(((D8:D20<=B7)*(D8:D20D7)+(G8:G20G7)*1)0 ,1,0))

For the second, array enter

=SUM(IF(((D8:D20B7)*(D8:D20<(B7*1.1))*(D8:D20D7) +(G8:G20G7)*1)0,1,0))

For the third:

=SUM(IF(((D8:D20(B7*1.1))*(D8:D20D7)+(G8:G20G7) *1)0,1,0))

Note that your language wasn't very specific, so some of the may need to be = and some < should
be <=


HTH,
Bernie
MS Excel MVP


"kjguillermo" wrote in message
...
I need to know how many cells in Column B meet 3 different results using
multiple criteria using the following as an example:


B D G
7 1.5 1000 1000
8 0.89 0 4583
9 0.31 703 5700
10 0.47 4782 3658
11 2.11 235 6258
12 0.77 10421 1266
13 1.00 9688 2293
14 1.05 5691 6632
15 0.00 0 0
16 0.75 0 1197
17 1.99 172 3848
18 2.52 3984 1930
19 1.25 931 3784
20 0.00 0 5230

For the first result, I need to know how many cells are = or<B7 AND D7 in
cells D8:D20 OR G7 in cells G8:G20

For the second result, I need to know how many cells are between B7 and
<B7*1.1 AND D7 in cells D8:D20 OR G7 in cells G8:G20

For the third result, I need to know how many cells are B7*1.1 AND D7 in
cells D8:D20 OR G7 in cells G8:G20

Thanks Again For Everyone's Help!!!



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating only non-empty cells... Jay Excel Worksheet Functions 9 September 22nd 06 03:20 AM
How do I count cells with text but ignore cells with spaces? Husker87 Excel Discussion (Misc queries) 2 September 21st 06 12:31 AM
How to count interstitial blank cells? [email protected] Excel Discussion (Misc queries) 3 April 16th 06 03:53 AM
count cell if value present in every other cell + criteria lrbest4x4xfar Excel Worksheet Functions 2 September 26th 05 01:30 AM
count cells using multiple criteria Alex68 Excel Discussion (Misc queries) 4 May 24th 05 05:26 PM


All times are GMT +1. The time now is 06:49 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"