[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
LotsToLearn
General User

Joined: 08 Jun 2010
Posts: 10

 Posted: Tue Jun 08, 2010 10:20 am    Post subject: SOLVED: Getting wrong results with Formula =A2/A1 [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? -JHLast edited by LotsToLearn on Wed Jun 09, 2010 7:42 am; edited 2 times in total
LotsToLearn
General User

Joined: 08 Jun 2010
Posts: 10

 Posted: Tue Jun 08, 2010 11:48 am    Post subject: 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.
ken johnson
Super User

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

 Posted: Tue Jun 08, 2010 2:21 pm    Post subject: 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).
LotsToLearn
General User

Joined: 08 Jun 2010
Posts: 10

 Posted: Tue Jun 08, 2010 2:37 pm    Post subject: AutoCalculate is checked.
LotsToLearn
General User

Joined: 08 Jun 2010
Posts: 10

 Posted: Tue Jun 08, 2010 2:49 pm    Post subject: 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?
ken johnson
Super User

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

 Posted: Tue Jun 08, 2010 8:58 pm    Post subject: 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).
LotsToLearn
General User

Joined: 08 Jun 2010
Posts: 10

 Posted: Wed Jun 09, 2010 7:42 am    Post subject: 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.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
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