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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

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,122,363
Messages
5,595,705
Members
414,013
Latest member
tnobbs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top