Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count of seperate objects

Status
Not open for further replies.

sten28

Technical User
Apr 9, 2007
20
AU
I'm having some trouble creating a formula that will Count something as a sub-total.

Here's the scenario:

I have a list of people; Gender is a field. I want to do a count of all people, then do a separate Count of how many Males exist and how many Females exist.

I started by trying a formula where Gender = Male; all that returned was a true/false response so trying to Count based off that formula returned a count of all persons.

I'm quite new to coding formulas in Crystal (I mostly do VB) so sorry if this is an elementary problem! Google hasn't been very helpful :\
 
Write a formula:

I{Gender}="male" then 1 else 0.

Insert a simle sum on this formula. Repeat for female and you are done.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If you have a big enough dictionary, just about everything is a word"
--Dave Barry
 
You could also do it as a crosstab.


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top