A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Negative numbers and percentages



 
 
Thread Tools Display Modes
  #1  
Old March 6th, 2006, 08:13 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

I have a form that populates a report with a number of respondents and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3 people said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the numbers that are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem to be working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)


  #2  
Old March 7th, 2006, 02:31 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

Hello, Anita,

Apparently you're adding a Boolean field (yes/no), where false = 0 and true =
-1. That's valid, no problem. But when you come up with your sum, such as -3,
add the following line of code:

SumOfQ1good = Abs(SumOfQ1good)

This returns the absolute value of the variable, and it's always positive.
Repeat this code for every Boolean field you're adding.

Hope this helps,

Sam

Anita wrote:
I have a form that populates a report with a number of respondents and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3 people said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the numbers that are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem to be working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)


--
Sam

Message posted via http://www.accessmonster.com
  #3  
Old March 9th, 2006, 04:00 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

I copied that into the Control Source so that my Control Source now read:

=[SumOfQ1good]=Abs([SumOfQ1good])/[CountOfRespondentNumber]

All it gave me were zeros as my percentage. I didn't even try it with my
other Control Source (SumOfQ1good). Is there something else I need to try?

Thanks!
--
Anita


"OfficeDev18 via AccessMonster.com" wrote:

Hello, Anita,

Apparently you're adding a Boolean field (yes/no), where false = 0 and true =
-1. That's valid, no problem. But when you come up with your sum, such as -3,
add the following line of code:

SumOfQ1good = Abs(SumOfQ1good)

This returns the absolute value of the variable, and it's always positive.
Repeat this code for every Boolean field you're adding.

Hope this helps,

Sam

Anita wrote:
I have a form that populates a report with a number of respondents and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3 people said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the numbers that are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem to be working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)


--
Sam

Message posted via http://www.accessmonster.com

  #4  
Old March 9th, 2006, 07:57 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

Try

=Abs([SumOfQ1good])/[CountOfRespondentNumber]

Your expression was comparing
[SumOfQ1good] To Abs([SumOfQ1good])/[CountOfRespondentNumber]
and returning false (0) since the two were probably never equal


"Anita" wrote in message
...
I copied that into the Control Source so that my Control Source now read:

=[SumOfQ1good]=Abs([SumOfQ1good])/[CountOfRespondentNumber]

All it gave me were zeros as my percentage. I didn't even try it with my
other Control Source (SumOfQ1good). Is there something else I need to
try?

Thanks!
--
Anita


"OfficeDev18 via AccessMonster.com" wrote:

Hello, Anita,

Apparently you're adding a Boolean field (yes/no), where false = 0 and
true =
-1. That's valid, no problem. But when you come up with your sum, such
as -3,
add the following line of code:

SumOfQ1good = Abs(SumOfQ1good)

This returns the absolute value of the variable, and it's always
positive.
Repeat this code for every Boolean field you're adding.

Hope this helps,

Sam

Anita wrote:
I have a form that populates a report with a number of respondents and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3 people said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the numbers that
are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem to be
working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)


--
Sam

Message posted via http://www.accessmonster.com



  #5  
Old March 10th, 2006, 04:07 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

John,

Thanks! That fixed the negative in my percentages.

What do I need to change to fix the negative in my number of respondents?
The Control Source on that is:

SumOfQ1good

Thanks!
--
Anita


"John Spencer" wrote:

Try

=Abs([SumOfQ1good])/[CountOfRespondentNumber]

Your expression was comparing
[SumOfQ1good] To Abs([SumOfQ1good])/[CountOfRespondentNumber]
and returning false (0) since the two were probably never equal


"Anita" wrote in message
...
I copied that into the Control Source so that my Control Source now read:

=[SumOfQ1good]=Abs([SumOfQ1good])/[CountOfRespondentNumber]

All it gave me were zeros as my percentage. I didn't even try it with my
other Control Source (SumOfQ1good). Is there something else I need to
try?

Thanks!
--
Anita


"OfficeDev18 via AccessMonster.com" wrote:

Hello, Anita,

Apparently you're adding a Boolean field (yes/no), where false = 0 and
true =
-1. That's valid, no problem. But when you come up with your sum, such
as -3,
add the following line of code:

SumOfQ1good = Abs(SumOfQ1good)

