1. ## 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.

2. ## Re: Function (Excel 2000)

Consider using Data, Pivot table and pivot chart report.

3. ## 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?

4. ## 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 Ctrl-Shift-Enter. 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>

5. ## 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.

6. ## 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.

7. ## 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.

8. ## 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>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•