percentage expression in query

isildad

Active Member
Joined
Sep 22, 2004
Messages
325
This is not a good day.
I have a table with two columns
2003
2004

I have a form that I use to populate the table
It has three fields: 2003...2004...and -/+%
The -/+% is a text box I've created and given the expression(I have to thank Gibbs for that)

=([2004]-[2003]/[2003]) formated to "percent" w/zero decimal
so: if I type :
in 2003 the value $10
in 2004 the value $20
in get in +/-% the value +100%

Needing a report with again a calculated "+/-%" I've created a Query based on my table and used the same "expression" but the calculation of the percentage does not work properly. ( I get 1900.00% )

Anyone knows why ?
Thank you.
 

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

isildad

Active Member
Joined
Sep 22, 2004
Messages
325
Just figured it out:

=([2004]-[2003]/[2003]) should be ([2004]-[2003])/[2003]
Still if I'm wrong let me know.
 

texasalynn

Well-known Member
Joined
May 19, 2002
Messages
8,458
right - remember that you need to group what needs to happen first in (). Because math doesn't happen left to right, but on the type of math function. Divide happens before subtraction.

HTH
texasalynn
 

Watch MrExcel Video

Forum statistics

Threads
1,122,207
Messages
5,594,843
Members
413,944
Latest member
3xc3ln00b

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