PDA

View Full Version : Need formula Help...........go figure....LOL



pboren
2011-08-03, 01:30 AM
I am trying to calculate Job Start Time the Job End Time and get a total (got this part covered) I'm having trouble subtracting 1 hour from jobs that take more than an hour to complete. I will attempt to post a screen cap of the form I am using.

184

Ken Puls
2011-08-03, 06:33 AM
The secret to this is that times are actually just fractions of days. So to get one hour, you just use =1/24. To get minutes, you'd go with =1/24/60.

I've mocked up your sample and attached it here.

Hope it helps!

pboren
2011-08-03, 06:54 AM
Yes...Thanks it did work for the most part, but the total box at the bottom (Total -1 Hour) still does not populate a running total. It just keeps the ########## until the whole
is filled in. Some days we don't do that many calls, so we may not fill up the sheet.
187

Ken Puls
2011-08-03, 07:00 AM
Did you adapt the formula that was in my sample?

In K9 you should enter: =IF(I9>1/24,I9-1/24,I9)

Copy that down the column and you should be sorted.

pboren
2011-08-03, 07:12 AM
No, Sorry, I missed that one. I really do appreciate it man............I have been sweating over this for 3 days. It all works now.

Thanks

Ken Puls
2011-08-03, 07:21 AM
Very cool, glad to be of help. :)

pboren
2011-08-04, 05:30 AM
I found a glitch in the formula..........if the time does not go over an hour, the - 1 hour column shows the total time for the call, not a zero.

Ken Puls
2011-08-04, 05:27 PM
Ah, okay. I built it that way intentionally.

Try this: =IF(I9>1/24,I9-1/24,0)

pboren
2011-08-04, 05:38 PM
Thanks I'll change that.

Now.....how would I lock the formulas so they can't be changed, but others can input their
Data?


Kinda new at this so sorry for all the questions.....

Ken Puls
2011-08-04, 05:47 PM
No problem.

The first thing I would do is create a Style for my data entry cells. (I have a writeup here: http://www.excelguru.ca/node/53) This isn't totally necessary, but sure makes it easier to update later.

When you're creating the style, make sure that you go into "Protection" and uncheck the "Locked" box.

After that, just protect your worksheet, and your users won't be able to edit the protected ranges, just the ones you've allowed.

Some notes to go with this:

The protection can be broken very easily by any guru. I usually just use a blank password to protect the worksheets from accidental damage, but this lets users in if they need to fix a bug.
I always colour my data entry cells. I use a light green and tell my users that "green means go". Every spreadsheet I've built in this company has green data entry cells so that all my users know exactly where they can enter data, and they know never to enter data in a cell that isn't green.
Hope this helps,