This returns the absolute value of the variable, and it's always
positive.
Repeat this code for every Boolean field you're adding.

Hope this helps,

Sam

Anita wrote:
I have a form that populates a report with a number of respondents and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3 people said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the numbers that
are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem to be
working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)

--
Sam

Message posted via http://www.accessmonster.com




  #6  
Old March 10th, 2006, 04:17 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

Use the ABS function on it. Abs is the ABSolute function which strips off
the negative sign. So
Abs(SumOfQ1Good) should return a positive number

"Anita" wrote in message
...
John,

Thanks! That fixed the negative in my percentages.

What do I need to change to fix the negative in my number of respondents?
The Control Source on that is:

SumOfQ1good

Thanks!
--
Anita


"John Spencer" wrote:

Try

=Abs([SumOfQ1good])/[CountOfRespondentNumber]

Your expression was comparing
[SumOfQ1good] To Abs([SumOfQ1good])/[CountOfRespondentNumber]
and returning false (0) since the two were probably never equal


"Anita" wrote in message
...
I copied that into the Control Source so that my Control Source now
read:

=[SumOfQ1good]=Abs([SumOfQ1good])/[CountOfRespondentNumber]

All it gave me were zeros as my percentage. I didn't even try it with
my
other Control Source (SumOfQ1good). Is there something else I need to
try?

Thanks!
--
Anita


"OfficeDev18 via AccessMonster.com" wrote:

Hello, Anita,

Apparently you're adding a Boolean field (yes/no), where false = 0 and
true =
-1. That's valid, no problem. But when you come up with your sum, such
as -3,
add the following line of code:

SumOfQ1good = Abs(SumOfQ1good)

This returns the absolute value of the variable, and it's always
positive.
Repeat this code for every Boolean field you're adding.

Hope this helps,

Sam

Anita wrote:
I have a form that populates a report with a number of respondents
and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3 people
said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the numbers
that
are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem to be
working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)

--
Sam

Message posted via http://www.accessmonster.com






  #7  
Old March 10th, 2006, 04:32 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

It strips the negative sign, but now it asks me to enter a parameter value.
--
Anita


"John Spencer" wrote:

Use the ABS function on it. Abs is the ABSolute function which strips off
the negative sign. So
Abs(SumOfQ1Good) should return a positive number

"Anita" wrote in message
...
John,

Thanks! That fixed the negative in my percentages.

What do I need to change to fix the negative in my number of respondents?
The Control Source on that is:

SumOfQ1good

Thanks!
--
Anita


"John Spencer" wrote:

Try

=Abs([SumOfQ1good])/[CountOfRespondentNumber]

Your expression was comparing
[SumOfQ1good] To Abs([SumOfQ1good])/[CountOfRespondentNumber]
and returning false (0) since the two were probably never equal


"Anita" wrote in message
...
I copied that into the Control Source so that my Control Source now
read:

=[SumOfQ1good]=Abs([SumOfQ1good])/[CountOfRespondentNumber]

All it gave me were zeros as my percentage. I didn't even try it with
my
other Control Source (SumOfQ1good). Is there something else I need to
try?

Thanks!
--
Anita


"OfficeDev18 via AccessMonster.com" wrote:

Hello, Anita,

Apparently you're adding a Boolean field (yes/no), where false = 0 and
true =
-1. That's valid, no problem. But when you come up with your sum, such
as -3,
add the following line of code:

SumOfQ1good = Abs(SumOfQ1good)

This returns the absolute value of the variable, and it's always
positive.
Repeat this code for every Boolean field you're adding.

Hope this helps,

Sam

Anita wrote:
I have a form that populates a report with a number of respondents
and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3 people
said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the numbers
that
are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem to be
working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)

--
Sam

Message posted via http://www.accessmonster.com







  #8  
Old March 10th, 2006, 09:39 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

John,

I've tried entering:

Abs(SumOfQ1Good)

This takes the negative away, but it then asks for a Parameter Value. I've
even tried to copy the other Control Sources which have the same exact
wording except for the 'good' (it's either 'excellent', 'fair' or 'poor') and
it's fine. It's just this Control Source.

Any other suggestions?

Thanks and have a great weekend!
--
Anita :-)


