Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

Need Help: Multiple Criteria

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris McKenzie - 02 May 2008 23:44 GMT
I have a list of urinalysis tests that I've just been told needs to be
differentiated by male and female. Instead of going back through and trying
to figure out which donor is male and female, I've decided to determine the
count based on the gender of the collector (since the collector has the be
the same gender as the donor and there are far fewer collectors than donors),
but I would like to create a formula so I do not have to manually change the
formula whenever staff leave or come on. They also have to be part of our
Program (marked with an "x") and not a Random. So I have my main chart:

A (Donor)                B (Collector)              C. (Program (X) or
Random (Blank)
A1. Donor #1           B1. Collector #1         C1. X
A2. Donor #2           B2. Collector #1         C2.
A3. Donor #1           B3. Collector #2         C3. X      
A4. Donor #3           B4. Collector #3         C4. X
Down to 699

So then I have colums:
D. Staff                   E. Gender
D1. Collector #1       E1. Male
D2. Collector #2       E2. Male
D3. Collector #3       E3. Female
Down to 30

So, basically, I want to find a count of the total number of tests of males,
based on the gender of the collector.

So, something like =SUMPRODUCT(--(B1:B699={What...?}),--(C1:C699="X")). If
anyone could help with the formula to slide into the first part, I would
appreciate it, since it would save a lot of work. Or if you could let me know
if I'm completely off base and offer suggestions, thanks!
Pete_UK - 03 May 2008 00:14 GMT
It would be a bit simpler if you were to insert a new column D and put
this formula in D1:

=VLOOKUP(B1,E$1:F$30,2,0)

Copy this down, and it will fill column D with Male or Female.

Then your counting formula can be:

=SUMPRODUCT(--(D1:D699="Male"),--(C1:C699="X"))

to count the males, and an obvious change for the females.

Hope this helps.

Pete

On May 2, 11:44 pm, Chris McKenzie
<ChrisMcKen...@discussions.microsoft.com> wrote:
> I have a list of urinalysis tests that I've just been told needs to be
> differentiated by male and female. Instead of going back through and trying
[quoted text clipped - 27 lines]
> appreciate it, since it would save a lot of work. Or if you could let me know
> if I'm completely off base and offer suggestions, thanks!
Chris McKenzie - 05 May 2008 07:38 GMT
I didn't think of that. Thank you very much.

> It would be a bit simpler if you were to insert a new column D and put
> this formula in D1:
[quoted text clipped - 46 lines]
> > appreciate it, since it would save a lot of work. Or if you could let me know
> > if I'm completely off base and offer suggestions, thanks!
Pete_UK - 05 May 2008 10:18 GMT
You're welcome, Chris - thanks for feeding back.

Pete

On May 5, 7:38 am, Chris McKenzie
<ChrisMcKen...@discussions.microsoft.com> wrote:
> I didn't think of that. Thank you very much.
>
[quoted text clipped - 50 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.