nyanlynntherazi / zlookup Goto Github PK
View Code? Open in Web Editor NEWGoogle Sheet Fuzzy String Matching Function
License: GNU General Public License v3.0
Google Sheet Fuzzy String Matching Function
License: GNU General Public License v3.0
All details
Hello ZLOOKUP friends,
I tried to implement the function but it does not work at all, the column where the returned values should appear remains empty. I checked the data already. It shouldn't be the case. I also tried to change the threshold and it does not change anything.
I have ZLOOKUP, lev and my function in the same file.
Please find a code snippet below. Is there something wrong in the implementation?
var lastMain = sheet.getLastRow();
var lastPlays = sheetPlays.getLastRow();
// create an array for the data to be looked up (C2 to last row of J column in plays)
var dataLookUpPlays = sheetPlays.getRange(2,3,lastPlays,8).getValues();
// create an array for the data to be searched for
var valuesToSearchPlays = sheet.getRange(2,3,lastMain,1).getValues();
// create an array for the data to be created (plays)
var playsData = sheet.getRange(2,8,lastMain,1).getValues();
// update cells in plays column with data from spreadsheet with plays
for (i=0;i<lastMain;++i){
playsData[i] = ZLOOKUP(valuesToSearchPlays,dataLookUpPlays,7,60);
sheet.getRange(i+2,8).setValue(playsData[i]);
}
Hi there, amazing project, it's been so useful thank you!
I'm wondering if you had any experience with adapting custom functions to work with the ArrayFormula() function?
I've seen this discussed here and have been trying to use the .map method myself, but haven't had any luck yet. I will update if I work anything out!
https://webapps.stackexchange.com/questions/125835/how-to-use-custom-function-with-arrayformula
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.