Sum Produces Negative Number - I Want Positive (1 Viewer)

statsman

Active member
Local time
Today, 05:37
Joined
Aug 22, 2004
Messages
2,088
What is the format to change the negative to a positive when:

=Sum([Field]="Novice")

Text box in report
 

trucktime

Registered User.
Local time
Today, 03:37
Joined
Oct 24, 2004
Messages
556
Sum

Try this if 'Novice' is the name of the field.

=Sum([Novice])
 

statsman

Active member
Local time
Today, 05:37
Joined
Aug 22, 2004
Messages
2,088
Sorry for not being clear
"Novice" is the condition I want to sum for
-how many records in the specific Field contain the text NOVICE?

Everything works fine except the returned sum is a negative number. There is a formula you can put into the format to return a positive number. I've just forgotten it.

Thanks
 

trucktime

Registered User.
Local time
Today, 03:37
Joined
Oct 24, 2004
Messages
556
Sum

OK, try this:

=Sum(IIf([Field]="Novice",1,0))
 

RV

Registered User.
Local time
Today, 10:37
Joined
Feb 8, 2002
Messages
1,115
statsman said:
"Novice" is the condition I want to sum for
-how many records in the specific Field contain the text NOVICE?

You're using the wrong function.
Use Count.
Add a WHERE clause to count only on your column having value NOVICE.

RV
 

Users who are viewing this thread

Top Bottom