google-sheets-formula

Conditional formatting across sheets to highlight a cell based on greater than comparison

天大地大妈咪最大 提交于 2020-04-16 15:56:11
问题 Suppose there are 2 sheets Run1 and Run2 in excel. Both have a column say PassCount. How can we compare PassCount on Run1 and Run2 for greater value such that, if PassCount in Run2 is higher than PassCount from Run1 then Run2 entry should be highlighted in green else it should be red Run2 Run1 Run 1 is exactly the same sheet with different values. Now, what I need is: If(C3 of sheet Run18 > C3 of sheet Run17) then highlight C3 of Run18 in green else highlight it in red. This will show if the

Sum the same cell across the sheets in Google Sheets

大城市里の小女人 提交于 2020-04-16 05:48:49
问题 I have a sheet for every day in the month. At the end of every month, I need to sum the same cell across all tabs. The following works: =SUM(March31!L2,March30!L2,March29!L2,March28!L2,March26!L2,March25!L2,March24!L2) However, at the end of the month, the formula will be tremendous. Tried the following: =SUM(March31:March1!L2) Doesn't work. Is it even possible? 回答1: SUM(March31:March1!L2) that won't work, but you can use kind of a generator: ={" "; ARRAYFORMULA("=SUM("&TEXTJOIN(", ", 1, TEXT

Sum the same cell across the sheets in Google Sheets

风格不统一 提交于 2020-04-16 05:48:24
问题 I have a sheet for every day in the month. At the end of every month, I need to sum the same cell across all tabs. The following works: =SUM(March31!L2,March30!L2,March29!L2,March28!L2,March26!L2,March25!L2,March24!L2) However, at the end of the month, the formula will be tremendous. Tried the following: =SUM(March31:March1!L2) Doesn't work. Is it even possible? 回答1: SUM(March31:March1!L2) that won't work, but you can use kind of a generator: ={" "; ARRAYFORMULA("=SUM("&TEXTJOIN(", ", 1, TEXT

Call showSidebar() from a cell in google spreadsheets

假装没事ソ 提交于 2020-04-16 03:43:09
问题 As user Serge insas answered here, Ui Dialogs can not be called by time triggered functions, they have to be triggered by a user action, that's to say a click on a menu item or some sort of button that calls the function showing the UI. What about calling showSidebar() or showModalDialog() from a cell? Something like the following formula, which should open the sidebar automatically when the value in A1 is greater than 0: =if(A1>0;showSidebar();"nothing to show") Is this possible? This is my

How to use a custom function with an ArrayFormula

会有一股神秘感。 提交于 2020-03-26 05:20:09
问题 I want to write a function that can be used inside an ArrayFormula. My table is like this: | A | B | C | 1| a | | | 2| b | | | 3| c | | | First I wrote a simple function to return the input (so I know it works inside the ArrayFormula): function retAddress(cell){ return cell; } On B1 I wrote =ArrayFormula(retAddress(address(row(B:B),column(A:A),4))) and apparently it worked as expected, it returned each address, like this: | A | B | C | 1| a | A1| | 2| b | A2| | 3| c | A3| | Now, on column C,

Generate a list of combined columns

人走茶凉 提交于 2020-03-24 00:41:39
问题 I need to generate a list of possible outcomes given 5 unique rows of information. say A1=12, A2=34, then B1=Some, B2=sOme, B3=soMe, B4=somE, then C1=56, C2=78 you get the idea all with the final row being E and all the outcomes will be shown in row F I just want to show unique outcomes, how could do I go this in either Google Sheets or Excel? this is an expansion of a previously answered question here Generate all possible combinations for Columns in Google SpreadSheets 回答1: paste in F1 cell

Is there a way to sort this Google scripts function numerically/opposite direction?

泄露秘密 提交于 2020-03-04 15:34:05
问题 Here is the script that I'm using to pull all the sheet names of a Google Sheet Document into a list on a front sheet. It is working; however, is there a way to sort this the opposite way? I have the sheets named by date with the oldest date as the furthest sheet and the newest sheet the closest to the front. So it is sorting the newest date first but I would like it to sort with the oldest date first. Also, is there a way to make this function dynamic so it updates as new sheets are added or

Copy cell from every nth row

…衆ロ難τιáo~ 提交于 2020-02-24 04:17:36
问题 I'd like to grab the names in every person's name from this google spreadsheet and put it into a new column. The names will be every nth row. 回答1: Alternatively, also try: =filter(A2:A, mod(row(A2:A)+1,3)=0) 回答2: In B2 please try: =offset(A$1,3*(row()-1)-2,) As the formula is copied down the offset row relative to A1 increases by three, with no column offset. In the second (starting row) 3*(2-1)-2 is 1 so the A2 value is returned. In the second output row 3*(3-1)-2 returns 4, so the A5 value

Force IMPORTRANGE to update at certain intervals

我们两清 提交于 2020-02-23 06:47:47
问题 I saw several complains about the delay of updating data through IMPORTRANGE in Google Sheets but I need the opposite and don't want the second sheet to get updated automatically, just update at the end of the day for example. The code is already like this: =IMPORTRANGE("The Key","The_Page!B:D") 回答1: I hacked around this by, on both spreadsheets by creating a refresh loop using a NOW cell, with both spreadsheets crossreferencing each other's NOW cell. When the original sheet gets appended

Google Sheets IMPORTXML XPath help (understanding how to read a page source)

▼魔方 西西 提交于 2020-02-06 08:35:31
问题 I am trying to write a function that will give me the annual payout dividend for a given stock. The website I am using is www.seekingalpha.com So I understand that the function is =IMPORTXML (URL, xpath_query) . In that case, my URL is: https://seekingalpha.com/symbol/VOO/dividends/scorecard but the problem I am having is figuring out the correct XPath to acquire the dividend value. I currently have this as my function: =IMPORTXML(CONCATENATE("https://www.seekingalpha.com/symbol/", $B2, "