

Related: INDEX formula – INDEX + MATCH formulas Notice that we refer M4 to fetch earliest Enroute DTS for M5. From second call number onwards, we use an approximate MATCH method like below.We find the first call’s earliest Enroute DTS using regular VLOOKUP method as mentioned above.Why bother with exact lookups when an approximate one would do? That is logic behind this approach.Īssuming the call numbers are listed in M4 onwards, On a production data set, this approach could mean disaster. On my sample data of 300,000 rows, the VLOOKUP approach took more than 2 minutes. While VLOOKUP is easier than MINIF and gives us the answer we want, it too is not scalable. Should fetch the earliest Enroute DTS for a call number in M4. Now, VLOOKUP should fetch earliest Enroute DTS. Well, what if we sort the calls table by call number and Enroute DTS? We needed earliest value of Enroute DTS, not the first value. We can use VLOOKUP to return first occurrence of Enroute DTS for a given call number. This means when you want to calculate earliest Enroute DTS for all the 300,000 calls using MINIF, you can take a very looooong coffee break. E had close to 300,000 calls spread among 400,000 rows in the calls table. While MINIF formula is a simple & elegant solution to this problem, it is not scalable. Related: Excel MAXIF & MINIF formulas – explained We can add an additional check to handle blank entries. So quite a few items in are blanks ie 0. Now, because we are using MIN formula, it fetches 0 as the earliest Enroute DTS, which is clearly a wrong answer. This could be because they chose to go on another call or realized that another team is already on the way. Not all units chose to attend a call even after taking it. While this formula is technically correct, Mr. He was implementing an array formula to fetch the earliest enroute time using MIN and IF formulas.Īssuming a call number is listed in cell H4, we can fetch earliest enroute time using below MINIF formula. Let’s review each of these techniques and see which ones are easy, fast and accurate ( ie awesome) MIN IF formula INDEX + approximate MATCH on sorted data table.VLOOKUP exact match on sorted data table.MIN IF formula to find the minimum time among all for a particular call number.We can use a variety of techniques to calculate the earliest enroute time. Calculating earliest enroute time – so many ways to get there In the next article, we will analyze response times by various dimensions to understand the trends better. In this article, we will explore ways to calculate these values using various Excel techniques.
ENROUTE 3 MACROS HOW TO
E’s email was about how to calculate the earliest Enroute DTS and corresponding Onscene DTS values.
ENROUTE 3 MACROS SERIES
Please join our Analytics Email Newsletter to get all three parts of this series and information about 50 Ways to Analyze Data program. In this series of articles, let’s analyze fairly complex and large data set to derive insights. I want to share the process, techniques and visualizations you can use to analyze any business data with a case study. We are re-opening enrollments in to the 50 ways to analyze data program in two weeks (on 10th of May, 2017, Wednesday). Put on your helmets, cause this is going to be mind blowingly awesome. We are going to learn about writing better lookups, pivot tables, power pivot and optimization. Today let’s take up this problem as a case study and understand various methods to solve it. The problem?įinding the first responded team is tricky. E wanted to findout which team responded the first. So a single call can have several such dispatches. Whenever police get a call for help, multiple teams can respond to the call and go to the location. E works at a police department in California and as part of his work, he was looking at calls received by police. Over the weekend, I got an email from Mr.
