(1) I am trying to TEXTJOIN email addresses in column F, if column B = a specific value. However, it is giving me all email addresses, regardless of column B value.
=TEXTJOIN(",",TRUE,IF(B$4:B$57="owner",F$4:F$57,""))
Sample table:
The result I am looking for is:
email1#testemail.com,email2#testemail.com
The result I am getting is:
email1#testemail.com,email2#testemail.com,email3#testemail.com
(2) If the formula is on a different sheet, I get an #VALUE! error.
=TEXTJOIN(",",TRUE,IF(sheet1!B4:B57="owner",sheet1!F4:F57,""))
(3) I am trying to have the results be de-duped or unique. Is it best just to add &UNIQUE=[range] within the array?
I'm sure I'm just missing some detail, but cannot figure it out. Any help appreciated!
You need an arrayformula() wrapper:
=arrayformula(TEXTJOIN(",",TRUE,IF(Sheet1!B4:B57="owner",Sheet1!F4:F57,"")))
In Excel 365 your formula works perfectly the way you wrote it .
Related
I have one spreadheet that includes name, id and amount of numbers data in it and i want to make the report in other spreadsheet.
i want to count the name column that is not blank, so i type this
=COUNTIF(importrange("gsheet link","Payroll 16-31 Jan!B3:B"),"<>")
but the result is "1" in fact that there are 3670 names on the column
=COUNTIF(importrange("gsheet link","Payroll 16-31 Jan!B3:B"),"<>"&"")
but still not working
can someone help?
I want to get the exact calculation of those data
Two things: have you connected the spreadsheets? If not, use IMPORTRANGE outside COUNTIF, something like =importrange("gsheet link","A1") . Accept the permissions and see if COUNTIF now does it right
If it doesn't, try with COUNTA that is specifically defined for counting non blank cells:. =COUNTA(importrange("gsheet link","Payroll 16-31 Jan!B3:B"))
I'm using the Query function to pull a list of job names from a different sheet that meet certain criteria. The sheet that has the data that I am pulling the list from has 28 columns. When I try to use Column Z, AA, or AB I get the error saying that Query completed with an empty output. I know this to be false. I've tried playing with the headers and naming the columns like this: Col1,Col2 etc. to no avail. Here is a simplified version of my formula:
=Query('Job Details'!$B$1:$AB,"Select B where AA<95",1)
Why does the query come up with an empty return when I use the above formula when I know that is should not?
This formula works just fine:
=Query('Job Details'!$B$1:$AB,"Select B where I<95",1)
Here's a link:
https://docs.google.com/spreadsheets/d/1C4NSCOHjaaCrn1Cm03DTTNcepmwzQEU4Lz_9bL-Sp5w/edit?usp=sharing
All personal data has been changed. The problem formula is highlighted green in the "Job est" sheet.
Any help is greatly appreciated!!
Aaron
Im not sure where I am making a mistake here. In the following sheet
https://docs.google.com/spreadsheets/d/1h0XR399z6OHqzyX509WwnLBiqHX4nq4FmofaJd-HoAw/edit?usp=sharing
Sheet 1 has the raw data. I am trying to sum the same in sheet based on different criteria but I am getting an issue with a simple query. In sheet order_payment_heads a simple sum query in C2 returns the su but also the text sum amount.
Feels like I am doing something really basic wrong here but any help would be great. query being used is given below
'''=QUERY(Sheet1!A:X,"select SUM(O) where H = '"&A2&"'",1)'''
in a brand new tab, try this in cell A1
=QUERY(Sheet1!A:X,"select H,V,SUM(O) where H is not null group by H,V label SUM(O)'Price Head'")
Hopefully that will get what you're after in one go. "group by" is really the only reason that query distinguishes itself from other functions.
I have the following problem. I'm trying to write query formula in order to put all values in one sheet by typing yes in one column, however, I have the following problem. Whenever I add a new column, references in query formula (multiple sheets) are changing and the formula doesn't work. How can I prevent this?
Or is there any way to query by a column name in multiple sheets?
I have tried locking relative references by putting sign $
I have tried to use an indirect formula to take references (data set in Helper TAB, cell E2) - nothing worked
I'm out of the ideas, for now, anyone knows how to fix this?
=QUERY({'Sheet 1'!$A:$Z;'Sheet 2'!$A:$Z;'Sheet 3'!$A:$Z;'Sheet 4'!$A:$Z}, "select * where Col1 ='yes'",0)
Here is the file I did, you can see query formula in Master sheet:
https://docs.google.com/spreadsheets/d/1XD-CECy5W5-HM5EkBFJQKDtLlykQq8Cj8ZOvDUXkd1s/edit?usp=sharing
A solution to the problem is to use a formula that searches for the column address based on a reference.
=SUBSTITUTE(ADDRESS(1;COLUMN(A1);4);"1";"")
This formula will return the value A, which is the column of address A1.
It can be used in query functions like this:
=QUERY(A:D;"SELECT "&SUBSTITUTE(ADDRESS(1;COLUMN(A1);4);"1";"")&"")
This function is equivalent to the function:
=QUERY(A:D;"SELECT A")
I've been at this problem for a while now. I am trying to sum numbers under a specific column when the rows equal a certain text and then display that sum on a different sheet. So far I came up with this formula: =IF(EXACT(A2,Table!A2:A)=TRUE,SUM(Table!C2:C)); however the only problem is that is sums everything in column C (which makes sense).
I wish there was a way to do something like the following: SUM(Table!C2:C where EXACT(A2,TABLE!A2:A)=TRUE). I've also tried the SUMIF(), DSUM(), and QUERY() functions to no avail. I must be getting logically tripped up somewhere.
Figured it out: =SUM(FILTER(Table!E4:E, EXACT(Table!A4:A,A4)=TRUE)).
=sum ( FILTER (b1:b10, a1:a10 = "Text" ) )
// the above formula will help you to take the sum of the values in column B when another column A contain a specific text.
The formula is applicable only in Google Spreadsheets