Very simple calculation in a report

goldenvision

Board Regular
Joined
Jan 13, 2004
Messages
234
Having a bit of a brain melt here. (Well it is Friday !!)

I am trying to run the following calculation, but ot no avail.

=Sum(5-([Payment]))

And instead of getting the results of 5 minus the value in the payment field (which is £1, £2 or £4) I get £36.00

Any clues
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Should it not be this:

=5 - Sum([Payment])
 
Upvote 0
... or this?
=5-[Payment]

This is what you need if you are subtracting EACH payment value from 5. The Sum([Payment]) statement will add ALL values in the Payment field, before subtracting that from 5 -- adn you'll get the same result in every line

Denis
 
Upvote 0

Forum statistics

Threads
1,221,810
Messages
6,162,108
Members
451,743
Latest member
matt3388

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
Back
Top