Excel Archives

December 2, 2005

Excel Keyboard Shortcuts for date and time

If you are doing any formulas or VBA programming in excel, you probably know about the now() function which returns the current date and time. The problem with Now() is that it is always changing so often it is easier to simply enter the date you want to use. I used to just use the formula =now() and then cut and paste special.

Fortunately there is a simple keyboard shortcut for doing this which you can use to insert the date and time anywhere you want (even within text).

To insert the current date hold down the CTRL key and then type a semicolon ; (CTRL+;)
To insert the current time hold down the CTRL key and then type a colon : (CTRL+Shift+:)

The correct date and time values will be inserted in the cell you are typing in.

September 21, 2006

Do your own SEO - Using Excel and Grep to read log files

I'm always curious about how you arrived here. It seems that the majority find their way through a search on google. The reason I know this is because I take a look at the log files from my server. If someone got here by clicking on a link somewhere, that referring site shows up in the log. Each log entry looks something like this: - - [21/Sep/2006:14:33:37 -0400] "GET /blog/archives/design/bob-colwell-on-computer-architecture.html HTTP/1.0" 200 12958 " en&lr=" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20060909 Firefox/" "unknown"

We can look at this and see that it the server is configured to write out in "combined log format". There are a few interesting things in this entry (and I'll skip the boring things) The first part is the IP address. Intel owns the IP addresses from to so I'm pretty confident that this is someone at Intel hitting the site. Moving to the right we see the file that was requested. And then skipping further right we see a URL which shows the referring site. In this case a google search for "Bob colwell".

Sometimes the referring URL tells us more. For example: tells us that it wasn't until the tenth page of results that this site showed up for a search on "Theory of Constraints". It also tells us that the person was searching on the German google site. Looking at this tells me that I should probably try harder if my goal is to be a useful and popular site for people looking for information about "Theory of Constraints".

The problem is that there are so many lines in the log file which don't contain referer data, or which tell me that the style sheet was used that it is difficult to pick out the interesting parts. The easiest way for me to do that is to have software do it for me. I use a this process. Save the log file to my computer as a text file. Previously I'd just open it in excel and then filter, but the weekly log is longer than excel can hangle, so the next step is filtering it by using grep. Note: Excel 2007 will solve this limitation by moving to a limit of 1 million rows - but it won't be out until next year) If you are using a mac or linux you can just open a terminal window, but for a windows box you may need to install windows grep or another program. Once you do that simply type something like: grep /search? logfile.txt > searches.txt. This finds all lines containing /search? in the file and then writes them to a file called searches.txt. The > tells it to write the result of the search into the file which comes after it.

That cuts the number of lines down to a manageable number and shows only those which match the characteristics of a search. Almost all search engines use the word "search" in their results, so this will also show yahoo and msn search results as well.

After this, just open the text file in excel. It should recognize it as a text file and open the conversion wizard. The lines are space delimited so check delimited and the space box and then you have all your data in excel to browse through or analyze.

This same technique can be used to filter out any sort of data in the file you like. Just change the parameters you are feeding to grep.

October 26, 2006

Project Scheduling with Excel

For the "I Hate Microsoft Project" crowd some new hope glittered today with a couple of posts on making Project schedules and charts in Excel. The secret is using an xy chart with error bars (my version uses formulas and conditional formatting and can do resource profiling but doesn't look nearly as clean. The post and example files are at Process Trends

Then Dick Kusleika chimed in and added progress lines. His example is here Daily Dose of Excel. A couple other approaches are referenced in his comments as well.

Excel is immensely useful... but it isn't a substitute for a real scheduling tool. Sorry Project haters.

November 16, 2010

VBA returns in Excel 2011 for Mac

One of the things that I missed in the last version of Excel for the Apple Mac was that VBA was dropped. If you read this blog you will know how useful VBA can be for automating a bunch of different things. So when I loaded up Excel 2011 the first thing I did was test out the VBA. Yep, it works.

The rest of the application looks like it got polished up as well and at first glance seems easier to work with than 2008. It doesn't make my fan turn on immediately either, so I'm much happier using it on my old macbook.

About Excel

This page contains an archive of all entries posted to Project in the Excel category. They are listed from oldest to newest.

Construction Management is the previous category.

Microsoft Project is the next category.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.34