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.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Just figured it out:

=([2004]-[2003]/[2003]) should be ([2004]-[2003])/[2003]
Still if I'm wrong let me know.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,215,635
Messages
6,125,945
Members
449,275
Latest member
jacob_mcbride

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