From the course: Excel: Power Query (Get & Transform)
Unlock the full course today
Join today to access over 23,100 courses taught by industry experts.
Approximate match equivalent of VLOOKUP: Binning - Microsoft Excel Tutorial
From the course: Excel: Power Query (Get & Transform)
Approximate match equivalent of VLOOKUP: Binning
Power Query gives us six joins in the interface and they are helpful when we have exact matches. And that's similar to what we get from XLOOKUP and VLOOKUP. However, XLOOKUP and VLOOKUP have components that will allow us to do approximate matches or assign tiers or categories to data. That's not so easily done in Power Query. So I am going to show you one way that we can get things into tiers. For example, this dataset, we've got all of these tests and then we have a contaminant count. So Test 1 had 29 contaminants found. And then we look over on the right side and we see that the 29 falls between 25 and 75, which would be a pass. Test 7, 152 contaminants found. That's in the danger zone. Let's do this with XLOOKUP. You're getting a bonus here, folks. Right. Equals XLOOKUP, double-click. Look up the 29, comma, look for it in this column, comma, return the result, comma, if not found. I'm not worried about that, comma, match mode. We want exact match our next smaller items. So that's…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Overview of joins in Power Query6m 18s
-
(Locked)
Walk through all six joins13m 29s
-
(Locked)
Joins: Left or right2m 31s
-
(Locked)
Outer join versus XLOOKUP2m 41s
-
(Locked)
Merge with multiple fields3m 24s
-
(Locked)
Approximate match equivalent of VLOOKUP: Binning5m 47s
-
(Locked)
Approximate match equivalent of VLOOKUP: Conditional column3m 4s
-
(Locked)
Cross Join3m 17s
-
(Locked)
-
-
-
-