Go Back  PPRuNe Forums > Misc. Forums > Computer/Internet Issues & Troubleshooting
Reload this Page >

Excel: An annoying little problem.


Notices
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

Excel: An annoying little problem.

Old 26th October 2002 | 17:23
  #1 (permalink)  
Thread Starter
 
Joined: Sep 2002
Posts: 171
Likes: 0
From: UK
Excel: An annoying little problem.

Can't work it out!

In using the SUM formulae.

I am using rows 1 to 60 inclusive. Each item has a value of £30 - the total sum therefore should be £1800 - but it isn't - it is £1770 with the number of items certainly totalling 60!

What can be the problem? Anyone help? Or am I just thick?

The formula I am using is =SUM(D1: D60) I have spaced it because the colon and D make a smilie- how sweet!

Thanks
CaptainFillosan is offline  
Old 26th October 2002 | 20:47
  #2 (permalink)  
 
Joined: Feb 2000
Posts: 776
Likes: 0
From: [edited by PPRuNe Admin]
send me the file.

Email address is [email protected]
What_does_this_button_do? is offline  
Old 27th October 2002 | 01:13
  #3 (permalink)  
 
Joined: Jul 2002
Posts: 233
Likes: 0
From: 40N, 80W
Could one of your 30's be a character 30 and the rest numeric 30's?

The SUM() function would still work, but the character 30 would count as a zero.

I don't have Excel on the computer I am using at the moment, but in Microsoft Works, for instance, numeric values are aligned right by default, and text characters are aligned left by default, so one can detect this kind of error at a glance.

Of course, one CAN align all the cells the same way and hence use technology to shoot oneself (or somebody else) in the foot if you want to.

Hope this helps!

Last edited by PickyPerkins; 28th October 2002 at 02:28.
PickyPerkins is offline  
Old 27th October 2002 | 08:46
  #4 (permalink)  
25 Anniversary
 
Joined: Dec 1998
Posts: 4,282
Likes: 6
From: Escapee from Ultima Thule
Are all of the referenced cells formatted correctly ie as a number, not text?
Tinstaafl is offline  
Old 28th October 2002 | 04:34
  #5 (permalink)  
 
Joined: Jul 2002
Posts: 233
Likes: 0
From: 40N, 80W
On looking at Works again, I see that text characters aligned right (by reformatting) are distinguishable from numeric values (aligned right by default) by the absence of a space to the right of the text characters. So text can normally be detected at a glance even when reformatted right.
______________________________
To summarize:
If all the cells contain numerics the spreadsheet looks like this with a space to the right of the numbers and the sum is correct:


If the A3 cell contains text with default formatting it looks like this and the sum is incorrect:


If the text in A3 is then manually aligned right it looks look like this with no space the right and the sum is still incorrect:


Now of course if you really want to shoot yourself (or somebody else) in the foot you can add a space to the right of the text so that everything lines up nicely. Everthing then looks right but the sum is wrong:


As I said above, this is in Works. Perhaps someone else can check what happens in Excel. Have fun.
PickyPerkins is offline  
Old 28th October 2002 | 20:46
  #6 (permalink)  
Thread Starter
 
Joined: Sep 2002
Posts: 171
Likes: 0
From: UK
Thanks very much indeed. From the answers it was possible to follow it through easily.

All cells were thus 30.00 BUT.............one cell was 30-00.

Bingo! Problem solved.

Thanks again.
CaptainFillosan is offline  
Old 29th October 2002 | 11:46
  #7 (permalink)  
 
Joined: Sep 1998
Posts: 513
Likes: 0
From: Sydney, Australia
Luv your work, Picky. Well done

AA
Ausatco is offline  

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.