Using the MAP function in google sheets with a custom function with a single formula
About this lesson
@redtailfanschool In this short video I demonstrate how to use the MAP function in a google sheet. In this case we are using a custom function (Mileage) on a sheet. The problem I was trying to solve is having a single formula in the sheet header row to calculate the mileage between two cities. ={"Mileage"; MAP($G$2:$G, $H$2:$H, $I$2:$I, LAMBDA(start, finish, rt, IFERROR(IF(rt = "Yes", mileage(start, finish) * 2, mileage(start, finish)),)))} The MAP formula allows me to set the three variables in a single formula.
Original Description
@redtailfanschool In this short video I demonstrate how to use the MAP function in a google sheet. In this case we are using a custom function (Mileage) on a sheet. The problem I was trying to solve is having a single formula in the sheet header row to calculate the mileage between two cities.
={"Mileage"; MAP($G$2:$G, $H$2:$H, $I$2:$I, LAMBDA(start, finish, rt, IFERROR(IF(rt = "Yes", mileage(start, finish) * 2, mileage(start, finish)),)))}
The MAP formula allows me to set the three variables in a single formula.
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Related AI Lessons
⚡
⚡
⚡
⚡
When AI Asks for More Electricity Than a Country Can Imagine
Medium · AI
You Are Not Behind. The World Is.
Medium · AI
Career choice with the advent of AI - pure Computer Science or learn software with a background of core engineering area
Dev.to AI
The AI Hype Cycle: Calm Before the Next Breakthrough?
Medium · Programming
🎓
Tutor Explanation
DeepCamp AI