How to send structured request to google sheets api? - node.js

In the official googleapi library, the get method accepts only parameters in the form of "Data! A1: D4", where Data is the name of the sheet, A1: D4 is the selection range. But how to send a request for a selection, for example by cell value or by max / min value?
I know for sure that Google has a structured query language sq, which is similar to sql. I even found examples of such requests in the 2 and 3 versions of the library.

I asked a similar question to yours a while ago, and figured out the answer. However, I believe that Google will be deprecating the sq parameter feature after first quarter of 2020. You will need to conform to method they use in API v4.
Retrieve a range of rows from Google Spreadsheet using list-based feed API and "sq" parameter

Related

Entity detection details with Google DialogFlow

I implemented a bot with IBM's Watson Assistant to solve and provide solution hints to a Sudoku puzzle provided the input matrix. I'm in the process of re-implementing this with Google DialogFlow ES. For hints you can ask for the value in a cell by row and column or you can ask if a the value in a given cell is x. The bot can handle both cardinal and ordinal numbers. Because the input can come row first or column first and can be asked with the possible cell value first (is 5 the value in the first row last column) or last (is the answer to penultimate column row 5 6) I need to know where the in the input text the entity was detected in order to determine the order of the entities. The Assistant API gives me this information, but I've been unable to determine how to get this info from the DialogFlow API. Is there a way to get this?
After a pretty thorough investigation, I've concluded that Google DialogFlow will identify an entity, but will not return information regarding where the entity was found in the text response. I think this is a pretty serious limitation.

Excel/GSheets count unique versus reoccuring values in dynamic list

So I have a large data set of webinar conference attendees - about 30k+ rows. I need to write a function (either in Excel or Google Sheets) to determine if each participant is a first time or returning attendee. The data set is sorted chronologically by event from oldest to most recent. Let's use the simplified version below to better illustrate the business case here.
Check out the simple sample set here.
I considered using named ranges for each of the webinar sets and searching to see if the user exists in that range but given the scale and various webinar attendee sizes that would be tough. I also thought about index-matching the various attendees but because the number of attendees per event is so variable (anywhere from 5 to 500) that too would be frivolous. I feel like I might be missing a relatively simple solution here - please assist! Thanks!
Have a try on below formula. It will work both on excel and google sheet.
=IF(COUNTIF($B$2:$B2,B2)>1,"Returning","New")
If you need to show N/A for first web inner then use below formula.
=IF(A2="A","N/A",IF(COUNTIF($B$2:$B2,B2)>1,"Returning","New"))

Parsing url,hashtags out of twitter text

I have already extracted all the tweets in csv file, I want to seperate twitter text from hashtags and urls, so far I have serarated the hashtags in excel using
Data -> Text to Column
First I don't know how to separate urls using this method
Second is there a better way to do that? All the online links are separating both things at the time of scrapping
TEXT
Learned a new concept today : metamorphic testing. http:/t.co/0is1IUs3aW
variant identification in pooled DNA using R http:/t.co/4PQfUaU
Meta-All: a system for managing metabolic pathway information http:/t.co/2PfJXUxq2X
Here is what it should look like
TEXT URL
Learned a new concept today : metamorphic testing. http:/t.co/0is1IUs3aW
variant identification in pooled DNA using R http:/t.co/4PQfUaU
Meta-All: a system for managing metabolic pathway information http:/t.co/2PfJXUxq2X
Right now both the text and url are in one column I want to put them in different columns
Extract the URL from A2: =MID(A2,FIND("http",A2),500)
The rest from A2: =MID(A2,1,FIND("http",A2)-1)
I would use a simple set of formulas.
=find()
=left()
=Right()
Here are the formula's I used
Here are the results of those formulas
Basically, the find() formula allows you to find where the ""Http:" is in your string. Left() allows you to print() everything to the left of that. Right() lets you get everything to the right.

Google Docs / Excel : Extracting the top selection based on two parameters

Good Afternoon,
I was browsing on how to use various excel functions such as vlookup or similar to vlookup and was fortunate enough to find the following page.
Extracting the top 5 maximum values in excel
Is it possible to use a similar formula to create a list of the top people using two parameters? For example, using a similar set of data but added a third column for level. I would want the formula to find the top 15 members based on one parameter then another 7 based on a second set of parameters without allow copies in the 22 person list that is generated.
This link is the google spreadsheet. I hope this allows members to copy paste to attempt to answer this question.
https://docs.google.com/spreadsheets/d/1XtvCHpKLSup1weQ3zQNl6E9utupGOGYVIUxhaq4EgnA/edit#gid=749714188
Thank you again.

Using COUNTIF/SUMPRODUCT

I have a worksheet that I am trying to make more automated by providing users with updates, however I am having difficulty with getting a formula to work.
I am using a semi-large table (over 32 columns of information, 1,500 rows) but really only want to focus in on 2 columns for this issue. In column C I have the dates that a service order has been requested and in column D I have information that populates when a confirmation of the request is sent (if no request is sent, then it is blank). My hope is to be able to create a message box that alerts when the workbook opens and displays the number of order requests that are within 2 weeks of today that have not yet received a confirmation.
So far, it looks like my best option is to have hidden cells elsewhere that do the heavy lifting with formulas and then to display the values within a messagebox using a Workbook_Open event. I have been able to get a formula to display the number of requests that fit my time window:
=SUMPRODUCT((Table5[Date]>=TODAY())*(Table5[Date]<=TODAY()=14))
And this appears to be capturing the numbers that I need, however I am having difficulty integrating the second component that I need: whether or not a reply was sent. So far, my attempts at including some form of an AND qualifier within the formula has returned an error... I am hoping to be able to quantify within the formula something along the lines (logically) of this:
=IF(Table5[Reply]="" AND Table5[Date]>=TODAY()+14, SUMPRODUCT)
I know that the above won't work, but I am wondering if anyone has any pointers on how to modify this so that it can include both factors?
Many thanks!
Assuming you are looking at dates that are today and up to two weeks in the future, and that the Reply column is blank "" for those dates, then these formula will work for you:
Excel 2007 or higher:
=COUNTIFS(Table5[Date],">="&TODAY(),Table5[Date],"<="&TODAY()+14,Table5[Reply],"")
Backwards compatible:
=SUMPRODUCT(--(Table5[Date]>=TODAY()),--(Table5[Date]<=TODAY()+14),--(Table5[Reply]=""))

Resources