Results 1 to 8 of 8
Thread: Function (Excel 2000)

20040311, 19:47 #1
 Join Date
 Jun 2003
 Location
 New Jersey
 Posts
 103
 Thanks
 6
 Thanked 0 Times in 0 Posts
Function (Excel 2000)
I have a function question:
I have the following data:
Division Gender ethinicty
33 f w
23 m h
20 f w
33 f b
35 m w
What I need is a count for each division for females and males. Then for each division and gender, how many are "W" etc. For example,
For division 33 we have a count of 2 employees but 1 is "W". They should be two separate functions.
Thanks in advance.

20040311, 19:59 #2
 Join Date
 Feb 2001
 Location
 Weert, Limburg, Netherlands
 Posts
 4,812
 Thanks
 0
 Thanked 0 Times in 0 Posts
Re: Function (Excel 2000)
Consider using Data, Pivot table and pivot chart report.
Jan Karel Pieterse
Microsoft Excel MVP, WMVP
www.jkpads.com
Professional Office Developers Association

20040311, 20:08 #3
 Join Date
 Jun 2003
 Location
 New Jersey
 Posts
 103
 Thanks
 6
 Thanked 0 Times in 0 Posts
Re: Function (Excel 2000)
This isn't an option. They have a specific report format they are accustomed to and it's at least 7 worksheets for the workbook.
Any other ideas?

20040311, 20:25 #4
 Join Date
 Dec 2000
 Location
 Salt Lake City, Utah, USA
 Posts
 9,508
 Thanks
 0
 Thanked 6 Times in 6 Posts
Re: Function (Excel 2000)
It helps if you explain more about the constraints up front. Do these array formulas help? Array formulas need to be entered without the "{}" parens, by using CtrlShiftEnter. The range source references and divisions will have to be expanded as applicable.
<table border=1><td align=right>division</td><td align=center>f</td><td align=center>m</td><td align=center>w</td><td align=center>h</td><td align=center>b</td><td align=center>20</td><td align=center>{=SUM(($A$3:$A$7=$E2)*($B$3:$B$7=$F$1 ))}/td]<td align=center>{=SUM(($A$3:$A$7=$E2)*($B$3:$B$7=$G$1 ))}</td><td align=center>{=SUM(($A$3:$A$7=$E2)*($C$3:$C$7=H$1) )}</td><td align=center>{=SUM(($A$3:$A$7=$E2)*($C$3:$C$7=I$1) )}</td><td align=center>{=SUM(($A$3:$A$7=$E2)*($C$3:$C$7=J$1) )}</td><td align=center>23</td><td align=center>{=SUM(($A$3:$A$7=$E3)*($B$3:$B$7=$F$1 ))}</td><td align=center>{=SUM(($A$3:$A$7=$E3)*($B$3:$B$7=$G$1 ))}</td><td align=center>{=SUM(($A$3:$A$7=$E3)*($C$3:$C$7=H$1) )}</td><td align=center>{=SUM(($A$3:$A$7=$E3)*($C$3:$C$7=I$1) )}</td><td align=center>{=SUM(($A$3:$A$7=$E3)*($C$3:$C$7=J$1) )}</td><td align=center>33</td><td align=center>{=SUM(($A$3:$A$7=$E4)*($B$3:$B$7=$F$1 ))}</td><td align=center>{=SUM(($A$3:$A$7=$E4)*($B$3:$B$7=$G$1 ))}</td><td align=center>{=SUM(($A$3:$A$7=$E4)*($C$3:$C$7=H$1) )}</td><td align=center>{=SUM(($A$3:$A$7=$E4)*($C$3:$C$7=I$1) )}</td><td align=center>{=SUM(($A$3:$A$7=$E4)*($C$3:$C$7=J$1) )}</td><td align=center>35</td><td align=center>{=SUM(($A$3:$A$7=$E5)*($B$3:$B$7=$F$1 ))</td><td align=center>{=SUM(($A$3:$A$7=$E5)*($B$3:$B$7=$G$1 ))</td><td align=center>{=SUM(($A$3:$A$7=$E5)*($C$3:$C$7=H$1) )</td><td align=center>{=SUM(($A$3:$A$7=$E5)*($C$3:$C$7=I$1) )</td><td align=center>{=SUM(($A$3:$A$7=$E5)*($C$3:$C$7=J$1) )</td><td align=center>Total</td><td align=center>=SUM(F2:F5)</td><td align=center>=SUM(G2:G5)</td><td align=center>=SUM(H2:H5)</td><td align=center>=SUM(I2:I5)</td><td align=center>=SUM(J2:J5)</td></table>John ... I float in liquid gardens
UTC 7ąDS

20040315, 18:19 #5
 Join Date
 Jun 2003
 Location
 New Jersey
 Posts
 103
 Thanks
 6
 Thanked 0 Times in 0 Posts
Re: Function (Excel 2000)
Hello,
I tried doing the array but that didn't work either. I am beginning to wonder if my data is the right format. I did try using this formula:
=SUMPRODUCT((Data!N1:N2000=33)*(Data!B1:B333="M")* (Data!M1:M748="ACT")) but for some reason it returns a #N/A. I know the formula is correct because I used it on different data without any problems. Does anyone know why it isn't reading my data? I saved it as a text file and opened it in excel as "General" but that still didn't work. The data is coming from a sequel server.
Thank you.

20040315, 18:29 #6
 Join Date
 Jan 2001
 Location
 South Carolina, USA
 Posts
 7,295
 Thanks
 0
 Thanked 0 Times in 0 Posts
Re: Function (Excel 2000)
The formula is not correct since all arrays used must be of the same size. N1:N2000 has 2000 elements, B1:B333 has 333 and M1:M748 has 748. You need to make them all the same number of cells for this or an array formula to work.
Legare Coleman

20040316, 01:34 #7
 Join Date
 Dec 2000
 Location
 Salt Lake City, Utah, USA
 Posts
 9,508
 Thanks
 0
 Thanked 6 Times in 6 Posts
Re: Function (Excel 2000)
See the attached. Perhaps if you can provide some censored samples of your data, we can see if there is a problem.
John ... I float in liquid gardens
UTC 7ąDS

20040316, 14:15 #8
 Join Date
 Jun 2003
 Location
 New Jersey
 Posts
 103
 Thanks
 6
 Thanked 0 Times in 0 Posts
Re: Function (Excel 2000)
Thank you Legare and John. It worked perfectly! <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23>