Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Weird problem with time calculations. Sum won't work. Plus will.

Posted on 2016-09-28
4
Medium Priority
?
35 Views
Last Modified: 2016-09-28
In the attached file, if I try to add up the times using Autosum (A36) I get 0. If I add them up using +, (B2), I can add them up...anyone got any ideas as to what this might be?
odd_time_calculations.xlsx
0
Comment
Question by:agwalsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
ProfessorJimJam earned 2000 total points
ID: 41819524
it is the formatting issue.  the reason it works with + is that any math operation converts the text like value back to numeric and the SUM do not work becuase it ignore the text hence it does not work.

if you select the cells and click into text 2 column and select delimiter and then click finish it will fix the issue and SUM will work.

to confirm that these cells are stored as text, you can put this formula in another cell =ISTEXT(A5)  and it will result true.

if you do not want them converted then use this formula =SUMPRODUCT(--(A5:A9))  that double negatives at the begining will forcefully convert the values in that range inside formula as numbers and then sumproduct will add them.
0
 

Author Comment

by:agwalsh
ID: 41819559
Well, blow me down with a feather. I checked and the text to columns worked beautifully. Thank you.
0
 

Author Closing Comment

by:agwalsh
ID: 41819560
A superb answer to an annoying question...thank you :-)
0
 
LVL 27

Expert Comment

by:ProfessorJimJam
ID: 41819561
you are welcome agwalsh.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question