google-sheets-formula

Create function in Google sheet to get my external IP address

眉间皱痕 提交于 2020-02-02 03:42:32
问题 I need to create a function in Google sheet to get my external (public) IP address I tried use function =IMPORTXML("https://api.myip.com","//body") , but this method shows diffrint IP address not my external IP address 回答1: The following solution makes use of a custom menu in the Spreadsheets - function onOpen(e) { SpreadsheetApp.getUi() .createMenu('My Menu') .addItem('Get IP', 'getIP') .addToUi(); } function getIP() { SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().appendRow([JSON

How to combine rows with same ID in Google Sheets?

强颜欢笑 提交于 2020-01-30 08:54:04
问题 I'm trying to merge rows with same IDs in Google Sheets From: ID | Category Augur | A1 Augur | A2 Augur | A3 Augur1 | A1 Augur1 | A2 Augur1 | A3 To: ID | Category Augur | A1; A2; A3 Augur1 | A1; A2; A3 Is there an automatic way to do it in Google Sheets itself, using its native functions? 回答1: =ARRAYFORMULA(QUERY({INDEX(QUERY(A1:B, "select A,count(A) where A is not null group by A pivot B", 0), , 1), REGEXREPLACE(TRIM(TRANSPOSE(QUERY(TRANSPOSE(IF(ISNUMBER(QUERY(A1:B, "select count(A) where A

Google Sheets count how many cells contain a specific word / words?

こ雲淡風輕ζ 提交于 2020-01-29 06:34:27
问题 I'm trying to look at all cells in a set of columns/cells to count how many of them contain the word WORDHERE (in this example) I've tried using: =SUM(COUNTIF(A1:A100, "WORDHERE")) However this finds 0 as the cell contains other words/letters/numbers, if the cell only contains WORDHERE it works perfectly. I've tried using several regeexxtract and regexmatch including the actual word as you can see below: =SUM(COUNTIF(A1:A100,REGEXEXTRACT(A1:A100, "WORDHERE"))) But again, it finds 0 matches.

Why importxml and importhtml not working here?

こ雲淡風輕ζ 提交于 2020-01-25 07:04:47
问题 =Importhtml("https://app.neilpatel.com/en/ubersuggest/keyword_ideas?keyword=Food%20Chart&locId=2840&lang=en", "table", 3) =ImportXML("https://app.neilpatel.com/en/ubersuggest/keyword_ideas?keyword=Food%20Chart&locId=2840&lang=en","//div[@class='css-19jz7zx']") I use the above formula to get keywords in my google sheet. but I only get #N/A (Error Imported content is empty) I'm unable to understand what is wrong with my formula, why I'm unable to get data. please help me with this. 回答1: I think

Is there a way to SUMIFS based on a condition for a output range?

寵の児 提交于 2020-01-25 03:14:19
问题 The practical example is: I need to sum the total amount of time worked on a week for specific roles (engineer, etc..) within the company. What I need is to sum a column of values only if the name on the left has a specific role. I could put that role on a column next to the name, but as I would like to keep a history of employee promotion, the role is on a similar week basis table. Following, we can see the workload tab (with the name and column to sum for example, sum column E) and the

Is there a way to SUMIFS based on a condition for a output range?

徘徊边缘 提交于 2020-01-25 03:14:11
问题 The practical example is: I need to sum the total amount of time worked on a week for specific roles (engineer, etc..) within the company. What I need is to sum a column of values only if the name on the left has a specific role. I could put that role on a column next to the name, but as I would like to keep a history of employee promotion, the role is on a similar week basis table. Following, we can see the workload tab (with the name and column to sum for example, sum column E) and the

IMPORTHTML or IMPORTXML to collect data from a site

て烟熏妆下的殇ゞ 提交于 2020-01-24 23:57:10
问题 I have made several attempts to collect the data within this table: The simple ways of the two functions I've commented on, I've tried, but not succeeded. I would like to if anyone knows any other way to collect this data in Google Sheets. Site Link: https://www.onlinebettingacademy.com/stats/team/brazil/operrio-pr/13217#tab=t_squad 回答1: the table you want to scrape is under JavaScript control, therefore, it can't be scraped. all you can get from that site into Google Sheets is: =ARRAY

Query Col1 > today()

亡梦爱人 提交于 2020-01-24 21:47:30
问题 When I use the format that I left below, returns in error, I know that something is missing adjusting in relation to WHERE AND ... But I could not fit to supply the error. I would like some help knowing what I missed. "select Col1,Col2,Col3 where Col1 is not null Order by Col1, Col2 AND Col1 > date'"&TEXT(today()-1,"yyyy/mm/dd")&"'" The date and time for Col1 and Col2 are like this: With this formula, I hope I can filter the imported data only for those that have the date of the current day

Count checked checkboxes within a query

試著忘記壹切 提交于 2020-01-24 21:25:07
问题 How do I count checked checkboxes within a query in Google sheets (this is part of a group query where I want to count checked checkboxes in column B for each value of column A grouped by column A)? 回答1: try: =ARRAYFORMULA(QUERY({A:A\ B:B*1}; "select Col1,sum(Col2) where Col1 is not null group by Col1 label sum(Col2)''")) 来源: https://stackoverflow.com/questions/59751416/count-checked-checkboxes-within-a-query

More Efficient Way to Avoid Multiple Calculations #3?

[亡魂溺海] 提交于 2020-01-24 20:14:36
问题 Looking for a more efficient way, possibly array formula for Min/Max down a column. Not sure if array formulas work with this function as I can't get it to. =ArrayFormula(MAX(INDIRECT("Data!E"&(K42:K169)&":E"&(K43:K170-1)))) =ARRAYFORMULA(MAX(VLOOKUP(K42:K169, {ROW(Data!A:A), Data!E:E}, 2, 0)&VLOOKUP(K43:K170-1, {ROW(Data!A:A), Data!E:E}, 2, 0))) Note that I am using ROW(Data!A:A) instead of simply ROW(A:A) because the range in current sheet doesn't fit that of sheet Data!. Here is my current