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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to exclude values of 100 from total?

Status
Not open for further replies.

MaddiMond

Technical User
Mar 28, 2005
76
US
I have a control field in a report footer: Sum([Margin%])/[CountOfData}

I want to exclude values of Margin% = 100 from the summation, but I don't know how I can exclude it and integrate it into the above formula.

Thanks,

Maddi
 
Maddi
Have you tried an IIf expression?

Something such as...
IIf([Margin%]= 100,"",Sum([Margin%])/[CountOfData])

Or maybe
Sum([Margin%]<>100)/[CountOfData])

Tom
 
Try something like:
Sum([Margin%]*Abs([Margin%]<>100))/[CountOfData}

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top