- Users reported multiple errors which are separated by comma, Alt+Enter (same line within the cell) and numbered bullets
- Users committed spelling mistakes (see arrows in Table1)
- A user ID may be repeated in column A

Given this dataset, one may want to "hunt" for specific "keyword Groups" (column E above) in each user remark cell and get meaningful insights. Some questions which one would like to have answers to are:

- How may users reported each type of keyword Group - "How may users used the Unresponsive keyword?". See Pivot Table1 below.
- Which are the keyword Groups that each user reported - "Which are the different keyword groups reported by UserID A004?". See Pivot Table2 below.
- How many users reported each of the different keyword Groups - "How many users reported all 3 problems of Slow, unresponsiveness and crash". See Pivot Table 3 below.
- How may users who used this keyword group also used this keyword group - "How many users who reported Crash also reported Unresponsive?". See Pivot Table 4 below.

This was quite a formidable challenge to solve because of spelling mistakes and multiple keywords reported in each cell. I have solved this problem with the help of Power Query and PowerPivot. You may download my workbook from here.

]]>The objective is to determine the location with highest sales for each product. So for Banana, maximum sale value is 25 and location of maximum sales value is B. Likewise for Orange, maximum sales value is 49 and location of maximum sales value is A. The expected result is:

I have 4 solutions to this problem:

**Advanced Filters**- This is a static solution. For any changes in the source data range, one will have to re-enter the 3 inputs in the Advanced Filter window**Formulas**- This is a semi-dynamic solution. To make it fully dynamic, one will have to write an array formula to first extract all unique product names in a column. The array formula to extract product names in a column can be obtained from here.**Power Query**- This is a dynamic solution. For any changes in the source data sheet, one just has to go to Data > Refresh All**PowerPivot**- This is a dynamic solution. For any changes in the source data sheet, one just has to go to Data > Refresh All

You may download my solution workbook from here.

]]>The objective is to remove duplicates from each cell (disregarding case sensitivity) and standardize the multiple entries with an Alt+Enter in each cell. The expected result is shown in the green table below

I have solved this problem using Power Query a.k.a. Data > Get & Transform in Excel 2016 and higher versions. You may download my solution workbook from here.

]]>The objective is to compute the month wise demand charge for x months ended a certain user defined Year and Month. So, if a user selects the Year as 2018, Month as June and Duration as 9, then the Pivot Table should show month wise demand charge for the 9 months ended June 2018 i.e. from October 2017 to June 2018. Likewise, if a user selects Year as 2018, Month as May and Duration as 3, then the Pivot Table show should month wise demand charge for the 3 months ended May 2018 i.e. March 2018 to May 2018.

You may download my solution workbook from here.

]]>The solution is dynamic for new rows that will be added to the source data Tables. I have solved this problem using Power Query a.k.a. Data > Get & Transform in Excel 2016 and higher versions.

You may download my solution workbook from here.

]]>The objective is to report on the status of each project at the end of each month based on which stage is/was completed in that month. So, if a given project's requirements are completed in January and development completes some time in March, the one would expect the output of the report to show the project's status in **January and February** as "Req" and in March as "Dev" respectively. February should also show "Req" because the next stage was completed only in March (although it may have started in January). If multiple stages complete in one month, then the report should display only the most recently completed stage. So, if Project A completed both Requirements and Development stages in January, the report should show only "Dev" as the stage completed in January.

For the data shared above, the expected result is:

You may download my solution workbook from here.

]]>- There should be no merged and centered cells; and
- Every column should have a unique heading; and
- Every column should have only 1 heading

Here's one dataset which violates all rules mentioned above.

- Headings in row 1 are merged; and
- The headings in row 2 are not unique
- Every column has headings in row 1 and row 2.

To be Pivot Table friendly, this dataset will have to be restructured into a 4 column one - Week, Equipment, Jobsite and Widgets as shown below:

I have achieved the desired result by using Data > Get & Transform (also known as Power Query in earlier versions of MS Excel). The solution is dynamic for new rows and columns added to the data on the Input worksheet - one simple has to go to Data > Refresh All. You may download my solution workbook from here.

In this workbook, there is another example of how one can transform a multi heading dataset into a Pivot Table ready dataset. The primary difference between this and the previous dataset is that there are 2 descriptive columns to the left (as against only one in the previous example).

]]>User |
Location |

AAA | Tokyo |

AAA | Osaka |

AAA | Nagoya |

AAA | Hakone |

AAA | Kyoto |

BBB | Sapporo |

BBB | Nara |

CCC | Tokyo |

CCC | Hakone |

CCC | Osaka |

DDD | Osaka |

DDD | Tokyo |

Customer AAA travelled from Tokyo to Osaka, Osaka to Nagoya, Nagoya to Hakone and Hakone to Kyoto. All locations appear in a single column. To analyse customer travel information very clearly, one may want to rearrange the dataset as follows:

User |
From |
To |

AAA | TOKYO | OSAKA |

AAA | OSAKA | NAGOYA |

AAA | NAGOYA | HAKONE |

AAA | HAKONE | KYOTO |

BBB | SAPPORO | NARA |

CCC | TOKYO | HAKONE |

CCC | HAKONE | OSAKA |

DDD | OSAKA | TOKYO |

I have solved this problem using Power Query. You may download my solution workbook from here.

]]>On this small sample, one may want to identify "Cross and up selling opportunities" i.e. one may want to know which are the Customers that can be approached for selling more products to. So for e.g. one may want to know which Customers have bought only one product so far. A case in point being the Apple Watch - Customer ID 2442 and 428 bought only this product. The other Customers who bought the Apple Watch also bought atleast one more product. Therefore, Cust ID 2442 and 428 could be approached for buying other products as well.

Solving this via conventional Excel formulas and Pivot Tables would prove to be a formidable challenge. I have solved this problem using a Data visualisation software from Microsoft called PowerBI desktop (it can be downloaded free from the Microsoft website). This problem can also be solved in MS Excel using Power Query and Power Pivot.

There are 3 sections in the image below - Table at the top (First Table), slicers at the right and another Table at the bottom (Second Table).

**Interpretation of First Table**

- 1 appearing at the intersection of APPLE TV (row labels) and APPLE TV (column labels) represents that there is 1 customer who bought the APPLE TV
- 1 appeaing at the intersection of APPLE TV (row labels) and MACBOOK AIR (column labels) represents that the 1 customer who bought the APPLE TV also bought the MACBOOK AIR

- 4 appearing at the intersection of APPLE WATCH (row labels) and APPLE WATCH (column labels) represents that there are 4 customers who bought the APPLE WATCH
- 1 appearing in other columns of the same row represents other products which those customers bought
- When one right click's on APPLE WATCH and selects "Drill down", one will be able to see the Customers who bought the other products as well.
- Customer 53 bought the APPLE WATCH, AIRPORT and IPHONE 8S. Customer 123 bought APPLE WATCH, IPHONE X and IPOD
- Customers 2442 and 428 did not buy any other product

**Interpretation of Second Table**

This table shows a list of Customers (and their transaction details) who bought only and only that one product selected by the user in the filter section (see the red oval selection in the image). So these two customers could be approached for selling more products to.

You may download my PBI desktop file from here.

]]>Via a simple Pivot Table, one can determine the lowest bidding vendor per product (part) for any chosen month. However, one may also want to know the names of those vendors for each product (as seen in column G below). Notice, that Vendor 2 and Vendor 3 submitted the lowest bid for Product 1 and therefore both names should appear in the result.

I have solved this problem using PowerPivot and Power Query a.k.a. Data > Get & Transform in Excel 2016. You may download my solution workbook from here.

]]>