"Anita" wrote:

It strips the negative sign, but now it asks me to enter a parameter value.
--
Anita


"John Spencer" wrote:

Use the ABS function on it. Abs is the ABSolute function which strips off
the negative sign. So
Abs(SumOfQ1Good) should return a positive number

"Anita" wrote in message
...
John,

Thanks! That fixed the negative in my percentages.

What do I need to change to fix the negative in my number of respondents?
The Control Source on that is:

SumOfQ1good

Thanks!
--
Anita


"John Spencer" wrote:

Try

=Abs([SumOfQ1good])/[CountOfRespondentNumber]

Your expression was comparing
[SumOfQ1good] To Abs([SumOfQ1good])/[CountOfRespondentNumber]
and returning false (0) since the two were probably never equal


"Anita" wrote in message
...
I copied that into the Control Source so that my Control Source now
read:

=[SumOfQ1good]=Abs([SumOfQ1good])/[CountOfRespondentNumber]

All it gave me were zeros as my percentage. I didn't even try it with
my
other Control Source (SumOfQ1good). Is there something else I need to
try?

Thanks!
--
Anita


"OfficeDev18 via AccessMonster.com" wrote:

Hello, Anita,

Apparently you're adding a Boolean field (yes/no), where false = 0 and
true =
-1. That's valid, no problem. But when you come up with your sum, such
as -3,
add the following line of code:

SumOfQ1good = Abs(SumOfQ1good)

This returns the absolute value of the variable, and it's always
positive.
Repeat this code for every Boolean field you're adding.

Hope this helps,

Sam

Anita wrote:
I have a form that populates a report with a number of respondents
and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3 people
said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the numbers
that
are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem to be
working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)

--
Sam

Message posted via http://www.accessmonster.com







  #9  
Old March 13th, 2006, 01:45 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

I'm not seeing what could cause the problem.

Make sure your control is not named SumOfQ1Good
Make sure you have an equals sign before Abs(SumOfQ1Good)
Make sure you haven't misspelled SumOfQ1Good --- This is most often the
cause of a parameter prompt appearing. Often it will be a space within the
name. That is sometimes very difficult for my old eyes to see.

"Anita" wrote in message
...
John,

I've tried entering:

Abs(SumOfQ1Good)

This takes the negative away, but it then asks for a Parameter Value.
I've
even tried to copy the other Control Sources which have the same exact
wording except for the 'good' (it's either 'excellent', 'fair' or 'poor')
and
it's fine. It's just this Control Source.

Any other suggestions?

Thanks and have a great weekend!
--
Anita :-)


"Anita" wrote:

It strips the negative sign, but now it asks me to enter a parameter
value.
--
Anita


"John Spencer" wrote:

Use the ABS function on it. Abs is the ABSolute function which strips
off
the negative sign. So
Abs(SumOfQ1Good) should return a positive number

"Anita" wrote in message
...
John,

Thanks! That fixed the negative in my percentages.

What do I need to change to fix the negative in my number of
respondents?
The Control Source on that is:

SumOfQ1good

Thanks!
--
Anita


"John Spencer" wrote:

Try

=Abs([SumOfQ1good])/[CountOfRespondentNumber]

Your expression was comparing
[SumOfQ1good] To Abs([SumOfQ1good])/[CountOfRespondentNumber]
and returning false (0) since the two were probably never equal


"Anita" wrote in message
...
I copied that into the Control Source so that my Control Source now
read:

=[SumOfQ1good]=Abs([SumOfQ1good])/[CountOfRespondentNumber]

All it gave me were zeros as my percentage. I didn't even try it
with
my
other Control Source (SumOfQ1good). Is there something else I
need to
try?

Thanks!
--
Anita


"OfficeDev18 via AccessMonster.com" wrote:

Hello, Anita,

Apparently you're adding a Boolean field (yes/no), where false =
0 and
true =
-1. That's valid, no problem. But when you come up with your sum,
such
as -3,
add the following line of code:

SumOfQ1good = Abs(SumOfQ1good)

This returns the absolute value of the variable, and it's always
positive.
Repeat this code for every Boolean field you're adding.

Hope this helps,

Sam

Anita wrote:
I have a form that populates a report with a number of
respondents
and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3
people
said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the
numbers
that
are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem
to be
working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)

