This week we are celebrating Your Week @ PHD. That means you get to read the excel tips shared by other readers of this blog.
Unhide all the sheets using simple macro by Kat
My single favourite simple macro ever – to fill in the gap that Excel leaves. Unhiding -all- hidden tabs in a workbook at once. I install it in the personal.xls workbook, and save myself hours of clicking.Sub Unhide_All_Sheets() Dim wsSheet As Worksheet For Each wsSheet In ActiveWorkbook.Worksheets wsSheet.Visible = xlSheetVisible Next wsSheet End Sub
A KPI Dashboard using VBA and Charts by David
After learning a whole lot over the past few months from this site and others (so many I can’t even remember right now – but I will make a list soon of where I found things), I constructed a KPI spreadsheet (see link below). This spreadsheet allows our institution to create standardized KPI reports for university consumption.
I attempted to keep the colors muted even though I chose school colors (from the publishing guide) for the actual graph.
The chart is dynamically configured in numerous ways. The user can control the title (via cell entry on left), color of bars (via color of data labels), number format (via number format of the first data cell), and the display and printing of the trend line. The KPI name comes from the sheet, and the vertical axis is determined based on the data (I find the maximum value and divide by 4).
I would like the user to be able to enter new descriptive items via a form with the option to include variables (KPI_Name, KPI_Category, etc.). I would like the user to be able to include more than one chart on a page (some KPIs actually need to track parts of the whole).
I am sure there are more features I will think of as time goes on but I wanted to let others see this and hopefully be able to incorporate it into their/your own work. The file is available here: http://dl.getdropbox.com/u/749941/KPIs_PHD.xlsm. Hopefully I will be starting a blog soon to talk more about what we are doing here with excel and other products.
Using Find Dialog to Solve a Tricky Problem by Christy Lee
On a project I recently worked, we crunched several hundred (about 400) rows of data. The creator of the original document did not have any way to foresee the life this project would take on! So…there was only one field for ‘Name’ which contained the names of the team members for the corresponding step of the overall project.
As the project progressed, an individual may be added to multiple task teams. So, your name might be one of three in four records, one of ten in fifteen records, etc. Also, the team members could be added on the fly…you see how the complications arise quickly! Oh, and the project was run on three continents in four countries….
Each person was responsible for updating their pertinent information. Because of the complexity of that one name cell, filtering and sorting became cumbersome.
Hide all rows except for the header row.
Do a search on your name (fortunately, in about three dozen team members, we had no duplicate last names!)
When the search results dialog comes up, select all of the records (select first, shift+select last)
Go to Format>Row>Show.
Whoo Hoo! There are all (and ONLY) the records that belong to you.
Array Formulas to the Rescue by Rajinikanth
This is the formula to find out Employees first login time and last logout time for the day.
Example : Suppose employee table is starting form Column B
then the table looks like :
and the Login Data is starting from Column G in a sheet
Then The formula for First login :
and the formula for Last Logout :
A Big Warm Lovely Heartfelt Thank you to Kat, David, Christy and Rajinikanth. You are truly wonderful.
Be a part of the “your week” @ PHD
Come, be part of the your week celebrations at PHD. Click here to submit your excel tips. Your tips will be shared with all our readers during this week (May 11-15, 2009)
PS: If you have already shared your tips and not seeing them in this post, don’t worry. I am posting only a few everyday, so yours will be in the next 3 posts.
9 Responses to “Excel Tips Submitted by You [Part 1]”
Regarding Christy's suggestion, instead of using Find, couldn't the data be placed in a List (2003) or Table (2007), or simply in an Autofilter, and sorted/filtered by name?
@Jon, that might work if the column has names in correct order. Christy's problem seems like the names are entered in firstname,lastname or lastname,firstname order and search needs to be done on last name.
Good point. But then you can filter on custom criteria, like
which will pick up "John Smith" and "Smith, John"
[...] Here is the part 1 of the series. [...]
[...] Excel tips submitted by you - Part 1: [...]
[...] last year in May. We got 13 beautiful tips from our readers. You can browse through them here: Part 1, Part 2, Part 3, Part 4 [...]
This link as submitted by David doesn't seem to be the right one. Is it possible to get the correct one as the file seems to be very interesting?
@MK and all.. I have asked David to resend the file to me and he was kind enough to do it. Here is it: http://chandoo.org/img/d/KPIs_PHD.xlsm
Very handy, thank you.
Don't know how often other people run into this, but I had an issue with an exported set of data that left key elements blank if the value was the same as the row above. For example, the "who authorized this change" column on row 89 would be blank if it was the same person who authorized the change on row 88. To fill in all the missing data, just select the entire range, ctrl-g, special, blanks. Now all the blanks in the range are selected. Then on the keyboard hit =, up arrow, then ctrl-enter. Now all the blank fields are pulling the data from the cell above them.