formulas

Google SpreadSheet Query: Can I remove column header?

為{幸葍}努か 提交于 2019-12-18 10:14:41
问题 I'm doing this query at my google spreadsheet: =QUERY(H4:L35;"select sum(L) where H='First Week'"; -1) But it returns a little table with "sum" as header and result below it. What I want is just the result! How I remove header? Can I? 回答1: Try this: =QUERY(H4:L35,"select sum(L) where H='First Week' label sum(L) ''") Hope that Helps! 回答2: =QUERY(QUERY(A1:D, "SELECT *", 1), "SELECT * OFFSET 1", 0) The outer query: "SELECT * OFFSET 1" excludes the first row (the header). The inner query

Parse error from using .setValue or .SetFormula to set a formula containing a query function that has multiple single and double quotes

删除回忆录丶 提交于 2019-12-18 09:54:09
问题 I have a formula in sheet A using new google sheets that works fine; it contains a query function that filters the dates based on values in sheet B('Settings') and data in sheet C('Data'). The working formula: =QUERY(Data!A1:G,"select G, sum(E) where F is not null AND toDate(D)>= date '" & text('Settings'!B5, "yyyy-MM-dd")&"' and toDate(D)<= date '" & text('Settings'!B6, "yyyy-MM-dd")&"'group by G pivot B label G'Pivot table for data in range'") The problem is that I would like to set this

Getting formula of another cell in target cell

徘徊边缘 提交于 2019-12-17 05:11:11
问题 How does one cell obtain the formula of another cell as text without using VBA? I can see this question has already been asked many times and the answer is always to write a custom function in VBA. However, I found a post made in 2006 which claimed to have found the non-VBA solution but the link provided in that post is already broken. 回答1: There is nice way of doing this without VBA. It uses XL4 macros (these are macros, but it is not VBA, as asked). With reference to the figure 1, cells A2

Use an array formula to check if a similar contract ended in the last 12 months

被刻印的时光 ゝ 提交于 2019-12-14 04:19:19
问题 I'm currently just troubleshooting a report spreadsheet I've written. The logic I had written isn't working, so I thought I'd see if I could ask for some help here. Essentially, I have a list of contracts, a list of products, a list of end and start dates, and various other pieces of information. I need to know if a product of a renewal using this information. Example Data: Product Company Number Start of Contract End of contract Contract ID Include in this month's report Fax 1234 10.09.2013

An excel formula using IS BLANK and IS NOT BLANK based on two columns

落爺英雄遲暮 提交于 2019-12-14 03:23:40
问题 I need to calc the time between two dates. If column V is blank, then look at column X; now return the difference btw the returned value (either X or V) and the date in column S. 回答1: Maybe =IF(ISBLANK(V2),S2-X2,S2-V2) In words: If cell V2 is blank, calculate S2 minus X2, otherwise calculate S2 minus V2. Adjust to your needs. 回答2: For row 1, you could use =IF(OR(ISBLANK(V1),V1=""),X1-S1,V1-S1) It is extremely important to note that blank and an empty string behave differently. This shows up

Formula for unmatched row cell and display value in one column

夙愿已清 提交于 2019-12-14 00:08:18
问题 What is the formula for unmatched row cell and display in one column as mentioned in the attached work sheet Worksheet to get Result and Header column values I am using this formula: =IFERROR(VLOOKUP(A2,A2:M2,1,FALSE),"") But it displays only one values in Result column. 回答1: Native worksheet formulas simply do not handle string concatenation well. Even the new string functions that are being introduced such as TEXTJOIN function¹ and the updated CONCAT function² have difficulty with

Problems changing date format of date as string

99封情书 提交于 2019-12-13 19:30:43
问题 I am currently trying to convert yyyymmdd type of date to a ddmmyyy format. I've tried using DATE function and something like this: =DATE(LEFT(A3;4);MID(A3;5;3);RIGHT(A3;7)) Original date for this function is 20120401 but the formula returns: 16.12.2104 . I've tried using functions YEAR, MONTH and DAY instead of LEFT, MID and RIGHT but that's not the right way. I also tried using DATEVALUE but since Excel probably doesn't recognize yyyymmdd as a date, it gives me a #VALUE! error. I've found a

How generate docx/odt file with math formulas from java

只愿长相守 提交于 2019-12-13 17:20:49
问题 Good day. I must generete docx or odt file with many math formulas inside. i try to find solution in Apashe POI & ODFtoolkit but i am not was able. google doesn't help. ( May be anybody can help me with solution in this task? (any example?) Thanks. 回答1: You could use the docx4j library. Here is the documentation for Getting started. I recommend that you create a template file first, with all the formatting, and as much structure as you can. Then you should put in content-controls where you

finding the highest total for a consecutive group of entries in a column - EXCEL

﹥>﹥吖頭↗ 提交于 2019-12-13 08:35:15
问题 rather then finding the highest single entry, i want the highest total for a consecutive group of n entries e.g within a column of 100 values i want to look to find 10 consecutive cells whose sum is a maximum I say 10 as an example i wish to be able to change that easily. 回答1: By far the cleanest way to do this is with a User Defined Function (UDF). Here is a small routine that will do it. Place this routine in a standard code module: Function MaxN(n&, r As Range) Dim i&, j&, m#, t#, v v = r

Counting hyperlinks on Google Sheets formula

怎甘沉沦 提交于 2019-12-13 03:47:57
问题 How do you count hyperlinked numbers within a simple Google Sheet formula? Currently the =SUM(F6:CS6) (for example) does not count cells with hyperlinks. 回答1: This requires a custom function, because built-in functions cannot detect what formulas are entered in other cells, they can only access values. The discussion at Google Product Forum confirms this. There is already a custom function posted there, but I wrote another one, a bit shorter and not case-sensitive: function countLinks