Google Sheets FILTER array notation with exclusion - google-sheets

I'm currently using filter formula on Google sheets and am trying to find a way to exclude cells that meet a specific criteria from this.
Here is a link to what I am using, and I'm trying to get it to say, if column X is populated, exclude it from the filter.
FILTER multiple ranges/columns
I'm currently using this and it works really well, but I've been asked to exclude items, but don't know how to do this.
Example from the link in my question:
=filter({Sheet1!A13:B,Sheet1!E13:G}, Sheet1!N13:N>E2)

You can use COUNTIF, try:
=filter({Sheet1!A13:B,Sheet1!E13:G}, Sheet1!N13:N>E2, not(countif(items_to_exclude, column_where_items_to_exclude_are_located)))

Related

Very Specific Filtering in Google Sheets

I am making a calculator in Google sheets and I would like to find a formula or script or something that will allow me to read the value of a certain square and add the formula "=sum(C5:C9)" or "=product(C5:C9)" or whichever depending on what the person puts in C4. Not sure if this is possible in google sheets (without custom code), but if it is, that would be great!
try:
=IF(C4="*"; PRODUCT(C5:C9); SUM(C5:C9))

Edit data after FILTER in Google Docs

I have FILTER some range like "=FILTER(E1:M11;E1:M1=B1)" but I use FILTER for simple access to the cell-data, that must be edit, trying to wright something in to FILTER celLs given an a formula FILTER error...
google sheets does not support editing cells where the output of the formulas rolls out. this is a feature by design, not a bug. if you wish to re-write a print from a formula that formula needs to be inserted with a script, not as an in-cell function

How to filter with user-input data? [Google Sheets]

I have a question about dynamic filtering.
Suppose I have a number of services and their providers, and I'm trying to filter by a particular criteria. Easy enough.
But suppose that I wasn't the one generating the criteria? How do I code a filter to show results when I don't know what column we're checking again?
See my spreadsheet (permissions open) for more explanation
https://docs.google.com/spreadsheets/d/1Bj_OGyCyobXmoFq72M-v4lcNiGfrgi1AX5QeeZIi-FY/edit?usp=sharing
Here's how I would approach this
=filter(B4:B6,filter(C4:D6,C3:D3=B22)="Y")
Or you can do it by unpovoting the data and running a query()
=ArrayFormula(query(split(flatten(B4:B6&"❄️"&C3:D3&"❄️"&C4:D6),"❄️"),"select Col1 where Col2='"&B22&"' and Col3='Y'"))
Another way to dynamically detect the column/row is with indirect(R1C1)-match
=filter(B4:B6,indirect("R4C"&match(B22,3:3,0)&":R6C"&match(B22,3:3,0),0)="Y")

Check cell for multiple strings and return specific values

I'm trying to create a Google Sheet formula that searches for a word in a longer string and returns a specific value based on the string being searched.
I can achieve this in Excel but I need this to work in Google Sheets.
Below is an example of what I'm trying to achieve:
The "Sort" column is retrieving the value based on checking if the word in column "C" exists in column "A".
I've tried using wildcard search but this isn't working for me in Google Sheets, and other examples I've seen online don't seem to allow me to return multiple values.
Any help would be much appreciated.
This formula may fit you:
=IFERROR(REGEXEXTRACT(A1,JOIN("|",FILTER(C:C,C:C<>""))),"none")
Here're some useful links:
REGEXEXTRACT
JOIN
FILTER

What's the right tool for this job?

Is it possible to nest simple programs within a Google Sheets, similar to how you would with Visual Basic for Applications in Excel? Or alternatively a simple = syntax using regex, if there is a way to do that in Google Sheets?
I want to take a list of multiple names (name1, name2, name3) in a single cell from across multiple identical sheets and transpose them to another sheet within the same spreadsheet, check for duplicates and ignore capitals, etc. Is there a way to do this?
You are asking for an easy answer to a composite problem. To solve this, I would split the job into separate chunks:
Split the input cell content into
different cells. As it is unclear
how this format is, I cannot advice
on any specific method. Check out
ImportRange function or similar.
Transpose them. use =TRANSPOSE(area)
Remova duplicates, use =UNIQUE(area)
Check the Google Spreadsheet function list for details.
Nest them: =UNIQUE(TRANSPOSE(A1:C15)).
LOWER cannot be used in this nest as it works with only text input, not array input. Although you can use it for the first input cell.

Resources