#1   Report Post  
Jeanette
 
Posts: n/a
Default VLookup

I believe this is a Vlookup, but could be mistaken, my problem is as follows:
I am trying to identify the number of male vs. female in an age range, houw
would I write this in a formula?


Age Gender
5 Female
35 Male
7 Male
15 Female
9 Female


Age ranges are 0 - 9, 10 - 19, 20 - 29, 30 - 39, etc.
  #2   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

Jeanette

here's the first one:

=SUMPRODUCT(--(A1:A10=0),--(A1:A10<=9),--(B1:B10="male"))

Adjust as necessary

Regards

Trevor


"Jeanette" wrote in message
...
I believe this is a Vlookup, but could be mistaken, my problem is as
follows:
I am trying to identify the number of male vs. female in an age range,
houw
would I write this in a formula?


Age Gender
5 Female
35 Male
7 Male
15 Female
9 Female


Age ranges are 0 - 9, 10 - 19, 20 - 29, 30 - 39, etc.



  #3   Report Post  
Jeanette
 
Posts: n/a
Default

Trevor,

can this be a "countproduct" I don't need the sum of their ages, but how
many there are. also are the "- - " IF and IF AND?

"Trevor Shuttleworth" wrote:

Jeanette

here's the first one:

=SUMPRODUCT(--(A1:A10=0),--(A1:A10<=9),--(B1:B10="male"))

Adjust as necessary

Regards

Trevor


"Jeanette" wrote in message
...
I believe this is a Vlookup, but could be mistaken, my problem is as
follows:
I am trying to identify the number of male vs. female in an age range,
houw
would I write this in a formula?


Age Gender
5 Female
35 Male
7 Male
15 Female
9 Female


Age ranges are 0 - 9, 10 - 19, 20 - 29, 30 - 39, etc.




  #4   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

Jeanette

you won't get the sum of their ages. Try it.

Age range Male Female Total
5 Female 0-9 1 2 3
35 Male 10-19 0 1 1
7 Male 20-29 0 0 0
15 Female 30-39 1 0 1
9 Female 40-49 0 0 0
2 3 5


Have a look at the Help for SUMPRODUCT. The "--" just forces a numeric
value.

Regards

Trevor


"Jeanette" wrote in message
...
Trevor,

can this be a "countproduct" I don't need the sum of their ages, but how
many there are. also are the "- - " IF and IF AND?

"Trevor Shuttleworth" wrote:

Jeanette

here's the first one:

=SUMPRODUCT(--(A1:A10=0),--(A1:A10<=9),--(B1:B10="male"))

Adjust as necessary

Regards

Trevor


"Jeanette" wrote in message
...
I believe this is a Vlookup, but could be mistaken, my problem is as
follows:
I am trying to identify the number of male vs. female in an age range,
houw
would I write this in a formula?


Age Gender
5 Female
35 Male
7 Male
15 Female
9 Female


Age ranges are 0 - 9, 10 - 19, 20 - 29, 30 - 39, etc.






  #5   Report Post  
Jeanette
 
Posts: n/a
Default

You are a genius, Im sorry I doubted you! Im sure I will be back with
other questions after some work ;-)

Jeanette

"Trevor Shuttleworth" wrote:

Jeanette

you won't get the sum of their ages. Try it.

Age range Male Female Total
5 Female 0-9 1 2 3
35 Male 10-19 0 1 1
7 Male 20-29 0 0 0
15 Female 30-39 1 0 1
9 Female 40-49 0 0 0
2 3 5


Have a look at the Help for SUMPRODUCT. The "--" just forces a numeric
value.

Regards

Trevor


"Jeanette" wrote in message
...
Trevor,

can this be a "countproduct" I don't need the sum of their ages, but how
many there are. also are the "- - " IF and IF AND?

"Trevor Shuttleworth" wrote:

Jeanette

here's the first one:

=SUMPRODUCT(--(A1:A10=0),--(A1:A10<=9),--(B1:B10="male"))

Adjust as necessary

Regards

Trevor


"Jeanette" wrote in message
...
I believe this is a Vlookup, but could be mistaken, my problem is as
follows:
I am trying to identify the number of male vs. female in an age range,
houw
would I write this in a formula?


Age Gender
5 Female
35 Male
7 Male
15 Female
9 Female


Age ranges are 0 - 9, 10 - 19, 20 - 29, 30 - 39, etc.








  #6   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

Jeanette

Thank you, you're welcome. Thanks for the feedback.

Regards

Trevor


"Jeanette" wrote in message
...
You are a genius, I'm sorry I doubted you! I'm sure I will be back with
other questions after some work ;-)

Jeanette

"Trevor Shuttleworth" wrote:

Jeanette

you won't get the sum of their ages. Try it.

Age range Male Female Total
5 Female 0-9 1 2 3
35 Male 10-19 0 1 1
7 Male 20-29 0 0 0
15 Female 30-39 1 0 1
9 Female 40-49 0 0 0
2 3 5


Have a look at the Help for SUMPRODUCT. The "--" just forces a numeric
value.

Regards

Trevor


"Jeanette" wrote in message
...
Trevor,

can this be a "countproduct" I don't need the sum of their ages, but
how
many there are. also are the "- - " IF and IF AND?

"Trevor Shuttleworth" wrote:

Jeanette

here's the first one:

=SUMPRODUCT(--(A1:A10=0),--(A1:A10<=9),--(B1:B10="male"))

Adjust as necessary

Regards

Trevor


"Jeanette" wrote in message
...
I believe this is a Vlookup, but could be mistaken, my problem is as
follows:
I am trying to identify the number of male vs. female in an age
range,
houw
would I write this in a formula?


Age Gender
5 Female
35 Male
7 Male
15 Female
9 Female


Age ranges are 0 - 9, 10 - 19, 20 - 29, 30 - 39, etc.








  #7   Report Post  
Ragdyer
 
Posts: n/a
Default

Actually, the XL Help file does *not* give too much insight into the way
that SUMPRODUCT is being used today.

A much more extensive explanation can be had at :

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Jeanette" wrote in message
...
You are a genius, Im sorry I doubted you! Im sure I will be back with
other questions after some work ;-)

Jeanette

"Trevor Shuttleworth" wrote:

Jeanette

you won't get the sum of their ages. Try it.

Age range Male Female Total
5 Female 0-9 1 2 3
35 Male 10-19 0 1 1
7 Male 20-29 0 0 0
15 Female 30-39 1 0 1
9 Female 40-49 0 0 0
2 3 5


Have a look at the Help for SUMPRODUCT. The "--" just forces a numeric
value.

Regards

Trevor


"Jeanette" wrote in message
...
Trevor,

can this be a "countproduct" I don't need the sum of their ages, but

how
many there are. also are the "- - " IF and IF AND?

"Trevor Shuttleworth" wrote:

Jeanette

here's the first one:

=SUMPRODUCT(--(A1:A10=0),--(A1:A10<=9),--(B1:B10="male"))

Adjust as necessary

Regards

Trevor


"Jeanette" wrote in message
...
I believe this is a Vlookup, but could be mistaken, my problem is as
follows:
I am trying to identify the number of male vs. female in an age

range,
houw
would I write this in a formula?


Age Gender
5 Female
35 Male
7 Male
15 Female
9 Female


Age ranges are 0 - 9, 10 - 19, 20 - 29, 30 - 39, etc.







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
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 01:35 PM.

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"