SUMPRODUCT Vs. Power Query on Mt. KauKau

Share

Facebook
Twitter
LinkedIn

When faced with tough problems I react in one of three ways

  1. Come up with ingenious solutions
  2. See if a simpler cheat solution is possible
  3. Sit back and ignore

For most problems, I choose 3rd reaction. Occasionally, I rely on 2nd option and very rarely the first one.

When faced with a tricky time sheet summary problem (as outlined below), after initial lethargy I wanted to solve it.

Time sheet summary problem

Imagine some time sheet data as shown below. What is the total time each employee worked?

time-sheet-summary-power-query

The ingenious solutions

Of course, we can whip up a SUMPRODUCT concoction strong enough to knock off Mike Girvin unconscious* for a few milliseconds to answer the question.

As shown on this forum thread, there are several fun, creative and smart ways to answer each employee’s total duration using such complex formulas.

* Stop kidding yourself. Mike’s tougher than SUMPRODUCT.

The smartypants solution

We can cheat by first reshaping the data to something like this.

reshaing-timesheet-data

But how? Simple, we take a saw and chisel to the data. I meant power query of course.

SUMPRODUCT vs. Power Query on Mt. KauKau

Last Friday, I took a wee walk up to Mt. KauKau to enjoy the views and workout my calf muscles. I couldn’t help but share that beautiful moment with you all. So I recorded a video showcasing beautiful views and introducing the problem. Then, I recorded rest of it from the comfort and warmth of my home. So here we go:

Watch it on our YouTube channel.

Download Example Workbook with all the Power Query steps

Click here to download the example workbook. Edit any of the queries to see all the steps. Try replicating them yourself to learn more.

SUMPRODUCT or Power Query – Which one do you prefer?

Let me confess. My first solution to this problem is based on SUMPRODUCT. But that is because I didn’t have Power Query on that computer. But I later tried solving it with PQ and I just love the simplicity and power of that solution. Anytime I am wrangling poorly shaped data, I use Power Query instead of a mashup of formulas.

What about you? Which option do you prefer and why? Please share your thoughts in comments.

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

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
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.

One Response to “Loan Amortization Schedule in Excel – FREE Template”

  1. Ag says:

    The balance formula as given doesnt seem to work on my excel

Leave a Reply