OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

SOLVED: Getting wrong results with Formula =A2/A1

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
LotsToLearn
General User
General User


Joined: 08 Jun 2010
Posts: 10

PostPosted: Tue Jun 08, 2010 10:20 am    Post subject: SOLVED: Getting wrong results with Formula =A2/A1 Reply with quote

[I've changed the title since I've determined that my suspicions about what is causing the error have proved irrelevant. But I'm still having the problem.]

I had a chart with columns of data and then another column that calculated the percentage:

3
2 66%
1 50%

The file is saved in .xls format. I used the file all year and it worked fine every time. I recently sent it to a colleague and when she sent it back to me with updated numbers, the percentages were all wrong, even though the formula and formatting is correct.

27
5 33% (should be 18.5%)
3 0% (should be 60%)

On her computer, the same file shows the correct percentages.

The only thing that I can think of is that her computer might have been using a different date method, but a) not sure how that would affect percentages, and b) I changed the date method in my preferences with no change in resulting percentages.

Very odd.

Any suggestions?

-JH


Last edited by LotsToLearn on Wed Jun 09, 2010 7:42 am; edited 2 times in total
Back to top
View user's profile Send private message
LotsToLearn
General User
General User


Joined: 08 Jun 2010
Posts: 10

PostPosted: Tue Jun 08, 2010 11:48 am    Post subject: Reply with quote

To be clearer, the formulas used are:
=A2/A1
=A3/A2
Formatting is set to Percent.

Interestingly, if in cell B3, I type the formula "=3/5" it kicks out 60% correctly. So, for whatever reason, it's not reading the values in cells A2 and A3 as 5 and 3 respectively. I checked the formatting on those cells and it's set to Number - General. I retyped the numbers 5 and 3 to make sure there was nothing funny in the data entry.

I'm very confused.
Back to top
View user's profile Send private message
ken johnson
Super User
Super User


Joined: 23 Apr 2009
Posts: 2032
Location: Sydney, Australia

PostPosted: Tue Jun 08, 2010 2:21 pm    Post subject: Reply with quote

Is AutoCalculate on or off? To check go Tools|Cell Contents...
AutoCalculate should be ticked.

Ken Johnson
_________________
If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button).
Back to top
View user's profile Send private message
LotsToLearn
General User
General User


Joined: 08 Jun 2010
Posts: 10

PostPosted: Tue Jun 08, 2010 2:37 pm    Post subject: Reply with quote

AutoCalculate is checked.
Back to top
View user's profile Send private message
LotsToLearn
General User
General User


Joined: 08 Jun 2010
Posts: 10

PostPosted: Tue Jun 08, 2010 2:49 pm    Post subject: Reply with quote

More info.

So, I opened a new file. I put 5 in cell A1 and 3 in cell A2.
In cell B1, I entered =A1 and it resulted in 10.
In cell B2, I entered =A2 and it returned 0.
So, clearly I've changed something such that it's reading the cell value very bizarrely (maybe rounding to the nearest 10). How the hell did I start doing that?
Back to top
View user's profile Send private message
ken johnson
Super User
Super User


Joined: 23 Apr 2009
Posts: 2032
Location: Sydney, Australia

PostPosted: Tue Jun 08, 2010 8:58 pm    Post subject: Reply with quote

Your user profile could be corrupt.
See here for how to reset your user profile..
http://user.services.openoffice.org/en/forum/viewtopic.php?f=74&t=12426#p58403

Ken Johnson
_________________
If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button).
Back to top
View user's profile Send private message
LotsToLearn
General User
General User


Joined: 08 Jun 2010
Posts: 10

PostPosted: Wed Jun 09, 2010 7:42 am    Post subject: Reply with quote

So that worked.
Followed the steps in the provided link and the formulas are still not working correctly in the old file but if I create a new file, the formulas work correctly.
I'm assuming that the old file is somehow still connected to the old user.
I'll delete the user.old folder and see if that resolves all my problems. Regardless, this seems to be fixed for moving forward.
Thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group