Kevin Lehrbass
Video 00091 Remove Duplicates with a twist
updated
0:00 Requirements
0:24 Load Data into Power Query load 3 tables
1:24 Requirement Adjustment ‘lamp’ or ‘lamps’ NOT ‘clamps’
1:56 Prep text wrap with spaces, text to lowercase
3:34 Merge tables filters 10000 rows to selected state
4:36 Add SearchWord repeat search words beside rows
5:50 Search words found? function Text.PositionOf
6:39 Filter out rows if search words not found remove rows
7:26 Export rows to Excel sheet
7:44 Create Row Count query group by query counts rows
9:11 Export Row Count query to Excel sheet
In a previous post I used formulas to solve this: myspreadsheetlab.com/partial-match-count-with-a-condition
Do you have another solution? Note that although the array is a bit heavy there are no slow volatile functions used (i.e. indirect). My blog post: myspreadsheetlab.com/largest-number-inside-alphanumeric-string
myspreadsheetlab.com/extract-largest-number-power-query-flash-fill-solutions
00:00 Intro
00:26 Data layout disaster
01:03 Insert table
01:22 Add helper columns
-------------------------
GET & TRANSFORM
02:08 Load table
02:42 Normalize data
03:27 '2ManagerNames' only
04:01 3FINALOUTPUT employees only
04:44 Merge 3FINALOUTPUT & 2ManagerNames
06:47 Export 3FINALOUTPUT to table
Exiting GET & TRANSFORM
-------------------------
07:13 Finally...our simple vlookup!
*****************************
MY POWER QUERY JOURNEY !
www.myspreadsheetlab.com/learning-power-query-get-transform
*****************************
myspreadsheetlab.com/data-disaster-non-normalized-data-in-excel
00:00 challenge explanation
01:00 our options
02:19 Step1 create named range
02:45 Step2 verify assumption
03:36 Step3 which column?
04:50 Step4 which row?
05:31 Step5 binning table
06:07 Step6 manager row
07:55 Step7 employee's manager!
myspreadsheetlab.com/retrieve-1st-code-for-selected-city-when-description-is-not-blank
0:00 Intro
1:10 (a) vlookup array
3:01 (b) index & match array
4:29 (c) lookup
5:18 (d) helper & vlookup
6:03 (e) helper & vlookup (2)
6:50 (f) helper & index match
7:24 (g) index & array
myspreadsheetlab.com/variable-sized-groups-within-each-column-of-data
1) Highlight top x values per column
2) Highlight group green if x % of group numbers are in the top x %
3) Functionality to switch off (1) & (2) above
4) Solution must work with additional columns of data
Conditional formatting in Excel is so powerful and most of the time the rules are easy to create.
00:00 Tacombi.com tacos!!
00:14 Menu orders not normalized
00:46 Our scenario (analyze the data)
01:22 What we need to do (before pivot)
02:42 Solution A array formula etc
04:16 Solution B helper formulas
06:11 Solution C Get & Transform
07:31 Solution D quick and dirty
08:12 Pivot Table samples
08:41 Learn Pivot Tables, Get & Transform
Yes it's possible to dynamically combine data from Excel tables. BUT it's ridiculously difficult. So much easier with Get & Transform (Power Query) !
00:23 Step1 individual number RANK
01:38 Step2 approx MATCH into 12 groups
03:23 Verify results using COUNTIF
04:05 Change array constant into a normal range of numbers in cells
03:23 Verify Results: Groups of 12 numbers?
http://www.myspreadsheetlab.com/video-00174-ranking-values-into-tiers
reddit.com/r/learnexcel/comments/7hqi9k/ranking_into_tiers
00:00 Requirement: drop down list with unique values
01:01 light/simple/dynamic: pick 2
--------------SOLUTIONS----------------------
01:33 Mr Excel: Pivot Table
02:41 Oz du Soleil: Power Query
04:18 Mike Girvin: array formula
05:30 Leila Gharani: formula
06:17 Kevin Lehrbass: helper formulas
09:25 Mike Rempel: auto-complete, pick from drop down
Link to Leila's video: youtu.be/7fYlWeMQ6L8
http://www.myspreadsheetlab.com/video-00171-create-christmas-lights-using-excel-sheets
00:37 Step 1 Hack the match function
01:42 Step 2 Look for a 1 inside of Step 1
02:28 Step 3 Index gives us the answer
03:10 Compare solutions (Deb Kevin Ankur Bill)
Here's my blog post comparing various solutions! http://www.myspreadsheetlab.com/look-for-keywords-inside-of-a-column-of-text-values
00:39 Review of requirements
02:23 Deb's solution
03:04 Step 1 search array
03:55 Step 2 1 divided by search array results
05:10 Step 3 search for a 2 (we'll never find)
05:35 *key concept* Binning
09:10 Step 4 [result_vector] displays answer
Original idea came from Deb's Spreadsheet day challenge
Visit Deb's website and youtube:
http://www.debradalgleish.com
youtube.com/user/contextures
Here's my blog post comparing various solutions! http://www.myspreadsheetlab.com/look-for-keywords-inside-of-a-column-of-text-values
http://www.debradalgleish.com
youtube.com/user/contextures
DEB's ARRAY FORMULA SOLUTION
00:00 Formula puzzle explanation
01:19 Step 1 Look for each 'Customer'
02:33 Step 2 Replace errors with zero
02:58 Step 3 Look for a 1 inside the array
04:48 Step 4 Index gets the 'Code' answer
05:38 My alternative array solution
...I've learned SO much from Deb over the years. Thanks and Happy Spreadsheet Day!
Here's my blog post comparing various solutions! http://www.myspreadsheetlab.com/look-for-keywords-inside-of-a-column-of-text-values
Get Excel file here: http://1drv.ms/1bYwrTa
00:00 3 sloppy datasets
01:10 Should we always normalize data?
02:29 Formulas with sliding ranges!?!?
03:34 Sliding range solution 1
05:26 Sliding range solution 2
06:20 Sliding range solution 3
Get Excel file here: http://1drv.ms/1bYwrTa
00:00 Requirements
01:14 How much data? What is file size?
02:17 Visualize what we want to build
02:34 Step1 Get started using AND function
02:47 Step2 Flag TRUE once per group (above)
03:36 Step3 Flag TRUE once per group (below)
04:08 Step4 All-In-One formula
http://www.myspreadsheetlab.com/video-00165-show-column-header-for-matrix-value
Look for text value in non normalized data, return column header.
00:00 Intro
00:14 Requirements
01:17 Factors to consider
02:08 Solution Comparison Grid
02:25 SOLUTION: Sumproduct or Array
03:06 SOLUTION: Simple helper formulas
06:38 SOLUTION: Normalize, index/match
------------------------------------
Update: I added Get & Transform solution in the Excel file.
Leila Gharani's original video: youtu.be/OJLfPc9YlqE
Leila Gharani's website: http://www.xelplus.com
Oz du Soleil's solution: youtu.be/IwBYEXaOSOk
My blog: http://www.myspreadsheetlab.com/blog
Alternative solution to Mike Girvin's solutions.
00:00 Challenge review
00:26 Mike's solutions!
01:30 My solution: dynamic & easy to explain/audit
01:48 Step 1: Helper column to truncate transaction date
02:10 Step 2: Helper column for every month
02:41 Step 3: Helper columns to calc sales per month & customer
03:33 Step 4: Calc the max of Step 3.
03:50 Review all three solutions.
00:00 Introduction
00:35 Steps 1,2,3,4
02:12 Add your own data
02:28 How close is random 'state' data based on state population?
Read my blog post to see enhanced solution that will allow custom variation of the random data.
http://www.myspreadsheetlab.com/video-00163-creating-a-weighted-random-data-set
00:00 Challenge explanation
00:28 Winning formula
------detailed explanation------
01:24 Step 1 Countif range "A1:H8" is CHESS BOARD
01:35 Step 2 COLOR & PIECES: {"B","W"}&{"P";"N";"B";"R";"Q"}
02:05 Step 3 Create all pieces {"BP","WP";"BN","WN";"BB","WB";"BR","WR";"BQ","WQ"}
03:06 Step 4 CHESS PIECE COUNT {5,5;1,1;2,1;1,1;1,1}
03:42 Step 5 {-5,5;-1,1;-2,1;-1,1;-1,1} - = BLACK, +=WHITE
04:12 Step 6 MULTIPLY PIECE COUNT BY PIECE VALUE {1;3;3;5;9}
04:54 Step 7 {-5,5;-3,3;-6,3;-5,5;-9,9} - = BLACK, +=WHITE
05:00 Step 8 Wrap it with SUM function.
05:08 Changing chess pieces updates formula
Challenge Post: excelxor.com/2014/10/15/shortest-formula-challenge-1-material-gains
Solution Post: excelxor.com/2014/10/22/shortest-formula-challenge-1-results-and-discussion
My Post: http://www.myspreadsheetlab.com/video-00162-excel-formula-calculates-value-of-chess-pieces
00:00 Excelxor.com awesome Excel blog!!
00:08 Challenge intro
00:27 Excelxor solutions
01:20 My solutions
04:41 Make solution more efficient!!!
EXCELXOR: excelxor.com/2014/08/13/single-column-from-many-containing-blanks-1-rows-first
MY POST: http://www.myspreadsheetlab.com/video-00161-extract-matrix-non-blanks-into-1-column
00:42 Normalize & Pivot Table
01:41 Helper & Sumifs
03:31 Array formula
07:39 Review of solutions
Read my post to see additional solutions:
http://www.myspreadsheetlab.com/video-00160-sum-values-from-qualifying-mini-tables-2
0:06 ASK QUESTIONS TO GET MORE DETAILS!
0:41 Remove Duplicates & Sort
1:16 Pivot Table
2:42 Array Formula
3:19 Non Array Formula (helper columns)
8:29 Recap
MY POST
http://www.myspreadsheetlab.com/video-00159-create-unique-and-sorted-text-list
OSCAR CRONQUIST's POST
http://www.get-digital-help.com/2009/05/25/create-a-drop-down-list-containing-only-unique-distinct-alphabetically-sorted-text-values-using-excel-array-formula
DAVID HAGAR's POST
dhexcel1.wordpress.com/2017/04/01/generating-a-sorted-unique-array-in-excel-using-only-formulas-by-david-hager
MIKE GIRVIN's VIDEO
youtu.be/IZZPnsRD90c
00:00 The Problem: super long drop down list
00:34 The Idea: use keyword(s)
00:46 Ask Questions: don't jump into a solution! ask questions!!!
01:30 Solution 1 Pivot Table
03:23 Solution 2 List Search Add-in (from Excelcampus.com)
03:49 Solution 3 Array Formula (very scary!)
06:12 Solution 4 Non Array Helper Formula (not scary)
09:00 Solution 5 Advanced Filter
Let's assume that we can't change the structure of the data.
00:00 Intro
00:08 Challenge description
00:56 Mike's solution
01:05 Bill's solution
01:19 Kevin's solution
00:00 Challenge Intro
01:05 Unstacking Logic (3 steps)
01:36 Kevin's Solution
08:02 Oz's Solution
Get Excel file 00154 here: http://1drv.ms/1bYwrTa
Check out Oz's channel:
youtube.com/user/WalrusCandy
Oz's book: Guerrilla Data Analysis 2nd Edition
http://www.amazon.com/Guerrilla-Analy...
My blog: http://www.myspreadsheetlab.com/blog
Oz's video youtu.be/LBBZ5N1YlwY
Oz's main solution was using the incredible and life altering Excel feature GET & TRANSFORM!
My Video:
00:00 Explain Challenge
02:42 Solution Brute Force
04:19 Solution Formulas Only
07:37 Solution Pivot & Formulas
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
Download my file here: http://1drv.ms/1bYwrTa
00:00 Challenge intro
01:02 Mike Girvin's solutions!
01:13 Pros & Cons
01:51 Are there other solutions?
02:03 Method1: Remove Duplicates (quick & dirty)
03:00 Method2: Helper Column 1/countifs
05:40 Method3: Helper Columns Match & Sumifs
07:55 Method4: Array Formula 1/countifs (no helper)
00:00 Intro
00:07 Custom Format Review
01:17 Requirement
01:35 Solution
02:57 Solution: vba code
04:14 Solution: linked picture
My Post: http://www.myspreadsheetlab.com/video-00151-custom-formats-vba-and-nerds
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
Get Excel file 00150 here: http://1drv.ms/1bYwrTa
00:00 Intro
00:39 Requirement #1 Find feature & Countif
02:24 Requirement #2 intro
03:24 Requirement #2 Using Find feature
05:34 Requirement #2 Dynamic requirement description
06:07 Requirement #2 Dynamic Formula!
09:00 Requirement #2 Dynamic hyperlink!
My Post: http://www.myspreadsheetlab.com/video-00150-sequential-keyword-search-dog-chases-squirrel
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
This is a challenge from Oz du Soleil. We want to dynamically sort text excluding 'A', 'An', 'The' if found at the beginning of the title.
00:00 Intro
00:29 Logic (key idea)
00:38 Oz's Solution
01:59 My high tech solution (array)
04:00 My low tech solution (manual, nor formulas!)
Download Oz's sample workbook:
http://datascopic.net/Kevin-Oz-Titles
Oz's book: Guerrilla Data Analysis 2nd Edition
http://www.amazon.com/Guerrilla-Analy...
Oz's blog: http://datascopic.net
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
Get Excel file 00148 here: http://1drv.ms/1bYwrTa
We need to insert 3 rows after each existing row. Then cascade the number below down to the right.
I show you how to do this without vba or functions (using builtin Excel features like Sort, Goto Special, Fill Series).
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
I created vba code to conditionally insert check boxes.
I give a quick overview of how it works. You can download the file and study the VBA code found in the visual basic editor.
You can definitely learn VBA if you work at it!
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
facebook.com/MySpreadsheetLab-276225542389318
4 method's to show solution steps based primarily on check boxes
Each method has different options.
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
Only 4 steps to wrap existing formulas with Excel's ROUND function.
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
Mike's Files: https://people.highline.edu/mgirvin/excelisfun.htm
My Excel file 00144 EMT1278-1279: http://1drv.ms/1bYwrTa
The solution is so simple! Use Mike's formula, add a rank number beside the search words and sort descending.
The preferred winner is closest to the bottom.
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
(00:00) Intro
(00:15) Quick review of correlation
(01:46) Play "GuessTheCorrelation" game
(03:48) Links to learn more
(04:07) Play around with data to learn!
Kevin Lehrbass
twitter.com/kevinlehrbass
I first saw this challenge via a Bill Jelen (Mr Excel) tweet. The tweet directed me to Bill's free Excel help forum. Several excellent VBA solutions. In this video I explain a formula based solution.
(00:00) Mr Excel forum
(01:03) Requirement Description
(01:40) Array formula tell us how many rows we need
(01:50) Solutions steps
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/video-00142-horizontal-list-to-vertical-list-layered-transpose
(00:00) Audit Formula: =VLOOKUP(B1,INDIRECT(VLOOKUP(A1,Data1!A6:B9,2,FALSE)),2,FALSE)
(00:28) Isolate the difficult part: table_array
(01:15) See the result of the inner vlookup (Sweden's range)
(02:28) Result leads to Sweden's mini range and to favorite sport.
---------now we audit data layout & create an easier solution--------
(03:42) Complex formula due to poor data layout!
(04:04) Hard coded references are dangerous! Leads to errors.
(04:29) Is there a better or safer solution?
(04:33) Add named ranges? Not a good idea.
(06:00) SOLUTION! Normalize data, insert table, add formula.
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
Show the row & column headers for the max values in a range.
(00:00) Original idea from Tom Urtis
(00:10) Requirement explanation
(00:44) HOMEWORK: Why doesn't it work if there are ties?
(01:13) Side note: Four ways to count how many max values
(01:53) SOLUTION EXPLANATION (no massive multi line formula)
Please add your solution as a comment below the video!!!
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
Read my blog post here: http://bit.ly/1hEISfF
A review of Excel's 3D formulas and then some hefty formulas that go beyond the limitations of 3D formulas. Excel formulas can do magic but it does require careful set-up.
(00:11) Data layout
(01:54) Basic 3D range
(03:26) Countif 3D range
(06:46) Countif 3D range with improved sheet toggle
(12:44) Countif 3D range with improved sheet toggle and with dynamic range!
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
http://www.myspreadsheetlab.com/video-00139-beyond-3d-formulas
See how to make an array constant dynamic inside of a vlookup (hard to explain...easier to watch the video and see!)
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com/blog
A 4th way to solve a tedious lookup in Microsoft Excel
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com
My dog Cali has a data nightmare! Yes, this is a dramatization but this really does happen!
1. (00:00) Cali's data problem description
2. (01:05) Step 1 Normalize via ALT D P
3. (01:27) Step 2 Extract data from pivot cache
4. (01:48) Step 3 Delimit data using 'Ctrl' & 'J' not using "-"
5. (02:43) Step 4 Concatenate City & Region, Alt D P
6. (03:16) Step 5 Extract data from pivot cache
7. (03:23) Step 6 Delete row if value is blank. Text to Columns
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
See how Jordan's rank formula uses the rare union operator and avoids a heavy array formula!
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com
Given a value of '354', look for each individual digit inside of cells in a column and add up sales values to the left.
I show you 2 solutions: (a) crazy array formula, (b) step by step helper column approach (much easier to explain)
Idea inspired from Tom Urtis tweet (fuzzy match sum). Shorter alternative array by Zoran Stanojević. Thanks!
00:00 Challenge explanation
02:31 Helper column approach
05:26 Crazy array formula approach!
17:43 Recap
Cheers,
Kevin Lehrbass
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com
Luckily, a quick array formula can solve it !
http://chandoo.org/wp/2015/06/05/how-many-hours-did-billy-work-solve-this
twitter.com/kevinlehrbass
http://www.myspreadsheetlab.com


