Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 577
Default COUNTIF or SUMPRODUCT?

First of all, I would like to say I have found a lot of questions & answers
that have become useful to me in my day to day excel experience. Thanks to
all the posters and the intelligent folks that have the answers! My question
is... I have 2 columns of data, column A A1:A100 =RC44, column B (need to be
less < than 74) count as 1
EXAMPLE:
Column A Column B
RC44 60
RC44 77
RC52 14
RC60 58
RC44 72

If coumn A = RC44 & column B is less than 74 should =1 (or example above is=
2)
Can anyone provide any help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default COUNTIF or SUMPRODUCT?

=sumproduct(--(a1:a100="rc44"),--(b1:b100<74))

Adjust the range, but you can't use the whole column.

Scott wrote:

First of all, I would like to say I have found a lot of questions & answers
that have become useful to me in my day to day excel experience. Thanks to
all the posters and the intelligent folks that have the answers! My question
is... I have 2 columns of data, column A A1:A100 =RC44, column B (need to be
less < than 74) count as 1
EXAMPLE:
Column A Column B
RC44 60
RC44 77
RC52 14
RC60 58
RC44 72

If coumn A = RC44 & column B is less than 74 should =1 (or example above is=
2)
Can anyone provide any help?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default COUNTIF or SUMPRODUCT?

=SUMPRODUCT(--(A1:A100="RC44"),--(B1:B100<74))

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(remove ^^ from email)


"Scott" wrote in message
...
First of all, I would like to say I have found a lot of questions &
answers
that have become useful to me in my day to day excel experience. Thanks to
all the posters and the intelligent folks that have the answers! My
question
is... I have 2 columns of data, column A A1:A100 =RC44, column B (need to
be
less < than 74) count as 1
EXAMPLE:
Column A Column B
RC44 60
RC44 77
RC52 14
RC60 58
RC44 72

If coumn A = RC44 & column B is less than 74 should =1 (or example above
is=
2)
Can anyone provide any help?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 577
Default COUNTIF or SUMPRODUCT?

Thanks for the information, works perfectly!!!

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(A1:A100="RC44"),--(B1:B100<74))

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(remove ^^ from email)


"Scott" wrote in message
...
First of all, I would like to say I have found a lot of questions &
answers
that have become useful to me in my day to day excel experience. Thanks to
all the posters and the intelligent folks that have the answers! My
question
is... I have 2 columns of data, column A A1:A100 =RC44, column B (need to
be
less < than 74) count as 1
EXAMPLE:
Column A Column B
RC44 60
RC44 77
RC52 14
RC60 58
RC44 72

If coumn A = RC44 & column B is less than 74 should =1 (or example above
is=
2)
Can anyone provide any help?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default COUNTIF or SUMPRODUCT?

Try

=SUMPRODUCT((A2:A6="RC44")*(B2:B6<74))
if the value comes as #value click F2 and hit control+shift+enter

based on your five sets of values(a2 to a6 and b2 to b6). check whether
there are any nonprintable characters in your cell entreis.


"Scott" wrote in message
...
First of all, I would like to say I have found a lot of questions &
answers
that have become useful to me in my day to day excel experience. Thanks to
all the posters and the intelligent folks that have the answers! My
question
is... I have 2 columns of data, column A A1:A100 =RC44, column B (need to
be
less < than 74) count as 1
EXAMPLE:
Column A Column B
RC44 60
RC44 77
RC52 14
RC60 58
RC44 72

If coumn A = RC44 & column B is less than 74 should =1 (or example above
is=
2)
Can anyone provide any 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
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Sumproduct, If, Sumif, Countif, Match?? Herman56 Excel Discussion (Misc queries) 0 March 30th 06 01:40 PM
countif more than one sheet/tab and sumproduct BSantos Excel Worksheet Functions 1 February 23rd 06 06:20 PM
countif, sumproduct mg New Users to Excel 7 July 1st 05 10:26 PM
Using COUNTIF with 2 criteria - SUMPRODUCT? Mike R. Excel Worksheet Functions 2 February 24th 05 05:57 AM


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