fbpx
Search
Close this search box.

Excel Tips Submitted by You [Part 1]

Share

Facebook
Twitter
LinkedIn

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.

Features

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).

To-dos

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

Introduction:

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.

Challenge:

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.

Solution:

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 :
Name Code
1001 rajinikanth
1002 srinivas
1003 vardhan

and the Login Data is starting from Column G in a sheet

Array Formulas - User Session Times

Then The formula for First login :

{=1/MAX((B8=$G$7:$G$15)*($H$7:$H$15<>0)*(1/$H$7:$H$15))}

and the formula for Last Logout :

{=MAX(($G$7:$G$15=B7)*($I$7:$I$15))}

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.

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Excel School made me great at work.
5/5

– Brenda

Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

Weighted Average in Excel with Percentage Weights

Weighted Average in Excel [Formulas]

Learn how to calculate weighted averages in excel using formulas. In this article we will learn what a weighted average is and how to Excel’s SUMPRODUCT formula to calculate weighted average / weighted mean.

What is weighted average?

Wikipedia defines weighted average as, “The weighted mean is similar to an arithmetic mean …, where instead of each of the data points contributing equally to the final average, some data points contribute more than others.”

Calculating weighted averages in excel is not straight forward as there is no built-in formula. But we can use SUMPRODUCT formula to easily calculate them. Read on to find out how.

9 Responses to “Excel Tips Submitted by You [Part 1]”

  1. Jon Peltier says:

    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?

  2. Chandoo says:

    @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.

  3. Jon Peltier says:

    Good point. But then you can filter on custom criteria, like
     
    contains john
    and
    contains smith
     
    which will pick up "John Smith" and "Smith, John"

  4. [...] 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 [...]

  5. MK says:

    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?

    http://dl.getdropbox.com/u/749941/KPIs_PHD.xlsm

  6. Chandoo says:

    @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

  7. Kenneth says:

    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.

Leave a Reply