Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default "AND" formula help?

A B C D E F G
=<3 4 - 6 7 - 8
1 Joe 2 Joe 2 0 0
2 Joe 3 Lee 1 2 0
3 Lee 5
4 Lee 5
5 Lee 1

I am looking for a formula in E, F and G that will count how many times Joe
and Lee are each under 3, between 4 and 6 and between 7 and 8, by reading
columns A and B. Thank you.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default "AND" formula help?

On May 21, 2:51 pm, TMF in MN
wrote:
A B C D E F G
=<3 4 - 6 7 - 8
1 Joe 2 Joe 2 0 0
2 Joe 3 Lee 1 2 0
3 Lee 5
4 Lee 5
5 Lee 1
I am looking for a formula in E, F and G that will count how many times Joe
and Lee are each under 3, between 4 and 6 and between 7 and 8, by reading
columns A and B.


Assuming that "Joe" and "Lee" are in D1 and D2 respectively (note: I
really think they should be in D2 and D3 if you want the titles "<=3",
"4-6" and "7-8"), try:

E1: =SUMPRODUCT(($A$1:$A$5=D1)*($B$1:$B$5<=3))
F1: =SUMPRODUCT(($A$1:$A$5=D1)*(4<=$B$1:$B$5)*($B$1:$B $5<=6))
G1: =SUMPRODUCT(($A$1:$A$5=D1)*(7<=$B$1:$B$5)*($B$1:$B $5<=8))

Copy E1:G1 to E2:G2.

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
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
conditional formula to show "open" or "closed" SBS Excel Worksheet Functions 6 January 28th 06 01:48 AM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 08:38 PM.

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"