Calculated Fields

reemoe

New Member
Joined
Oct 24, 2005
Messages
41
Hello,

Is one able to use the SUMIF function in a calculated field in an Access report?

Thanks in advance,
Ryan
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Andrew Fergus

MrExcel MVP
Joined
Sep 9, 2004
Messages
5,432
Hi Ryan

The short answer is yes.

If you want to sum a calculated field then you repeat the original formula inside a Sum() function, for example, if your original formula in the calculated field is =[Field1]*[Field2] then the control source for the sum of the calcualted field will be =Sum([Field1]*[Field2]) in the report or section footer.

If you want a conditional sum, then your formula might look like something like this : =Sum(Iif([Field1]>0,[Field1],0))

I trust I understood your question correctly?

Andrew
 

Watch MrExcel Video

Forum statistics

Threads
1,118,722
Messages
5,573,818
Members
412,551
Latest member
soking
Top