Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default COUNTIF with various criteria

I am using the following formulat to get the number of Boys from London
between the ages of 5 and 12.

=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=512),--($H$3:$H$986="London"))

I must have done something wrong because I am not getting anything that
makes sense.

Can someone help please?

Thank you
--
NitaMax
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default COUNTIF with various criteria

Try this:
=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=5),--($F$3:$F$986<=12),--($H$3:$H$986="London"))

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"NitaMax" wrote in message
...
I am using the following formulat to get the number of Boys from London
between the ages of 5 and 12.

=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=512),--($H$3:$H$986="London"))

I must have done something wrong because I am not getting anything that
makes sense.

Can someone help please?

Thank you
--
NitaMax



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default COUNTIF with various criteria

Well, for one thing, this portion makes no sense: --($F$3:$F$986=512)

Those values that are equal to 5 are by definition not greater than
12. What are you trying to do with that?

Dave

On Oct 2, 3:15 pm, NitaMax wrote:
I am using the following formulat to get the number of Boys from London
between the ages of 5 and 12.

=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=512),--($H$3:$H$986="London*"))

I must have done something wrong because I am not getting anything that
makes sense.

Can someone help please?

Thank you
--
NitaMax



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default COUNTIF with various criteria

It is coming up with a total greater than the number of people I have.
--
NitaMax


"Ron Coderre" wrote:

Try this:
=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=5),--($F$3:$F$986<=12),--($H$3:$H$986="London"))

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"NitaMax" wrote in message
...
I am using the following formulat to get the number of Boys from London
between the ages of 5 and 12.

=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=512),--($H$3:$H$986="London"))

I must have done something wrong because I am not getting anything that
makes sense.

Can someone help please?

Thank you
--
NitaMax




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default COUNTIF with various criteria

I want the boys from London aged between 5 and 12.

I tried and failed so far.
--
NitaMax


"Dave F" wrote:

Well, for one thing, this portion makes no sense: --($F$3:$F$986=512)

Those values that are equal to 5 are by definition not greater than
12. What are you trying to do with that?

Dave

On Oct 2, 3:15 pm, NitaMax wrote:
I am using the following formulat to get the number of Boys from London
between the ages of 5 and 12.

=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=512),--($H$3:$H$986="London-"))

I must have done something wrong because I am not getting anything that
makes sense.

Can someone help please?

Thank you
--
NitaMax






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default COUNTIF with various criteria

I tried the formula. It is giving me the correct answer. Are you sure you
entered it properly?

"NitaMax" wrote in message
...
It is coming up with a total greater than the number of people I have.
--
NitaMax


"Ron Coderre" wrote:

Try this:
=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=5),--($F$3:$F$986<=12),--($H$3:$H$986="London"))

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"NitaMax" wrote in message
...
I am using the following formulat to get the number of Boys from London
between the ages of 5 and 12.

=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=512),--($H$3:$H$986="London"))

I must have done something wrong because I am not getting anything that
makes sense.

Can someone help please?

Thank you
--
NitaMax






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default COUNTIF with various criteria

I did a cut and paste. When doing the total for boys and girls I still end
up with a total greater than I expect.
--
NitaMax


"Wondering" wrote:

I tried the formula. It is giving me the correct answer. Are you sure you
entered it properly?

"NitaMax" wrote in message
...
It is coming up with a total greater than the number of people I have.
--
NitaMax


"Ron Coderre" wrote:

Try this:
=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=5),--($F$3:$F$986<=12),--($H$3:$H$986="London"))

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"NitaMax" wrote in message
...
I am using the following formulat to get the number of Boys from London
between the ages of 5 and 12.

=SUMPRODUCT(--($D$3:$D$986="B"),--($F$3:$F$986=512),--($H$3:$H$986="London"))

I must have done something wrong because I am not getting anything that
makes sense.

Can someone help please?

Thank you
--
NitaMax






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
CountIf with 2 criteria possible? duketter Excel Discussion (Misc queries) 1 May 24th 07 08:34 PM
Countif with Two Criteria ForSale Excel Worksheet Functions 2 August 23rd 06 04:04 AM
Countif W/ 2 Criteria carl Excel Worksheet Functions 2 May 3rd 05 10:33 PM
Countif using format criteria not number criteria? Rumbla76 Excel Worksheet Functions 1 April 20th 05 05:38 AM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM


All times are GMT +1. The time now is 10:35 AM.

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

About Us

"It's about Microsoft Excel"