--
Sam

Message posted via http://www.accessmonster.com









  #10  
Old March 13th, 2006, 02:46 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Negative numbers and percentages

Sigh.... I'm beginning to think these two items are against me....

Now it's giving me 'Error' under both the number of respondents and the
percentage. My control sources a

=Abs([SumOfQ1Good]) - under # of Respondents
=Abs([SumOfQ1Good])/[CountOfRespondentNumber] - under percentage

What should I try next?

Thanks for all of your help with this; I really appreciate it.
--
Anita :-)


"John Spencer" wrote:

I'm not seeing what could cause the problem.

Make sure your control is not named SumOfQ1Good
Make sure you have an equals sign before Abs(SumOfQ1Good)
Make sure you haven't misspelled SumOfQ1Good --- This is most often the
cause of a parameter prompt appearing. Often it will be a space within the
name. That is sometimes very difficult for my old eyes to see.

"Anita" wrote in message
...
John,

I've tried entering:

Abs(SumOfQ1Good)

This takes the negative away, but it then asks for a Parameter Value.
I've
even tried to copy the other Control Sources which have the same exact
wording except for the 'good' (it's either 'excellent', 'fair' or 'poor')
and
it's fine. It's just this Control Source.

Any other suggestions?

Thanks and have a great weekend!
--
Anita :-)


"Anita" wrote:

It strips the negative sign, but now it asks me to enter a parameter
value.
--
Anita


"John Spencer" wrote:

Use the ABS function on it. Abs is the ABSolute function which strips
off
the negative sign. So
Abs(SumOfQ1Good) should return a positive number

"Anita" wrote in message
...
John,

Thanks! That fixed the negative in my percentages.

What do I need to change to fix the negative in my number of
respondents?
The Control Source on that is:

SumOfQ1good

Thanks!
--
Anita


"John Spencer" wrote:

Try

=Abs([SumOfQ1good])/[CountOfRespondentNumber]

Your expression was comparing
[SumOfQ1good] To Abs([SumOfQ1good])/[CountOfRespondentNumber]
and returning false (0) since the two were probably never equal


"Anita" wrote in message
...
I copied that into the Control Source so that my Control Source now
read:

=[SumOfQ1good]=Abs([SumOfQ1good])/[CountOfRespondentNumber]

All it gave me were zeros as my percentage. I didn't even try it
with
my
other Control Source (SumOfQ1good). Is there something else I
need to
try?

Thanks!
--
Anita


"OfficeDev18 via AccessMonster.com" wrote:

Hello, Anita,

Apparently you're adding a Boolean field (yes/no), where false =
0 and
true =
-1. That's valid, no problem. But when you come up with your sum,
such
as -3,
add the following line of code:

SumOfQ1good = Abs(SumOfQ1good)

This returns the absolute value of the variable, and it's always
positive.
Repeat this code for every Boolean field you're adding.

Hope this helps,

Sam

Anita wrote:
I have a form that populates a report with a number of
respondents
and a
percentage (ex. 7 people said 'Excellent' and that's 70%, 3
people
said
'Good' and that is 30%, etc.). The 7, 70, 3 and 30 are the
numbers
that
are
coming out as negatives. The control sources a

For the 3 it's: SumOfQ1good
For the 30% it's: =[SumOfQ1good]/[CountOfRespondentNumber]

I've tried entering the control as
=[SumOfQ1good]/[CountOfRespondentNumber]-1, but it doesn't seem
to be
working.

I also have one line in my report that's not populating at all.

What do I need to do????

Thanks!
Anita :-)

--
Sam

Message posted via http://www.accessmonster.com










 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
show a column of numbers also as percentages captain edward Worksheet Functions 2 April 11th, 2007 09:28 PM
Formating cells to display negative percentages in red fon... Fast fred General Discussion 3 March 10th, 2006 11:59 PM
How to show negative in cell? Brett Romero Worksheet Functions 7 January 9th, 2006 07:11 AM
Change percentages to numbers Anita Worksheet Functions 1 September 3rd, 2005 02:29 AM
Problems caused by numbers formatted as percentages Leslie Worksheet Functions 2 May 8th, 2004 12:46 PM


All times are GMT +1. The time now is 03:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.