Sometimes you just have to be pleased with yourself. Today I started back to work and one of the things I really wanted to do was figure out how to make Excel calculate my time correctly on my time sheet so I didn't have to do any manual work calculating anything. Last time I had a nice time sheet but I still had to manually add up the hours I worked each day, and then the hours I worked for the two week period, and then multiply that by my hour rate.
I KNEW that Excel could lessen or eliminate the work for me, but I didn't know how to make it see my time, convert it to a number so I could use that for the adding up of the time worked, and then multiply that out. So I decided if I'm working for another three months, I needed to figure this out.
First thing I did was remove the Lunch column from my spreadsheet and instead have two Start/End time columns. In this way, I am only adding up the pre-lunch and post-lunch hours.
Next, I figured out which time format to use to convert the added to a simple time number without the application adding the AM/PM or anything else.
Finally, and this was the part that took a bit of time, I figured out where in the Help file to find how to convert a time number to a non-time number in a way that I could then use to multiply to get my money due amount based on my hourly rate. It turns out you have to use the following formula:
=(A1-INT(A1))*24*HR
Where "A1" is the field in which the time number is located and "HR" is my hourly rate. This converts the time number into an integer and then multiplies that integer times 24 (hours in a day) and then multiplies that by my current hourly rate. Formatting the cell to give me the results in a dollar figure gives me the number I need for my invoice without me having to do any calculations of my own.
When using Excel or Access, I often find that my main impediment to getting any task done is usually one of language. I don't speak or necessarily know the terms that the particular application wants me to use to ask it questions or perform a task. As my friend and former boss Renee would often comment on, an application, help file, or document is really only as good as its index. If you can't come up with enough ways in which a person will term a given task or item, you will leave someone unable to find the help they seek. I find that Microsoft's documentation is particularly poor at indexing things using terminology I think of to use. So I fail more often than I succeed at finding the help I need even though I may be certain the application can do what I want it to do.
At this point, I only need to enter my start and end times and my total hours worked per day and per week auto-calculate for me, and shows me the dollar figure I need to submit and the dollar figure I need to set aside for taxes.
Now that I have this task accomplished, I can refocus my attention back to the list of documents the company wants me to edit, create, and maintain.
"Take something you love, tell people about it, bring together people who share your love, and help make it better. Ultimately, you'll have more of whatever you love for yourself and for the world." - Julius Schwartz, DC Comics pioneer, 1915-2004
Copyright
All blog posts, unless otherwise noted, are copyrighted to the Author (that's me) and may not be used without written permission.
-
I have played both State of Decay and State of Decay 2: Juggernaut Edition , both zombie survival games, for many years and enjoy the titles...
-
Well over a week ago (probably closer to two weeks, now), I did something to cause my lower back to give me pain. Now, due to RA, I'm in...
-
When I was visiting Costco a while back, one of the trial people had a refreshing new product from Minute Maid: pomegranate lemonade. I like...
August 4, 2009
Subscribe to:
Post Comments (Atom)
Congratulations of the job, as well as understanding how to create a time card! Although I'm pretty darned good at coming up with a "see also" list, I can never find the help I need on my computer!!
ReplyDeleteAnd about the calculus ... well, thanks again for helping me with that aspect of my Stats class :-)
While I've not seen the actual spreadsheet you're using, I'm confused by the ncessity of doing an integer conversion.
ReplyDeleteExcel stores times in a serial number format (the same it uses for dates), so understands a simple mathematical operation on the time. Which you then multiply by 24 to get your number of hours.
So, if I enter a start time of 13:00 (stored as 0.54166666=Jan 1, 1900, 1 PM), and an end time of 15:00 (stored as 0.625=Jan 1, 1900, 3 PM), I just need to subtract the start from the end to get .08 (the number of days).
Note too that I entered it using the colon. There may be an easier way than typing that extra keystroke but I've not been able to find it. Mostly I haven't bothered because I deal with date times coming out of a database.
I agree with what you're saying, Scum, but for whatever reason that refused to work no matter how I tried it. This way works and has no issues, and looks good as well, so I'm a happy guy.
ReplyDelete